// JavaScript Documentvar xmlHttp
function insertPPC(pHost,pQS)
{ 
var sHost = "http://" + pHost;
var sPage = "/includes/iCaptureServer.asp";
var xmlHttp=GetXmlHttpObject();

if (xmlHttp==null)
  {
  } else {
	var url= sHost + sPage;
	xmlHttp.open("POST",url,true);
	
	xmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
	xmlHttp.setRequestHeader("Content-length", pQS.length);
	xmlHttp.setRequestHeader("Connection", "close");

	xmlHttp.send(pQS);
  }
}

function GetXmlHttpObject()
{
var xmlHttp=null;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
    }
  }
return xmlHttp;
}