function checkPassword(){


if( document.passwordfrm.updatepassword.value == "" || document.passwordfrm.updatepassword.value == " ")
	{
		alert("You must enter Password");
		document.passwordfrm.updatepassword.focus();
		return false;
	}


if(document.passwordfrm.updatepassword.value.length<3)
	{ 
		alert("Min. chars for Password is 3 !");
		document.passwordfrm.updatepassword.focus();
		return false; 
	}

if(document.passwordfrm.updatepassword.value.length>50)
	{ 
		alert("MAX. chars for Password is 50 !");
		document.passwordfrm.updatepassword.focus();
		return false; 
	}

if(document.passwordfrm.updatepassword.value!=document.passwordfrm.updateconfirmpassword.value)
	{ 
		
		alert("Both password entries must match.");
		document.passwordfrm.updateconfirmpassword.focus();
		return false; 
	}

	
document.passwordfrm.action="index.php?classname=cChangePassword&funct=doChangePassword";
document.passwordfrm.submit();

}




