
//////code for event list
function xmlhttpLoginAreaSignUp(strURL,email,password,firstname,lastname,username,usertype,verificationtext,delimg,verificationhide) 
{
	
	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) 
		{
			updatepageLoginAreaSignUp(self.xmlHttpReq.responseText);
		}
	}
	self.xmlHttpReq.send(getquerystringLoginAreaSignUp(email,password,firstname,lastname,username,usertype,verificationtext,delimg,verificationhide));

}
function getquerystringLoginAreaSignUp(email,password,firstname,lastname,username,usertype,verificationtext,delimg,verificationhide) {
  
  		qstr = "email=" + email + "&password=" + password + "&firstname=" + firstname  + "&lastname=" + lastname + "&username=" + username + "&usertype=" + usertype + "&verificationtext=" + verificationtext + "&delimg=" + delimg + "&verificationhide=" + verificationhide;  // NOTE: no '?' before querystring		    
		return qstr;
}
//---------------------------------------------------------------------------------------------------
function updatepageLoginAreaSignUp(str){
//	    document.getElementById("zipcode").innerHTML = str;		
//		document.getElementById("prdSpanZip").style.display="none";
		//alert("Enter1");
		//alert(str);
		if(str=="007")
		{
			window.location.reload(true);	
		}
		else if(str=="1")
		{
				
				document.getElementById("prdMainContentSignUp").innerHTML="<font color='#FF0000'>Incomplete Form!!</font>";				
				alert("Incomplete Form!!");
		}
		else if(str=="2")
		{
				
				document.getElementById("prdMainContentSignUp").innerHTML="<font color='#FF0000'>User Name Is Not Valid To Make Your Personal Url Try Other Username</font>";
				alert("User Name Is Not Valid To Make Your Personal Url Try Other Username");
		}
		else if(str=="3")
		{
				
				document.getElementById("prdMainContentSignUp").innerHTML="<font color='#FF0000'>User Name Alrady Exists</font>";
				alert("User Name Alrady Exists");
		}
		else if(str=="4")
		{
				
				document.getElementById("prdMainContentSignUp").innerHTML="<font color='#FF0000'>Email ID Alrady Exists</font>";
				alert("Email ID Alrady Exists");
		}
		else if(str=="5")
		{
				
				document.getElementById("prdMainContentSignUp").innerHTML="<font color='#FF0000'>Verification Number Not Match Try Again</font>";
				alert("Verification Number Not Match Try Again");
		}
		else if(str=="6")
		{
				
				document.getElementById("prdMainContentSignUp").innerHTML="<font color='#FF0000'>Transaction Not Complet Successfully Try Again</font>";
				alert("Transaction Not Complet Successfully Try Again");
		}
		//document.getElementById("prdMainContentSignUp").innerHTML =str;
		//window.location.reload(true);
}


