
//////code for event list
function xmlhttpLoginArea(strURL, prdNowShow,email,password) 
{
	var xmlHttpReq = false;
	var self = this;
	// Mozilla/Safari
	if (window.XMLHttpRequest) {
	self.xmlHttpReq = new XMLHttpRequest();
	}
	// IE
	else if (window.ActiveXObject) {
	self.xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
	}
	self.xmlHttpReq.open('POST', strURL, true);
	self.xmlHttpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
	self.xmlHttpReq.onreadystatechange = function() 
	{
		if (self.xmlHttpReq.readyState == 4) 
		{
			updatepageLoginArea(self.xmlHttpReq.responseText);
		}
	}
	self.xmlHttpReq.send(getquerystringLoginArea(prdNowShow,email,password));

}
function getquerystringLoginArea(prdNowShow,email,password) {
  
  		qstr = "prdNowShow=" + prdNowShow + "&email=" + email + "&password=" + password ;  // NOTE: no '?' before querystring		
	    
		return qstr;
}
//---------------------------------------------------------------------------------------------------
function updatepageLoginArea(str){
//	    document.getElementById("zipcode").innerHTML = str;		
//		document.getElementById("prdSpanZip").style.display="none";
		if(str=="007")
		{
			window.location.reload(true);	
		}
		else if(str=="2")
		{
				
				document.getElementById("prdMainContent").innerHTML="<font color='#FF0000'>Account Is <strong>Blocked Or Not Approve</strong> From Admin !!!</font>";
				alert("Account Is Blocked Or Not Approve From Admin !!!");
				
		}
		else if(str=="1")
		{
				
				document.getElementById("prdMainContent").innerHTML="<font color='#FF0000'>	Invalid Username or Password Try Again !!!</font>";
				alert("Invalid Username or Password Try Again !!!");
				
		}
		//document.getElementById("prdMainContent").innerHTML =str;
		//window.location.reload(true);
}


