/* ******************************************/
/*	www.MMHAQ.net Project					*/
/*	SingUp From Validation Code				*/
/*	Mob: 0092- 321 4829771					*/
/*	www.MMHAQ.net All Copy Right			*/
/* ******************************************/

// Check user availability
	function CheckAvail()
	{
		var rand_no = Math.ceil(1000*Math.random())
		xmlHttp=GetXmlHttpObject()
		// if browser not found
		if (xmlHttp==null)
		{
			 alert ("Browser does not support HTTP Request")
			 return
		 } 
		 // Server Url
		var url="include/domainchk.php"
		// Query string variable 
		url=url+"?domain="+document.getElementById("domain").value+"&show="+rand_no;//+"&fname="+document.getElementById("txtFirstName").value+"&lname="+document.getElementById("txtLastName").value;
		// Call back function for check response state.
		xmlHttp.onreadystatechange=ChkChangedforDomain 
		xmlHttp.open("GET",url,true)
		xmlHttp.send(null)
		
	}
	function ChkChangedforDomain() 
	{ 
		document.getElementById("divAvail").innerHTML="<img src=images/loading.gif />";
		
		if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
		{ 
			// Assign server reponse to div.
			 document.getElementById("divAvail").innerHTML=xmlHttp.responseText 
		 } 
	}
	
// Check Domain Info
	function DomainInfo()
	{
		var rand_no = Math.ceil(1000*Math.random())
		xmlHttp=GetXmlHttpObject()
		// if browser not found
		if (xmlHttp==null)
		{
			 alert ("Browser does not support HTTP Request")
			 return
		 } 
		 // Server Url
		var url="include/lookup.php"
		// Query string variable 
		url=url+"?domain="+document.getElementById("domain").value+"&show="+rand_no;//+"&fname="+document.getElementById("txtFirstName").value+"&lname="+document.getElementById("txtLastName").value;
		// Call back function for check response state.
		xmlHttp.onreadystatechange=DomainCheck 
		xmlHttp.open("GET",url,true)
		xmlHttp.send(null)
		
	}
	function DomainCheck() 
	{ 
		document.getElementById("domaininfoz").innerHTML="<img src=images/loading.gif />";
		
		if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
		{ 
			// Assign server reponse to div.
			 document.getElementById("domaininfoz").innerHTML=xmlHttp.responseText 
		 } 
	}
