var divId = null;
var quest_1 = null;
var quest_2 = null;
var quest_3 = null;
var overlayFormSubmitterforgotpassword = {
	postFormData: function(thisurl,dataString,div){
                        divID=div;
                    //   alert(thisurl+dataString);

			YAHOO.util.Connect.asyncRequest('GET', thisurl, overlayFormSubmitterforgotpasswordCallback);
	},

		successHandler: function (obj){
//alert("success");
//	alert(ajaxResponse);
	          	var ajaxResponse = obj.responseText;
                        var xmlResponse = obj.responseXML; 
                	// alert("*"+ajaxResponse+"*");
                	 //  alert(divID); 
//=======================================================================================
		if(ajaxResponse == 'success'){
				document.getElementById("errorforgotPassword").innerHTML="Password has been Send to your email id.";		
	
		}
		if(ajaxResponse == 'entervalidemail'){
				document.getElementById("errorforgotPassword").innerHTML="Enter valid email id.";
				return false;
		}
		if(ajaxResponse == 'notexist'){
				document.getElementById("errorforgotPassword").innerHTML="Email Id does not exist in database.";
                                return false;

		}
 			
			
	},
	failureHandler: function (obj){
		alert("Failure");
		}
};


var overlayFormSubmitterforgotpasswordCallback = {
			success: overlayFormSubmitterforgotpassword.successHandler,
			failure: overlayFormSubmitterforgotpassword.failureHandler,
 			scope  : overlayFormSubmitterforgotpassword  
};

