
var xmlhttp

function GetPriceIP(ip, contractID)
{

	xmlhttp=null;
	
	// code for Mozilla, etc.
	if (window.XMLHttpRequest)
	{
	  xmlhttp=new XMLHttpRequest();
	}
	// code for IE
	else if (window.ActiveXObject)
	{
	  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	}
	
	if (xmlhttp!=null)
	{
		xmlhttp.onreadystatechange=state_Change;
		//  xmlhttp.open("GET",url,true);  
	//	xmlhttp.open("GET", "http://www.plimus.com/jsp/get_local_price.jsp?contractId=" + contractID + "?ip=" + ip,true);
		xmlhttp.open("GET", "http://www.plimus.com/jsp/get_local_price.jsp?contractId=1666864&ip=62.216.234.218",true);

		
		xmlhttp.send(null);
	}
	else
	{
		alert("Your browser does not support XMLHTTP.");
	}
	//  alert(xmlhttp.responseText);
};

function state_Change()
{
// if xmlhttp shows "loaded"
if (xmlhttp.readyState==4)
  {
  // if "OK"
  if (xmlhttp.status==200)
    {
    // ...some code here...
    alert('result is ' + xmlhttp.responseText);
    }
  else
    {
    alert("Problem retrieving XML data");
    }
  }
};
