var xmlHttp;

function CreateXMLHTTP(url){

	xmlHttp = GetXmlHttpObject();

	if(xmlHttp == null){
		return true;
	}
	//pause(5500);
	xmlHttp.onreadystatechange = stateChanged;
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
	stateChanged();
   return false;
}

function stateChanged(){
	if(xmlHttp.readyState == 4){
		Response(xmlHttp.responseText);
	}
	return;
}

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;
}

function pause(millis){
	var date = new Date();
	var curDate = null;

	do{
		curDate = new Date();
	}
	while(curDate-date < millis);
}

