function checkmail(ChkEmail){
	if(ChkEmail.length!=0){
	    if (ChkEmail.charAt(0)=="." ||        
	         ChkEmail.charAt(0)=="@"||       
	         ChkEmail.indexOf('@', 0) == -1 || 
	         ChkEmail.indexOf('.', 0) == -1 || 
	         ChkEmail.lastIndexOf("@")==ChkEmail.length-1 || 
	         ChkEmail.lastIndexOf(".")==ChkEmail.length-1){
		      alert("Check your Email!");
	    	  return false;
	     }
	 } else{
	   alert("Enter Email!");
	   return false;
	 }
	 return true;
}
function checkpwd(Pw1,pW2){
	    var regx=/&|\"|\'|>|<|&|\(|\)|#/gm; //"
		if(regx.exec(pwd1)==null){
		}else{
			alert("You can not use special characters")
			return false;
		}
	if (Pw1.length==0){
		alert("Enter preferred password.")
		return false
	}
	if (Pw1===pW2){
	}else{
		alert("Check confirm password.")
		return false
	}
	return true;
}