var divId = null;
var quest_1 = null;
var quest_2 = null;
var quest_3 = null;
var overlayFormSubmitter = {
	postFormData: function(thisurl,dataString,div){
                        divID=div;
                       // alert("url="+dataString);
			YAHOO.util.Connect.asyncRequest('GET', thisurl, overlayFormSubmitterCallback);
	},

		successHandler: function (obj){
	          	var ajaxResponse = obj.responseText;
                        var xmlResponse = obj.responseXML; 
                //alert("*"+ajaxResponse+"*");
                 //  alert(divID); 
//=======================================================================================
		if(ajaxResponse == 'success'){

			var questionid=document.questionAnswerlistform.givenVotequestion1.value;
			document.votecheck.action="../user/questionAnswerList.php?question="+questionid+"&vote=true";

                                document.votecheck.submit();
					

		}else{
				document.getElementById("error").innerHTML="Incorrect Username/Password.";
                                return false;

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














var overlayFormSubmitterCallback = {
			success: overlayFormSubmitter.successHandler,
			failure: overlayFormSubmitter.failureHandler,
 			scope  : overlayFormSubmitter  
};

