var xmlHttp


function showRecords(url,params,method) { 

	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null) {
		alert ("Browser does not support HTTP Request")
		return	
		}
	xmlHttp.onreadystatechange=stateChanged 
	if(method=="GET"){
		method="GET";
		if(params)
		xmlHttp.open(method,url+"?"+params,true)
		else
		xmlHttp.open(method,url,true)
	}else{
		method="POST";
		xmlHttp.open(method,url,true)
		xmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
		xmlHttp.setRequestHeader("Content-length", params.length);
	}

	xmlHttp.send(params)
}

function stateChanged()
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete"){ 
		
		if(xmlHttp.status==200){
			
			ProcessResponse(xmlHttp.responseText)
		} 
		else{
			ErrorInResponse(xmlHttp.Status)
		}
	}
}
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;
}

ProcessResponse=function (response)
{
	MyParseFunction(response)
}

ErrorInResponse =function (response)
{
		
	alert("Script Not Found "+response);
}
