var xmlHttp


function showCustomer(str1, str)
{ 

//alert("fetching results for "+str1+" with id "+str);

/*if(document.frmNetwork.cboState.value=='')
{
	alert('Select State ')
	document.frmNetwork.cboState.focus()
	return false;
}

if(document.frmNetwork.cbocity.value=='0')
{
	alert('Select City')
	document.frmNetwork.cbocity.focus()
	return false;
}
*/


xmlHttp=GetXmlHttpObject();
if (xmlHttp==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  }   
//str1=document.frmNetwork.cboState.value
//str=document.frmNetwork.cbocity.value
str3=""//document.frmNetwork.txtvar.value
//var url="http://www.ifctest.com/maximo/getcustomer.asp";
//var url="http://192.168.50.79/maximo/beta/getcustomer.asp";
//var url="getcustomer.asp";
url=url+"?q="+str1;
url=url+"&g="+str;
//url=url+"&f="+str3;
//alert(url)
xmlHttp.onreadystatechange=stateChanged;
xmlHttp.open("GET",url,true);
xmlHttp.send(null);

}

function stateChanged() 
{ 
if (xmlHttp.readyState==4)
   { 
   alert("result revieved: "+xmlHttp.responseText)
   var responseData = xmlHttp.responseText;
   }
}

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;
}