var xmlHttp3;

///////////////////////////////////////////Function to check the availability of username///////////////////////////////////		

			function showCity(country_id)
			{	
					
				if(country_id)	{
					
					
					var url="pass.php?action=createcity&country_id="+country_id;
					xmlHttp3=getobject();
					document.getElementById("state_div").innerHTML="<span class='intro_txt'><img src='images/working.gif'></span>";
					
					
					xmlHttp3.onreadystatechange=function(){
					if(xmlHttp3.readyState==4 || xmlHttp3.readyState=="complete")
				{
					document.getElementById("state_div").innerHTML=xmlHttp3.responseText;
				
					
					
					
				}
					}
					xmlHttp3.open("GET",url,true);
					xmlHttp3.send(null);	}
				else{
					document.getElementById("state_div").innerHTML='<select  class="select" name=sstate id=sstate ><option value="">State</option></select>';
					}
			}
			 
			 
			 
			 function getobject()
			{
			var xmlHttp=null;
				try	{	xmlHttp=new XMLHttpRequest;	}
				catch(e)
				{try
					{	xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");		}
					catch(e)		{	xmlHttp=new ActiveXObject("Microsoft.XMLHTTP")	;		}	
				}
				return xmlHttp;
			}	



			function showCity2(country_id)
			{	
				
				if(country_id)	{
					
					
					var url="pass.php?action=createcity&country_id="+country_id;
					xmlHttp3=getobject();
					document.getElementById("city_div").innerHTML="<span class='intro_txt'><img src='images/working.gif'></span>";
					
					
					xmlHttp3.onreadystatechange=function(){
					if(xmlHttp3.readyState==4 || xmlHttp3.readyState=="complete")
				{
					document.getElementById("city_div").innerHTML=xmlHttp3.responseText;
				
					
					
					
				}
					}
					xmlHttp3.open("GET",url,true);
					xmlHttp3.send(null);	}
				else{
					document.getElementById("city_div").innerHTML='<select  class="select" name=sstate id=sstate ><option value="">State</option></select>';
					}
			}
			 
			 
			 
			 function getobject()
			{
			var xmlHttp=null;
				try	{	xmlHttp=new XMLHttpRequest;	}
				catch(e)
				{try
					{	xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");		}
					catch(e)		{	xmlHttp=new ActiveXObject("Microsoft.XMLHTTP")	;		}	
				}
				return xmlHttp;
			}

