var xmlHttp
var phpvar_xmlHttp

function loadXMLDoc(phpvar)
{
url="cv_getphpdata.php"
phpvar_xmlHttp=phpvar
xmlHttp=GetXmlHttpObject()
xmlHttp.onreadystatechange=stateChanged
xmlHttp.open("GET",url,true)
xmlHttp.setRequestHeader( "If-Modified-Since", "Sat, 1 Jan 2000 00:00:00 GMT" )
xmlHttp.send(null)
} 

function stateChanged() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 { 
 response=xmlHttp.responseText
 XmlHttpAction(response)
 } 
}

function XmlHttpAction(response)
{
	window.document.cv.SetVariable(phpvar_xmlHttp,response)
}

function GetXmlHttpObject()
{
var xmlHttp=null;
try
 {

 xmlHttp=new XMLHttpRequest();
 }
catch (e)
 {

 try
  {
  xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
  }
 catch (e)
  {
  xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
 }
return xmlHttp;
}



var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
function cv_DoFSCommand(command, args)                {
  var cvObj = InternetExplorer ? cv : document.cv;
  eval (args);
}
if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && 
  navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
  document.write('<SCRIPT LANGUAGE=VBScript\> \n');
  document.write('on error resume next \n');
  document.write('Sub cv_FSCommand(ByVal command, ByVal args)\n');
  document.write(' call cv_DoFSCommand(command, args)\n');
  document.write('end sub\n');
  document.write('</SCRIPT\> \n');
} 


