//alert('e');

function check()
{
 if(document.AdminLogin.AdminName.value=="")
 {
	 window.alert('Your name can not be empty!');
	 document.AdminLogin.AdminName.focus();
	 return false;
 }
  if(document.AdminLogin.AdminPass.value=="")
 {
	 window.alert('Your password can not be empty!');
	 document.AdminLogin.AdminPass.focus();
	 return false;
 }
 return true; 
}

function chkChange()
{
	//alert(document.formChange.pwd.value);
  //window.alert(document.formChange.pwd.value);
 // window.alert(document.formChange.pwd.value);
 if(document.formChange.pwd.value==""  ||  document.formChange.pwd.value.length>17   ||  document.formChange.pwd.value.length<6)
  {
	window.alert('Your password  can not be empty or  length too long or  length too short!');  
	document.formChange.pwd.focus();
	return false;
  }
   if(document.formChange.pwd_confirm.value==""  ||  document.formChange.pwd_confirm.value.length>17   ||  document.formChange.pwd_confirm.value.length<6)
  {
	window.alert('Your new password  can not be empty or  length too long or  length too short!');  
	document.formChange.pwd_confirm.focus();
	return false;
  }
   if(document.formChange.pwd_confirm2.value==""  ||  document.formChange.pwd_confirm2.value.length>17  ||  document.formChange.pwd_confirm2.value.length<6)
  {
	window.alert('Your confirm password  can not be empty or  length too long or  length too short!');  
	document.formChange.pwd_confirm2.focus();
	return false;
  }
 
  if(document.formChange.pwd_confirm.value!=document.formChange.pwd_confirm2.value)
  {

	 window.alert('Different secondary password');  
	document.formChange.pwd_confirm.focus();
	 document.formChange.pwd_confirm.value=""
	 document.formChange.pwd_confirm2.value=""
	return false;
  }

//alert('e');
function get_password()
  {
	  alert('e');
 	  if(document.get_password.email.value.length!=0){
	 
	 if(document.get_password.email.value.charAt(0)=="."||document.get_password.email.value.charAt=="@"||document.get_password.email.value.indexOf('@',0)==-1||document.get_password.email.value.indexOf('.',0)==-1||document.get_password.email.value.lastIndexOf("@")==document.get_password.email.value.length-1||
	document.get_password.email.value.lastIndexOf(".")==document.get_password.email.value.length-1
	)	
	{
	alert("Email address is not right!");
	document.get_password.email.focus();
	return false;
	
	}
	}
	else{
	alert("Email can not be bmpty!");
	document.get_password.email.focus();
	return false;
	}

}
  return true;
	
	
}

