function checkEditUser(){


if( document.updateUserfrm.updatepassword.value == "" || document.updateUserfrm.updatepassword.value == " ")
	{
		alert("You must enter Password");
		document.updateUserfrm.updatepassword.focus();
		return false;
	}


if(document.updateUserfrm.updatepassword.value.length<3)
	{ 
		alert("Min. chars for Password is 3 !");
		document.updateUserfrm.updatepassword.focus();
		return false; 
	}

if(document.updateUserfrm.updatepassword.value.length>50)
	{ 
		alert("MAX. chars for Password is 50 !");
		document.updateUserfrm.updatepassword.focus();
		return false; 
	}

if(document.updateUserfrm.updatepassword.value!=document.updateUserfrm.updateconfirmpassword.value)
	{ 
		
		alert("Both password entries must match.");
		document.updateUserfrm.updateconfirmpassword.focus();
		return false; 
	}

if(document.updateUserfrm.updateprivilege.selectedIndex<=0)
	{	
		alert("Select a value for Privilege Level !");
		return false; 
	}

	
document.updateUserfrm.action="index.php?classname=cEditUser&funct=UpdateUser";
document.updateUserfrm.submit();

}




