﻿
function checkIndividualisation()
{   
  var sXMLCommand, objClientInformation, objXMLDOM, xmlNode;
  var sFoundSec;
  var nRequiredSec = '2200', nFoundSec = 0.0;
  sFoundSec = new String('0.0');
  
  alert('test1');
  
  objClientInformation = document.netobj.GetSystemInfo();
  sXMLCommand = '<?xml version="1.0"?><MEDIATEST><WMP>7</WMP>' + 
                netobj.GetSystemInfo() + '</MEDIATEST>';
                
   alert(sXMLCommand);

  try {
    objXMLDOM = new ActiveXObject("Msxml2.DOMDocument");
  }
  catch (xmlException) {
    objXMLDOM = new ActiveXObject("Msxml.DOMDocument");
  }
  objXMLDOM.loadXML (sXMLCommand);
  
  xmlNode = objXMLDOM.selectSingleNode("MEDIATEST/CLIENTINFO/SECURITYVERSION");
  if (xmlNode)
  {
    alert(xmlNode);
    var sRegEx
    sRegEx = /\./g;
    sFoundSec = String(xmlNode.text);
    sFoundSec = sFoundSec.replace(sRegEx, '');
  }
  if (Number(sFoundSec) < nRequiredSec) {
      // individualisation doesn't meet the minimum required level
      alert('have ind');
  } else {
      alert('not have ind');
      // Finally, we're done, and everything looks ok.
  }
} 