function ajaxForgot(modeChk)
				{
					if(document.forgot_form.forgotuser.value=="")
					{
						alert("Please Enter User Name.");
						document.forgot_form.forgotuser.focus();
						return false;
					}
					else
					{
						var Email=document.forgot_form.forgotuser.value;
						var url = "ajaxphp/forgotpass.php?forgotUser="+Email+"&Mode="+modeChk;
						//alert(url);
						var isWorking=false;
						if (!isWorking && http)
						{
							http.open("GET", url, true);
							http.onreadystatechange = handleHttpResponse;
							isWorking = true;
							http.send(null);
						}
						return true;
					}
				}
				
				<!-- ================= S T A R T     A J A X ================ -->
				var http = getHTTPObject(); 
				function getHTTPObject() {
				   var ro;
					var browser = navigator.appName;
					
					if(browser == "Microsoft Internet Explorer")
					{
						ro = new ActiveXObject("Microsoft.XMLHTTP");
					}
					else
					{
						ro = new XMLHttpRequest();
					}
					return ro;
				}// JavaScript Document


					function handleHttpResponse() 
					{
						if (http.readyState == 4) 
						{
							if (http.responseText.indexOf('invalid') == -1) 
							{
								// Use the XML DOM to unpack the city and state data 
								var xmlDocument = http.responseXML;
								//alert(xmlDocument);
								var topic = new Array();	
								topic=xmlDocument.getElementsByTagName("topic");
								//alert("tp"+topic);
								topicValue=topic.item(0).firstChild.nodeValue;
								//alert(topicValue);
								
								//alert("samar");
								
								if(topicValue=='EmailTopic')
								{
									var Response="";
									var ArrResponse=new Array();
									ArrResponse = xmlDocument.getElementsByTagName('EmailTag');
									Response= ArrResponse.item(0).firstChild.nodeValue;
									//alert(Response);
									if(Response=="NotFound")
									{
										alert("User Name not found.");
									}
									else if(Response=="MailNotSend")
									{
										alert("There is some problem to send the mail \n Please try again.");
									}
									else
									{
										alert("Your password is sent to your Email Address.");
										document.getElementById('loginblock').style.display="block";
										document.getElementById('forgotpassblock').style.display="none";
									}
								}
								
								
							}
							isWorking = false;
						}
					}