function Trim(str)
			{
				while(str.charAt(0) == (" ") )
				{
					str = str.substring(1);
				}
				while(str.charAt(str.length-1) == " " )
				{
					str = str.substring(0,str.length-1);
				}
				return str;
			}
			function echeck(str) {

		var at="@"
		var dot="."
		var lat=str.indexOf(at)
		var lstr=str.length
		var ldot=str.indexOf(dot)
		if (str.indexOf(at)==-1){
		   alert("Please enter valid e-mail");
		   return false;
		}

		if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr){
		   alert("Please enter valid e-mail");
		   return false;
		}

		if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr){
		    alert("Please enter valid e-mail");
		    return false;
		}

		 if (str.indexOf(at,(lat+1))!=-1){
		    alert("Please enter valid e-mail");
		    return false;
		 }

		 if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot){
		    alert("Please enter valid e-mail");
		    return false;
		 }

		 if (str.indexOf(dot,(lat+2))==-1){
		    alert("Please enter valid e-mail");
		    return false;
		 }
		
		 if (str.indexOf(" ")!=-1){
		    alert("Please enter valid e-mail");
		    return false;
		 }

 		 return true;					
	}
function validate()
    	{
    	 
			/*************************validation for FirstName************************/
	
				
				
				if(Trim(document.registration.name.value)=="")
				{
					alert("Please enter name");
					document.registration.name.focus();
					document.registration.name.style.backgroundColor="#DDF9FF";
					return false;
				}
    			if((!(document.registration.name.value.indexOf("!")==-1)) || (!(document.registration.name.value.indexOf("@")==-1)))
				{
					
					alert("Please enter valid name");
					document.registration.name.focus();
					document.registration.name.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.name.value.indexOf("#")==-1)) || (!(document.registration.name.value.indexOf("$")==-1)))
				{
					
					alert("Please enter valid name");
					document.registration.name.focus();
					document.registration.name.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.name.value.indexOf("%")==-1)) || (!(document.registration.name.value.indexOf("^")==-1)))
				{
					
					alert("Please enter valid name");
					document.registration.name.focus();
					document.registration.name.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.name.value.indexOf("&")==-1)) || (!(document.registration.name.value.indexOf("*")==-1)))
				{
					
					alert("Please enter valid name");
					document.registration.name.focus();
					document.registration.name.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.name.value.indexOf('(')==-1)) || (!(document.registration.name.value.indexOf(')')==-1)))
				{
					
					alert("Please enter valid name");
					document.registration.name.focus();
					document.registration.name.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.name.value.indexOf("_")==-1)) || (!(document.registration.name.value.indexOf("-")==-1)))
				{
					
					alert("Please enter valid name");
					document.registration.name.focus();
					document.registration.name.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.name.value.indexOf('+')==-1)) || (!(document.registration.name.value.indexOf('=')==-1)))
				{
					
					alert("Please enter valid name");
					document.registration.name.focus();
					document.registration.name.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.name.value.indexOf('?')==-1)) || (!(document.registration.name.value.indexOf('|')==-1)))
				{
					
					alert("Please enter valid name");
					document.registration.name.focus();
					document.registration.name.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.name.value.indexOf("`")==-1)) || (!(document.registration.name.value.indexOf("~")==-1)))
				{
					
					alert("Please enter valid name");
					document.registration.name.focus();
					document.registration.name.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.name.value.indexOf("<")==-1)) || (!(document.registration.name.value.indexOf(">")==-1)))
				{
					
					alert("Please enter valid name");
					document.registration.name.focus();
					document.registration.name.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.name.value.indexOf(",")==-1)))
				{
					
					alert("Please enter valid name");
					document.registration.name.focus();
					document.registration.name.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.name.value.indexOf("[")==-1)) || (!(document.registration.name.value.indexOf("]")==-1)))
				{
					
					alert("Please enter valid name");
					document.registration.name.focus();
					document.registration.name.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.name.value.indexOf("{")==-1)) || (!(document.registration.name.value.indexOf("}")==-1)))
				{
					
					alert("Please enter valid name");
					document.registration.name.focus();
					document.registration.name.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.name.value.indexOf(";")==-1)) || (!(document.registration.name.value.indexOf(":")==-1)))
				{
					
					alert("Please enter valid name");
					document.registration.name.focus();
					document.registration.name.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.name.value.indexOf("'")==-1)) || (!(document.registration.name.value.indexOf('"')==-1)))
				{
					
					alert("Please enter valid name");
					document.registration.name.focus();
					document.registration.name.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.name.value.indexOf("/")==-1)) || (!(document.registration.name.value.indexOf('\\')==-1)))
				{
					
					alert("Please enter valid name");
					document.registration.name.focus();
					document.registration.name.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.name.value.indexOf("0")==-1)) || (!(document.registration.name.value.indexOf("1")==-1)))
				{
					
					alert("Please enter valid name");
					document.registration.name.focus();
					document.registration.name.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.name.value.indexOf("2")==-1)) || (!(document.registration.name.value.indexOf("3")==-1)))
				{
					
					alert("Please enter valid name");
					document.registration.name.focus();
					document.registration.name.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.name.value.indexOf("4")==-1)) || (!(document.registration.name.value.indexOf("5")==-1)))
				{
					
					alert("Please enter valid name");
					document.registration.name.focus();
					document.registration.name.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.name.value.indexOf("6")==-1)) || (!(document.registration.name.value.indexOf("7")==-1)))
				{
					
					alert("Please enter valid name");
					document.registration.name.focus();
					document.registration.name.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.name.value.indexOf("8")==-1)) || (!(document.registration.name.value.indexOf("9")==-1)))
				{
					
					alert("Please enter valid name");
					document.registration.name.focus();
					document.registration.name.style.backgroundColor="#DDF9FF";
					return false;
				}
				if(Trim(document.registration.userid.value)=="")
				{
					alert("Please enter user name");
					document.registration.userid.focus();
					document.registration.userid.style.backgroundColor="#DDF9FF";
					return false;
				}
    			if((!(document.registration.userid.value.indexOf("!")==-1)) || (!(document.registration.userid.value.indexOf("@")==-1)))
				{
					
					alert("Please enter valid user name");
					document.registration.userid.focus();
					document.registration.userid.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.userid.value.indexOf("#")==-1)) || (!(document.registration.userid.value.indexOf("$")==-1)))
				{
					
					alert("Please enter valid user name");
					document.registration.userid.focus();
					document.registration.userid.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.userid.value.indexOf("%")==-1)) || (!(document.registration.userid.value.indexOf("^")==-1)))
				{
					
					alert("Please enter valid user name");
					document.registration.userid.focus();
					document.registration.userid.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.userid.value.indexOf("&")==-1)) || (!(document.registration.userid.value.indexOf("*")==-1)))
				{
					
					alert("Please enter valid user name");
					document.registration.userid.focus();
					document.registration.userid.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.userid.value.indexOf('(')==-1)) || (!(document.registration.userid.value.indexOf(')')==-1)))
				{
					
					alert("Please enter valid user name");
					document.registration.userid.focus();
					document.registration.userid.style.backgroundColor="#DDF9FF";
					return false;
				}
				
				if((!(document.registration.userid.value.indexOf('+')==-1)) || (!(document.registration.userid.value.indexOf('=')==-1)))
				{
					
					alert("Please enter valid user name");
					document.registration.userid.focus();
					document.registration.userid.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.userid.value.indexOf('?')==-1)) || (!(document.registration.userid.value.indexOf('|')==-1)))
				{
					
					alert("Please enter valid user name");
					document.registration.userid.focus();
					document.registration.userid.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.userid.value.indexOf("`")==-1)) || (!(document.registration.userid.value.indexOf("~")==-1)))
				{
					
					alert("Please enter valid user name");
					document.registration.userid.focus();
					document.registration.userid.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.userid.value.indexOf("<")==-1)) || (!(document.registration.userid.value.indexOf(">")==-1)))
				{
					
					alert("Please enter valid user name");
					document.registration.userid.focus();
					document.registration.userid.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.userid.value.indexOf(",")==-1)))
				{
					
					alert("Please enter valid user name");
					document.registration.userid.focus();
					document.registration.userid.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.userid.value.indexOf("[")==-1)) || (!(document.registration.userid.value.indexOf("]")==-1)))
				{
					
					alert("Please enter valid user name");
					document.registration.userid.focus();
					document.registration.userid.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.userid.value.indexOf("{")==-1)) || (!(document.registration.userid.value.indexOf("}")==-1)))
				{
					
					alert("Please enter valid user name");
					document.registration.userid.focus();
					document.registration.userid.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.userid.value.indexOf(";")==-1)) || (!(document.registration.userid.value.indexOf(":")==-1)))
				{
					
					alert("Please enter valid user name");
					document.registration.userid.focus();
					document.registration.userid.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.userid.value.indexOf("'")==-1)) || (!(document.registration.userid.value.indexOf('"')==-1)))
				{
					
					alert("Please enter valid user name");
					document.registration.userid.focus();
					document.registration.userid.style.backgroundColor="#DDF9FF";
					return false;
				}
				
				 if(document.registration.userid.value!=""){
				 if(document.registration.userid.value.length<4)
			{
				alert("Please enter at least 4 characters in user name");
				document.registration.userid.focus();
				document.registration.userid.style.backgroundColor="#DDF9FF";
				return false;
			}
			if(document.registration.userid.value.length>15)
			{
				alert("Please enter not more than 15 characters in user name");
				document.registration.userid.focus();
				document.registration.userid.style.backgroundColor="#DDF9FF";
				return false;
			}
			}
				if(Trim(document.registration.pasword.value)=="")
				{
					alert("Please enter password");
					document.registration.pasword.focus();
					document.registration.pasword.style.backgroundColor="#DDF9FF";
					return false;
				}
    			if((!(document.registration.pasword.value.indexOf("!")==-1)) || (!(document.registration.pasword.value.indexOf("@")==-1)))
				{
					
					alert("Please enter valid password");
					document.registration.pasword.focus();
					document.registration.pasword.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.pasword.value.indexOf("#")==-1)) || (!(document.registration.pasword.value.indexOf("$")==-1)))
				{
					
					alert("Please enter valid password");
					document.registration.pasword.focus();
					document.registration.pasword.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.pasword.value.indexOf("%")==-1)) || (!(document.registration.pasword.value.indexOf("^")==-1)))
				{
					
					alert("Please enter valid password");
					document.registration.pasword.focus();
					document.registration.pasword.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.pasword.value.indexOf("&")==-1)) || (!(document.registration.pasword.value.indexOf("*")==-1)))
				{
					
					alert("Please enter valid password");
					document.registration.pasword.focus();
					document.registration.pasword.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.pasword.value.indexOf('(')==-1)) || (!(document.registration.pasword.value.indexOf(')')==-1)))
				{
					
					alert("Please enter valid password");
					document.registration.pasword.focus();
					document.registration.pasword.style.backgroundColor="#DDF9FF";
					return false;
				}
				
				if((!(document.registration.pasword.value.indexOf('+')==-1)) || (!(document.registration.pasword.value.indexOf('=')==-1)))
				{
					
					alert("Please enter valid password");
					document.registration.pasword.focus();
					document.registration.pasword.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.pasword.value.indexOf('?')==-1)) || (!(document.registration.pasword.value.indexOf('|')==-1)))
				{
					
					alert("Please enter valid password");
					document.registration.pasword.focus();
					document.registration.pasword.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.pasword.value.indexOf("`")==-1)) || (!(document.registration.pasword.value.indexOf("~")==-1)))
				{
					
					alert("Please enter valid password");
					document.registration.pasword.focus();
					document.registration.pasword.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.pasword.value.indexOf("<")==-1)) || (!(document.registration.pasword.value.indexOf(">")==-1)))
				{
					
					alert("Please enter valid password");
					document.registration.pasword.focus();
					document.registration.pasword.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.pasword.value.indexOf(",")==-1)))
				{
					
					alert("Please enter valid password");
					document.registration.pasword.focus();
					document.registration.pasword.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.pasword.value.indexOf("[")==-1)) || (!(document.registration.pasword.value.indexOf("]")==-1)))
				{
					
					alert("Please enter valid password");
					document.registration.pasword.focus();
					document.registration.pasword.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.pasword.value.indexOf("{")==-1)) || (!(document.registration.pasword.value.indexOf("}")==-1)))
				{
					
					alert("Please enter valid password");
					document.registration.pasword.focus();
					document.registration.pasword.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.pasword.value.indexOf(";")==-1)) || (!(document.registration.pasword.value.indexOf(":")==-1)))
				{
					
					alert("Please enter valid password");
					document.registration.pasword.focus();
					document.registration.pasword.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.pasword.value.indexOf("'")==-1)) || (!(document.registration.pasword.value.indexOf('"')==-1)))
				{
					
					alert("Please enter valid password");
					document.registration.pasword.focus();
					document.registration.pasword.style.backgroundColor="#DDF9FF";
					return false;
				}
				
				if(document.registration.pasword.value!=""){
				
				if(document.registration.pasword.value.length<6)
			{
				alert("Please enter at least 6 characters in password");
				document.registration.pasword.focus();
				document.registration.pasword.style.backgroundColor="#DDF9FF";
				return false;
			}
                        if(document.registration.pasword.value.length>10)
			{
				alert("Please enter not more then 10 characters in password");
				document.registration.pasword.focus();
				document.registration.pasword.style.backgroundColor="#DDF9FF";
				return false;
			}
			}
				if(Trim(document.registration.rpasword.value)=="")
				{
					alert("Please enter password again");
					document.registration.rpasword.focus();
					document.registration.rpasword.style.backgroundColor="#DDF9FF";
					return false;
				}
    			if((!(document.registration.rpasword.value.indexOf("!")==-1)) || (!(document.registration.rpasword.value.indexOf("@")==-1)))
				{
					
					alert("Please enter valid repassword");
					document.registration.rpasword.focus();
					document.registration.rpasword.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.rpasword.value.indexOf("#")==-1)) || (!(document.registration.rpasword.value.indexOf("$")==-1)))
				{
					
					alert("Please enter valid repassword");
					document.registration.rpasword.focus();
					document.registration.rpasword.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.rpasword.value.indexOf("%")==-1)) || (!(document.registration.rpasword.value.indexOf("^")==-1)))
				{
					
					alert("Please enter valid repassword");
					document.registration.rpasword.focus();
					document.registration.rpasword.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.rpasword.value.indexOf("&")==-1)) || (!(document.registration.rpasword.value.indexOf("*")==-1)))
				{
					
					alert("Please enter valid repassword");
					document.registration.rpasword.focus();
					document.registration.rpasword.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.rpasword.value.indexOf('(')==-1)) || (!(document.registration.rpasword.value.indexOf(')')==-1)))
				{
					
					alert("Please enter valid repassword");
					document.registration.rpasword.focus();
					document.registration.rpasword.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.rpasword.value.indexOf("_")==-1)) || (!(document.registration.rpasword.value.indexOf("-")==-1)))
				{
					
					alert("Please enter valid repassword");
					document.registration.rpasword.focus();
					document.registration.rpasword.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.rpasword.value.indexOf('+')==-1)) || (!(document.registration.rpasword.value.indexOf('=')==-1)))
				{
					
					alert("Please enter valid repassword");
					document.registration.rpasword.focus();
					document.registration.rpasword.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.rpasword.value.indexOf('?')==-1)) || (!(document.registration.rpasword.value.indexOf('|')==-1)))
				{
					
					alert("Please enter valid repassword");
					document.registration.rpasword.focus();
					document.registration.rpasword.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.rpasword.value.indexOf("`")==-1)) || (!(document.registration.rpasword.value.indexOf("~")==-1)))
				{
					
					alert("Please enter valid repassword");
					document.registration.rpasword.focus();
					document.registration.rpasword.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.rpasword.value.indexOf("<")==-1)) || (!(document.registration.rpasword.value.indexOf(">")==-1)))
				{
					
					alert("Please enter valid repassword");
					document.registration.rpasword.focus();
					document.registration.rpasword.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.rpasword.value.indexOf(",")==-1)))
				{
					
					alert("Please enter valid repassword");
					document.registration.rpasword.focus();
					document.registration.rpasword.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.rpasword.value.indexOf("[")==-1)) || (!(document.registration.rpasword.value.indexOf("]")==-1)))
				{
					
					alert("Please enter valid repassword");
					document.registration.rpasword.focus();
					document.registration.rpasword.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.rpasword.value.indexOf("{")==-1)) || (!(document.registration.rpasword.value.indexOf("}")==-1)))
				{
					
					alert("Please enter valid repassword");
					document.registration.rpasword.focus();
					document.registration.rpasword.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.rpasword.value.indexOf(";")==-1)) || (!(document.registration.rpasword.value.indexOf(":")==-1)))
				{
					
					alert("Please enter valid repassword");
					document.registration.rpasword.focus();
					document.registration.rpasword.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.rpasword.value.indexOf("'")==-1)) || (!(document.registration.rpasword.value.indexOf('"')==-1)))
				{
					
					alert("Please enter valid repassword");
					document.registration.rpasword.focus();
					document.registration.rpasword.style.backgroundColor="#DDF9FF";
					return false;
				}
				
				if(document.registration.rpasword.value!=""){
				
				if(document.registration.rpasword.value.length<6)
			{
				alert("Please enter at least 6 characters in repassword");
				document.registration.rpasword.focus();
				document.registration.rpasword.style.backgroundColor="#DDF9FF";
				return false;
			}
                        if(document.registration.rpasword.value.length>10)
			{
				alert("Please enter not more then 10 characters in repassword");
				document.registration.rpasword.focus();
				document.registration.pasword.style.backgroundColor="#DDF9FF";
				return false;
			}
			}
				if(document.registration.pasword.value!=document.registration.rpasword.value)
				{
					alert("Password and repassword are different");
					document.registration.rpasword.focus();
					document.registration.rpasword.style.backgroundColor="#DDF9FF";
					return false;
				}
				if(Trim(document.registration.cname.value)=="")
				{
					alert("Please enter company name");
					document.registration.cname.focus();
					document.registration.cname.style.backgroundColor="#DDF9FF";
					return false;
				}
    			if((!(document.registration.cname.value.indexOf("!")==-1)) || (!(document.registration.cname.value.indexOf("@")==-1)))
				{
					
					alert("Please enter valid company name");
					document.registration.cname.focus();
					document.registration.cname.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.cname.value.indexOf("#")==-1)) || (!(document.registration.cname.value.indexOf("$")==-1)))
				{
					
					alert("Please enter valid company name");
					document.registration.cname.focus();
					document.registration.cname.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.cname.value.indexOf("%")==-1)) || (!(document.registration.cname.value.indexOf("^")==-1)))
				{
					
					alert("Please enter valid company name");
					document.registration.cname.focus();
					document.registration.cname.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.cname.value.indexOf("&")==-1)) || (!(document.registration.cname.value.indexOf("*")==-1)))
				{
					
					alert("Please enter valid company name");
					document.registration.cname.focus();
					document.registration.cname.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.cname.value.indexOf('(')==-1)) || (!(document.registration.cname.value.indexOf(')')==-1)))
				{
					
					alert("Please enter valid company name");
					document.registration.cname.focus();
					document.registration.cname.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.cname.value.indexOf("_")==-1)) || (!(document.registration.cname.value.indexOf("-")==-1)))
				{
					
					alert("Please enter valid company name");
					document.registration.cname.focus();
					document.registration.cname.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.cname.value.indexOf('+')==-1)) || (!(document.registration.cname.value.indexOf('=')==-1)))
				{
					
					alert("Please enter valid company name");
					document.registration.cname.focus();
					document.registration.cname.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.cname.value.indexOf('?')==-1)) || (!(document.registration.cname.value.indexOf('|')==-1)))
				{
					
					alert("Please enter valid company name");
					document.registration.cname.focus();
					document.registration.cname.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.cname.value.indexOf("`")==-1)) || (!(document.registration.cname.value.indexOf("~")==-1)))
				{
					
					alert("Please enter valid company name");
					document.registration.cname.focus();
					document.registration.cname.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.cname.value.indexOf("<")==-1)) || (!(document.registration.cname.value.indexOf(">")==-1)))
				{
					
					alert("Please enter valid company name");
					document.registration.cname.focus();
					document.registration.cname.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.cname.value.indexOf(",")==-1)))
				{
					
					alert("Please enter valid company name");
					document.registration.cname.focus();
					document.registration.cname.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.cname.value.indexOf("[")==-1)) || (!(document.registration.cname.value.indexOf("]")==-1)))
				{
					
					alert("Please enter valid company name");
					document.registration.cname.focus();
					document.registration.cname.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.cname.value.indexOf("{")==-1)) || (!(document.registration.cname.value.indexOf("}")==-1)))
				{
					
					alert("Please enter valid company name");
					document.registration.cname.focus();
					document.registration.cname.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.cname.value.indexOf(";")==-1)) || (!(document.registration.cname.value.indexOf(":")==-1)))
				{
					
					alert("Please enter valid company name");
					document.registration.cname.focus();
					document.registration.cname.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.cname.value.indexOf("'")==-1)) || (!(document.registration.cname.value.indexOf('"')==-1)))
				{
					
					alert("Please enter valid company name");
					document.registration.cname.focus();
					document.registration.cname.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.cname.value.indexOf("/")==-1)) || (!(document.registration.cname.value.indexOf('\\')==-1)))
				{
					
					alert("Please enter valid company name");
					document.registration.cname.focus();
					document.registration.cname.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.cname.value.indexOf("0")==-1)) || (!(document.registration.cname.value.indexOf("1")==-1)))
				{
					
					alert("Please enter valid company name");
					document.registration.cname.focus();
					document.registration.cname.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.cname.value.indexOf("2")==-1)) || (!(document.registration.cname.value.indexOf("3")==-1)))
				{
					
					alert("Please enter valid company name");
					document.registration.cname.focus();
					document.registration.cname.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.cname.value.indexOf("4")==-1)) || (!(document.registration.cname.value.indexOf("5")==-1)))
				{
					
					alert("Please enter valid company name");
					document.registration.cname.focus();
					document.registration.cname.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.cname.value.indexOf("6")==-1)) || (!(document.registration.cname.value.indexOf("7")==-1)))
				{
					
					alert("Please enter valid company name");
					document.registration.cname.focus();
					document.registration.cname.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.cname.value.indexOf("8")==-1)) || (!(document.registration.cname.value.indexOf("9")==-1)))
				{
					
					alert("Please enter valid company name");
					document.registration.cname.focus();
					document.registration.cname.style.backgroundColor="#DDF9FF";
					return false;
				}
				if(Trim(document.registration.contactp.value)=="")
				{
					alert("Please enter contact person");
					document.registration.contactp.focus();
					document.registration.contactp.style.backgroundColor="#DDF9FF";
					return false;
				}
    			if((!(document.registration.contactp.value.indexOf("!")==-1)) || (!(document.registration.contactp.value.indexOf("@")==-1)))
				{
					
					alert("Please enter valid contact person");
					document.registration.contactp.focus();
					document.registration.contactp.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.contactp.value.indexOf("#")==-1)) || (!(document.registration.contactp.value.indexOf("$")==-1)))
				{
					
					alert("Please enter valid contact person");
					document.registration.contactp.focus();
					document.registration.contactp.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.contactp.value.indexOf("%")==-1)) || (!(document.registration.contactp.value.indexOf("^")==-1)))
				{
					
					alert("Please enter valid contact person");
					document.registration.contactp.focus();
					document.registration.contactp.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.contactp.value.indexOf("&")==-1)) || (!(document.registration.contactp.value.indexOf("*")==-1)))
				{
					
					alert("Please enter valid contact person");
					document.registration.contactp.focus();
					document.registration.contactp.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.contactp.value.indexOf('(')==-1)) || (!(document.registration.contactp.value.indexOf(')')==-1)))
				{
					
					alert("Please enter valid contact person");
					document.registration.contactp.focus();
					document.registration.contactp.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.contactp.value.indexOf("_")==-1)) || (!(document.registration.contactp.value.indexOf("-")==-1)))
				{
					
					alert("Please enter valid contact person");
					document.registration.contactp.focus();
					document.registration.contactp.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.contactp.value.indexOf('+')==-1)) || (!(document.registration.contactp.value.indexOf('=')==-1)))
				{
					
					alert("Please enter valid contact person");
					document.registration.contactp.focus();
					document.registration.contactp.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.contactp.value.indexOf('?')==-1)) || (!(document.registration.contactp.value.indexOf('|')==-1)))
				{
					
					alert("Please enter valid contact person");
					document.registration.contactp.focus();
					document.registration.contactp.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.contactp.value.indexOf("`")==-1)) || (!(document.registration.contactp.value.indexOf("~")==-1)))
				{
					
					alert("Please enter valid contact person");
					document.registration.contactp.focus();
					document.registration.contactp.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.contactp.value.indexOf("<")==-1)) || (!(document.registration.contactp.value.indexOf(">")==-1)))
				{
					
					alert("Please enter valid contact person");
					document.registration.contactp.focus();
					document.registration.contactp.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.contactp.value.indexOf(",")==-1)))
				{
					
					alert("Please enter valid contact person");
					document.registration.contactp.focus();
					document.registration.contactp.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.contactp.value.indexOf("[")==-1)) || (!(document.registration.contactp.value.indexOf("]")==-1)))
				{
					
					alert("Please enter valid contact person");
					document.registration.contactp.focus();
					document.registration.contactp.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.contactp.value.indexOf("{")==-1)) || (!(document.registration.contactp.value.indexOf("}")==-1)))
				{
					
					alert("Please enter valid contact person");
					document.registration.contactp.focus();
					document.registration.contactp.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.contactp.value.indexOf(";")==-1)) || (!(document.registration.contactp.value.indexOf(":")==-1)))
				{
					
					alert("Please enter valid contact person");
					document.registration.contactp.focus();
					document.registration.contactp.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.contactp.value.indexOf("'")==-1)) || (!(document.registration.contactp.value.indexOf('"')==-1)))
				{
					
					alert("Please enter valid contact person");
					document.registration.contactp.focus();
					document.registration.contactp.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.contactp.value.indexOf("/")==-1)) || (!(document.registration.contactp.value.indexOf('\\')==-1)))
				{
					
					alert("Please enter valid contact person");
					document.registration.contactp.focus();
					document.registration.contactp.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.contactp.value.indexOf("0")==-1)) || (!(document.registration.contactp.value.indexOf("1")==-1)))
				{
					
					alert("Please enter valid contact person");
					document.registration.contactp.focus();
					document.registration.contactp.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.contactp.value.indexOf("2")==-1)) || (!(document.registration.contactp.value.indexOf("3")==-1)))
				{
					
					alert("Please enter valid contact person");
					document.registration.contactp.focus();
					document.registration.contactp.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.contactp.value.indexOf("4")==-1)) || (!(document.registration.contactp.value.indexOf("5")==-1)))
				{
					
					alert("Please enter valid contact person");
					document.registration.contactp.focus();
					document.registration.contactp.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.contactp.value.indexOf("6")==-1)) || (!(document.registration.contactp.value.indexOf("7")==-1)))
				{
					
					alert("Please enter valid contact person");
					document.registration.contactp.focus();
					document.registration.contactp.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.contactp.value.indexOf("8")==-1)) || (!(document.registration.contactp.value.indexOf("9")==-1)))
				{
					
					alert("Please enter valid contact person");
					document.registration.contactp.focus();
					document.registration.contactp.style.backgroundColor="#DDF9FF";
					return false;
				}
				if(Trim(document.registration.address.value)=="")
				{
					alert("Please enter address");
					document.registration.address.focus();
					document.registration.address.style.backgroundColor="#DDF9FF";
					return false;
				}
    			
				if(Trim(document.registration.City.value)=="")
				{
					alert("Please enter city name");
					document.registration.City.focus();
					document.registration.City.style.backgroundColor="#DDF9FF";
					return false;
				}
    			if((!(document.registration.City.value.indexOf("!")==-1)) || (!(document.registration.City.value.indexOf("@")==-1)))
				{
					
					alert("Please enter valid city name");
					document.registration.City.focus();
					document.registration.City.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.City.value.indexOf("#")==-1)) || (!(document.registration.City.value.indexOf("$")==-1)))
				{
					
					alert("Please enter valid city name");
					document.registration.City.focus();
					document.registration.City.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.City.value.indexOf("%")==-1)) || (!(document.registration.City.value.indexOf("^")==-1)))
				{
					
					alert("Please enter valid city name");
					document.registration.City.focus();
					document.registration.City.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.City.value.indexOf("&")==-1)) || (!(document.registration.City.value.indexOf("*")==-1)))
				{
					
					alert("Please enter valid city name");
					document.registration.City.focus();
					document.registration.City.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.City.value.indexOf('(')==-1)) || (!(document.registration.City.value.indexOf(')')==-1)))
				{
					
					alert("Please enter valid city name");
					document.registration.City.focus();
					document.registration.City.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.City.value.indexOf("_")==-1)) || (!(document.registration.City.value.indexOf("-")==-1)))
				{
					
					alert("Please enter valid city name");
					document.registration.City.focus();
					document.registration.City.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.City.value.indexOf('+')==-1)) || (!(document.registration.City.value.indexOf('=')==-1)))
				{
					
					alert("Please enter valid city name");
					document.registration.City.focus();
					document.registration.City.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.City.value.indexOf('?')==-1)) || (!(document.registration.City.value.indexOf('|')==-1)))
				{
					
					alert("Please enter valid city name");
					document.registration.City.focus();
					document.registration.City.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.City.value.indexOf("`")==-1)) || (!(document.registration.City.value.indexOf("~")==-1)))
				{
					
					alert("Please enter valid city name");
					document.registration.City.focus();
					document.registration.City.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.City.value.indexOf("<")==-1)) || (!(document.registration.City.value.indexOf(">")==-1)))
				{
					
					alert("Please enter valid city name");
					document.registration.City.focus();
					document.registration.City.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.City.value.indexOf(",")==-1)) || (!(document.registration.City.value.indexOf(".")==-1)))
				{
					
					alert("Please enter valid city name");
					document.registration.City.focus();
					document.registration.City.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.City.value.indexOf("[")==-1)) || (!(document.registration.City.value.indexOf("]")==-1)))
				{
					
					alert("Please enter valid city name");
					document.registration.City.focus();
					document.registration.City.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.City.value.indexOf("{")==-1)) || (!(document.registration.City.value.indexOf("}")==-1)))
				{
					
					alert("Please enter valid city name");
					document.registration.City.focus();
					document.registration.City.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.City.value.indexOf(";")==-1)) || (!(document.registration.City.value.indexOf(":")==-1)))
				{
					
					alert("Please enter valid city name");
					document.registration.City.focus();
					document.registration.City.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.City.value.indexOf("'")==-1)) || (!(document.registration.City.value.indexOf('"')==-1)))
				{
					
					alert("Please enter valid city name");
					document.registration.City.focus();
					document.registration.City.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.City.value.indexOf("/")==-1)) || (!(document.registration.City.value.indexOf('\\')==-1)))
				{
					
					alert("Please enter valid city name");
					document.registration.City.focus();
					document.registration.City.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.City.value.indexOf("0")==-1)) || (!(document.registration.City.value.indexOf("1")==-1)))
				{
					
					alert("Please enter valid city name");
					document.registration.City.focus();
					document.registration.City.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.City.value.indexOf("2")==-1)) || (!(document.registration.City.value.indexOf("3")==-1)))
				{
					
					alert("Please enter valid city name");
					document.registration.City.focus();
					document.registration.City.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.City.value.indexOf("4")==-1)) || (!(document.registration.City.value.indexOf("5")==-1)))
				{
					
					alert("Please enter valid city name");
					document.registration.City.focus();
					document.registration.City.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.City.value.indexOf("6")==-1)) || (!(document.registration.City.value.indexOf("7")==-1)))
				{
					
					alert("Please enter valid city name");
					document.registration.City.focus();
					document.registration.City.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.City.value.indexOf("8")==-1)) || (!(document.registration.City.value.indexOf("9")==-1)))
				{
					
					alert("Please enter valid city name");
					document.registration.City.focus();
					document.registration.City.style.backgroundColor="#DDF9FF";
					return false;
				}
				if(Trim(document.registration.State.value)=="")
				{
					alert("Please enter state name");
					document.registration.State.focus();
					document.registration.State.style.backgroundColor="#DDF9FF";
					return false;
				}
    			if((!(document.registration.State.value.indexOf("!")==-1)) || (!(document.registration.State.value.indexOf("@")==-1)))
				{
					
					alert("Please enter valid state name");
					document.registration.State.focus();
					document.registration.State.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.State.value.indexOf("#")==-1)) || (!(document.registration.State.value.indexOf("$")==-1)))
				{
					
					alert("Please enter valid state name");
					document.registration.State.focus();
					document.registration.State.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.State.value.indexOf("%")==-1)) || (!(document.registration.State.value.indexOf("^")==-1)))
				{
					
					alert("Please enter valid state name");
					document.registration.State.focus();
					document.registration.State.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.State.value.indexOf("&")==-1)) || (!(document.registration.State.value.indexOf("*")==-1)))
				{
					
					alert("Please enter valid state name");
					document.registration.State.focus();
					document.registration.State.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.State.value.indexOf('(')==-1)) || (!(document.registration.State.value.indexOf(')')==-1)))
				{
					
					alert("Please enter valid state name");
					document.registration.State.focus();
					document.registration.State.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.State.value.indexOf("_")==-1)) || (!(document.registration.State.value.indexOf("-")==-1)))
				{
					
					alert("Please enter valid state name");
					document.registration.State.focus();
					document.registration.State.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.State.value.indexOf('+')==-1)) || (!(document.registration.State.value.indexOf('=')==-1)))
				{
					
					alert("Please enter valid state name");
					document.registration.State.focus();
					document.registration.State.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.State.value.indexOf('?')==-1)) || (!(document.registration.State.value.indexOf('|')==-1)))
				{
					
					alert("Please enter valid state name");
					document.registration.State.focus();
					document.registration.State.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.State.value.indexOf("`")==-1)) || (!(document.registration.State.value.indexOf("~")==-1)))
				{
					
					alert("Please enter valid state name");
					document.registration.State.focus();
					document.registration.State.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.State.value.indexOf("<")==-1)) || (!(document.registration.State.value.indexOf(">")==-1)))
				{
					
					alert("Please enter valid state name");
					document.registration.State.focus();
					document.registration.State.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.State.value.indexOf(",")==-1)) || (!(document.registration.State.value.indexOf(".")==-1)))
				{
					
					alert("Please enter valid state name");
					document.registration.State.focus();
					document.registration.State.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.State.value.indexOf("[")==-1)) || (!(document.registration.State.value.indexOf("]")==-1)))
				{
					
					alert("Please enter valid state name");
					document.registration.State.focus();
					document.registration.State.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.State.value.indexOf("{")==-1)) || (!(document.registration.State.value.indexOf("}")==-1)))
				{
					
					alert("Please enter valid state name");
					document.registration.State.focus();
					document.registration.State.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.State.value.indexOf(";")==-1)) || (!(document.registration.State.value.indexOf(":")==-1)))
				{
					
					alert("Please enter valid state name");
					document.registration.State.focus();
					document.registration.State.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.State.value.indexOf("'")==-1)) || (!(document.registration.State.value.indexOf('"')==-1)))
				{
					
					alert("Please enter valid state name");
					document.registration.State.focus();
					document.registration.State.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.State.value.indexOf("/")==-1)) || (!(document.registration.State.value.indexOf('\\')==-1)))
				{
					
					alert("Please enter valid state name");
					document.registration.State.focus();
					document.registration.State.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.State.value.indexOf("0")==-1)) || (!(document.registration.State.value.indexOf("1")==-1)))
				{
					
					alert("Please enter valid state name");
					document.registration.State.focus();
					document.registration.State.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.State.value.indexOf("2")==-1)) || (!(document.registration.State.value.indexOf("3")==-1)))
				{
					
					alert("Please enter valid state name");
					document.registration.State.focus();
					document.registration.State.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.State.value.indexOf("4")==-1)) || (!(document.registration.State.value.indexOf("5")==-1)))
				{
					
					alert("Please enter valid state name");
					document.registration.State.focus();
					document.registration.State.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.State.value.indexOf("6")==-1)) || (!(document.registration.State.value.indexOf("7")==-1)))
				{
					
					alert("Please enter valid state name");
					document.registration.State.focus();
					document.registration.State.style.backgroundColor="#DDF9FF";
					return false;
				}
				if((!(document.registration.State.value.indexOf("8")==-1)) || (!(document.registration.State.value.indexOf("9")==-1)))
				{
					
					alert("Please enter valid state name");
					document.registration.State.focus();
					document.registration.State.style.backgroundColor="#DDF9FF";
					return false;
				}
				
				if(document.registration.Country.value=="0")
                {
                    alert("Please select country name");
                    document.registration.Country.focus();
                    document.registration.Country.style.backgroundColor="#DDF9FF";
                    return false;
                }
                
                if(isNaN(document.registration.Pin.value))
						{
						alert("Please enter valid pin number");
						document.registration.Pin.focus();
						document.registration.Pin.style.backgroundColor="#DDF9FF";
						return false;
						}
						if(document.registration.Pin.value!=""){
						if(document.registration.Pin.value.length<6)
						{
						alert("Please enter not less then 6 characters in pin number");
						document.registration.Pin.focus();
						document.registration.Pin.style.backgroundColor="#DDF9FF";
						return false;
						}
						if(document.registration.Pin.value.length>15)
						{
						alert("Please enter not more then 15 characters in pin number");
						document.registration.Pin.focus();
						document.registration.Pin.style.backgroundColor="#DDF9FF";
						return false;
						}
						}
						
						if(isNaN(document.registration.Fax.value))
						{
						alert("Please enter valid fax number");
						document.registration.Fax.focus();
						document.registration.Fax.style.backgroundColor="#DDF9FF";
						return false;
						}
						if(document.registration.Fax.value!=""){
						if(document.registration.Fax.value.length<10)
						{
						alert("Please enter not less then 10 characters in fax number");
						document.registration.Fax.focus();
						document.registration.Fax.style.backgroundColor="#DDF9FF";
						return false;
						}
						if(document.registration.Fax.value.length>15)
						{
						alert("Please enter not more then 15 characters in fax number");
						document.registration.Fax.focus();
						document.registration.Fax.style.backgroundColor="#DDF9FF";
						return false;
						}
					}
						var emailid=document.registration.MailId;
						var cemailid=document.registration.CMailId;
						if(Trim(document.registration.MailId.value)=="")
    					{
    				     alert("Please enter e-mail");
						document.registration.MailId.focus();
						document.registration.MailId.style.backgroundColor="#DDF9FF";
						return false;
    					}
    				if (echeck(emailid.value)==false){
					emailid.value=""
					emailid.focus();
					return false;
				}
				
            	if(Trim(document.registration.CMailId.value)=="")
    			{    				
					alert("Please enter  confirm e-mail");
					document.registration.CMailId.focus();
					document.registration.CMailId.style.backgroundColor="#DDF9FF";
					return false;
    			}
              if (echeck(cemailid.value)==false){
					cemailid.value=""
					cemailid.focus();
					return false;
				}
			
			if(document.registration.MailId.value!=document.registration.CMailId.value)
				{
					alert("Mail and confirm Mail should be same");
					document.registration.MailId.focus();
					document.registration.MailId.style.backgroundColor="#DDF9FF";
					return false;
				}
				
				if(isNaN(document.registration.PhoneNumber.value))
				{
				alert("Please enter valid phone number");
				document.registration.PhoneNumber.focus();
				document.registration.PhoneNumber.style.backgroundColor="#DDF9FF";
				return false;
				}
				if(document.registration.PhoneNumber.value!=""){
				if(document.registration.PhoneNumber.value.length<6)
				{
				alert("Please enter not less then 6 digits in phone number");
				document.registration.PhoneNumber.focus();
				document.registration.PhoneNumber.style.backgroundColor="#DDF9FF";
				return false;
				}
				if(document.registration.PhoneNumber.value.length>15)
				{
				alert("Please enter not more then 15 digits in phone number");
				document.registration.PhoneNumber.focus();
				document.registration.PhoneNumber.style.backgroundColor="#DDF9FF";
				return false;
				}
				
				}
				
				if(isNaN(document.registration.MobileNumber.value))
				{
			alert("Please enter valid mobile number");
			document.registration.MobileNumber.focus();
			document.registration.MobileNumber.style.backgroundColor="#DDF9FF";
			return false;
			}
			if(document.registration.MobileNumber.value!=""){
			if(document.registration.MobileNumber.value.length<10)
				{
				alert("Please enter not less then 10 digits in mobile number");
				document.registration.MobileNumber.focus();
				document.registration.MobileNumber.style.backgroundColor="#DDF9FF";
				return false;
				}
			if(document.registration.MobileNumber.value.length>15)
			{
			alert("Please enter not more then 15 digits in mobile number");
			document.registration.MobileNumber.focus();
			document.registration.MobileNumber.style.backgroundColor="#DDF9FF";
			return false;
			}
			
			}
			if(Trim(document.registration.Website.value)=="")
                {
                    alert("Please enter website");
                    document.registration.Website.focus();
                    document.registration.Website.style.backgroundColor="#DDF9FF";
                    return false;
                }
             if(document.registration.Website.value.indexOf("http://")==-1)
             {
             alert("Website must contain http://");
                    document.registration.Website.focus();
                    document.registration.Website.style.backgroundColor="#DDF9FF";
                    return false;
             
             }   
             if(document.registration.Website.value.indexOf(".")==-1)
             {
             alert("Please enter valid website");
                    document.registration.Website.focus();
                    document.registration.Website.style.backgroundColor="#DDF9FF";
                    return false;
             
             }
             if(Trim(document.registration.blog.value)=="")
                {
                    alert("Please enter blog");
                    document.registration.blog.focus();
                    document.registration.blog.style.backgroundColor="#DDF9FF";
                    return false;
                }
             if(document.registration.blog.value.indexOf("http://")==-1)
             {
             alert("Blog must contain http://");
                    document.registration.blog.focus();
                    document.registration.blog.style.backgroundColor="#DDF9FF";
                    return false;
             
             }   
             if(document.registration.blog.value.indexOf(".")==-1)
             {
             alert("Please enter valid blog");
                    document.registration.blog.focus();
                    document.registration.blog.style.backgroundColor="#DDF9FF";
                    return false;
             
             }  
             if(document.registration.HintQuestion.value=="0")
                {
                    alert("Please select hint question");
                    document.registration.HintQuestion.focus();
                    document.registration.HintQuestion.style.backgroundColor="#DDF9FF";
                    return false;
                } 
                if(Trim(document.registration.HintAnswer.value)=="")
                {
                    alert("Please enter hint answer");
                    document.registration.HintAnswer.focus();
                    document.registration.HintAnswer.style.backgroundColor="#DDF9FF";
                    return false;
                }
			return true;
	}	
