//This Page is used return the state of particular country
	//Created By Tushar Chopde
	//Date: 16/04/2008
	// Create a XML Variable
	var xmlHttp;
	
	// AJAX function validateLogin
	function validateLogin()
	{
		//alert(country);
		loginid= document.getElementById('txtlogin').value;
		xmlHttp=GetXmlHttpObject();
		var url="validatelogin.php";
		url=url+"?loginid="+loginid;
		//alert(url);
		xmlHttp.onreadystatechange=stateChanged10;
		xmlHttp.open("GET",url,true);
		xmlHttp.send(null);
	}
	//End Of getcost

	// State change function
	function stateChanged10() 
	{ 
		if (xmlHttp.readyState==4)
		{			
			//alert(xmlHttp.responseText);
			document.getElementById("response_login").innerHTML=xmlHttp.responseText;
		}
	}
	//End Of stateChanged
	function validateSecurity()
	{
		securityid= document.getElementById('security_code').value;
		//alert(loginid);
		xmlHttp=GetXmlHttpObject();
		var url2="validatesecurity.php";
		url2=url2+"?securityid="+securityid;
		//alert(url2);
		xmlHttp.onreadystatechange=stateChanged12;
		xmlHttp.open("GET",url2,true);
		xmlHttp.send(null);
	}
	//End Of getcost

	// State change function
	function stateChanged12() 
	{ 
		if (xmlHttp.readyState==4)
		{			
			//alert(xmlHttp.responseText);
			document.getElementById("security_response").innerHTML=xmlHttp.responseText;
		}
	}
	// GetXmlHttpObject function
	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;
	}
	// End Of GetXmlHttpObject