var httpObject = null;
// Get the HTTP Object
function getHTTPObject(){
if (window.XMLHttpRequest) return new XMLHttpRequest();
else 
if (window.ActiveXObject) 
	return new ActiveXObject("Microsoft.XMLHTTP");

	else 
	{
		//alert("Your browser does not support AJAX.");
		return null;
	}
}

 

// Change the value of the outputText field
function setAccountHeader(){
	if(httpObject.readyState == 4)
	{
		document.getElementById('idRegistr').innerHTML = httpObject.responseText;
	}
}

// Implement business logic

function getAccountHeader(){
httpObject = getHTTPObject();
if (httpObject != null) 
	{
	var tempstr = "http://www.games10.co.il/account-header-ajax";
	httpObject.open("GET", tempstr, true);
	httpObject.send(null);
	httpObject.onreadystatechange = setAccountHeader;
	}
}






