
function NewAjaxObject()
  {
	var req = false;
  try {
	// Firefox, Opera 8.0+, Safari
	req=new XMLHttpRequest();
	}
  catch (e)	{
	// Internet Explorer
	try	{
	  req=new ActiveXObject("Msxml2.XMLHTTP");
	  }
	catch (e) {
	  try {
		req=new ActiveXObject("Microsoft.XMLHTTP");
		}
	  catch (e)	{
		alert("Your browser does not support AJAX!");
		return false;
		}
	  }
	}
	return req;

  
  }

var AjaxRequest = NewAjaxObject();

function SendAjaxRequest(sURL ) {
	//+ "&r" +  parseInt(Math.random()*999999)
	AjaxRequest.open('GET', sURL , true);
	AjaxRequest.onreadystatechange = ResponseAjax;
	AjaxRequest.send(null);
}

function ResponseAjax() {
	if (AjaxRequest.readyState == 4) {
		//if (AjaxRequest.status == 200) {
		//	alert("res3");
			AjaxComplete(AjaxRequest.responseText);
		//} else {
		//	alert("res4");
		//	alert("An error occured: " & AjaxRequest.statusText);
		//	alert("res5");
		//}
	}
}