	var stateLoading = '<select name="state" class="textbox1" disabled="disabled"><option>Loading...</option></select>';
	var cityLoading = '<select name="city" class="textbox1" disabled="disabled"><option>Loading...</option></select>';
	var currentHTML ="";
	var thanksMsgStatus=false;
	function showLayer(){
		document.getElementById('bannerdiv').style.display='none';
		document.getElementById('lightpic').style.display='block';
		document.getElementById('fade').style.display='block';
		ll();
		floatdiv('lightpic',lpos,100).floatIt();
		try{document.getElementById('greenheading').innerHTML='';}catch(e){}
		thanksMsgStatus=false;
	}
	function closeLayer(){
		document.getElementById('lightpic').style.display='none';
		document.getElementById('fade').style.display='none';
		document.getElementById('bannerdiv').style.display='block';
	}
	function send_mail(){ 
		var email = document.forgotfrm.email.value;
		var xmlHttpobj = new getHTTPObject();
		if (xmlHttpobj==null){
			alert ("Browser does not support HTTP Request");
			return;
		} 
		var url= "http://72.3.235.33/forgotmail.php?email="+email;
		xmlHttpobj.open("GET",url,true);
		xmlHttpobj.onreadystatechange=function(){
			if (xmlHttpobj.readyState==4) { 
				if(xmlHttpobj.responseText == 'success'){
					//document.getElementById("forgot").innerHTML='';
					currentHTML = document.getElementById("success").innerHTML;
					document.getElementById("success").innerHTML = '<table cellpadding="0" cellspacing="0" border="0" width="535" class="textbox" align="center"><tr><td><img src="images/graystrip_top.jpg" alt="" /></td></tr><tr><td class="tbborderpop" valign="top"><div style="padding:10px;"><table cellpadding="0" cellspacing="0" border="0" width="450" align="center" class="textgray"><tr height="35"><td colspan="2">Thank you for confirming your e-mail ID. An e-mail containing your password has been sent to the same.</td></tr></table></div></td></tr><tr><td><img src="images/graystrip_bottom.jpg" alt="" /></td></tr></table>';
					thanksMsgStatus=true;
					try{
						window.setTimeout(function(){
							   /*document.getElementById("success").style.display ="none";*/
							   document.getElementById("success").innerHTML = currentHTML;
							   try{document.getElementById("greenheading").innerHTML ="";}catch(e){}
						},5000);
					}
					catch(e){}
				}
				if(xmlHttpobj.responseText == 'error'){
					document.getElementById("greenheading").innerHTML = 'The e-mail ID you have provided does not exist in our records.';
				}
				
			}
		};
		xmlHttpobj.send(null);
	}

	function city_disp(state){ 
		var country = document.frm.country.value;
		var xmlHttpobj = new getHTTPObject();
		if(xmlHttpobj==null){alert ("Browser does not support HTTP Request");return;} 
		var url= "http://72.3.235.33/country_listing.php?state="+state+"&countrycode="+country;
		document.getElementById("Div_city").innerHTML = cityLoading;
		xmlHttpobj.open("GET",url,true);
		xmlHttpobj.onreadystatechange=function(){
			if (xmlHttpobj.readyState==4 ){ document.getElementById("Div_city").innerHTML = xmlHttpobj.responseText;} 
		};
		xmlHttpobj.send(null);
	}
	function region_disp(country){ 
		var xmlHttpobj = new getHTTPObject();
		if (xmlHttpobj==null){
			alert("Browser does not support HTTP Request");
			return;
		} 
		var url= "http://72.3.235.33/country_listing.php?country="+country;
		document.getElementById("Div_state").innerHTML = stateLoading;
		xmlHttpobj.open("GET",url,true);
		xmlHttpobj.onreadystatechange=function(){
			if(xmlHttpobj.readyState==4){
				document.getElementById("Div_state").innerHTML = xmlHttpobj.responseText;
				try{
					for(var i=0;i<document.getElementById("city").length;i++)document.getElementById("city").options[i]=null;
					document.getElementById("city").options.length = 0;
					document.getElementById("city").options[0] = new Option("Select City","0");	
				}catch(e){}
			} 
		};
		xmlHttpobj.send(null);
	}
