var linkS='/home/';
loadstatustext = "<div style='text-align:center'><img src='"+linkS+"style/normal/images/loading.gif'/><br>Loading ...</div>";
function ajaxLoad(url,id)
{
   if (document.getElementById) {
	   var x = (window.ActiveXObject) ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest();
	   }
	   if (x)
		   {
	   x.onreadystatechange = function()
			   {
				   el = document.getElementById(id);
				   el.innerHTML = loadstatustext;
		   if (x.readyState == 4 && x.status == 200)
				   {
				   el.innerHTML = x.responseText;
			   }
			   }
		   x.open("GET", url, true);
		   x.send(null);
		   }
}
function Whois(domain)
{
	ajaxLoad(linkS+'whois/domain='+domain,'whoisResult');
}
function LoadSupport()
{
	ajaxLoad(linkS+'support/','support');
}
function GetXmlHttpObject()
{
	var objXMLHttp=null
	if (window.XMLHttpRequest) {
		objXMLHttp=new XMLHttpRequest()
	}
	else if (window.ActiveXObject) {
		objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP")
	}
	return objXMLHttp
}
function loading()
{
	xmlHttp=GetXmlHttpObject()
	xmlHttp.onreadystatechange = function()
	{
		if (xmlHttp.readyState == 4 && xmlHttp.status == 200)
		{
			window.document.getElementById("loading").style.display = 'none';
		}
	}
}
