<script language="JavaScript">
function checkPassword(password,confirm) 
{
if (password != confirm) 
{
window.alert("Passwords don't match.");
return false;
} if (password.length < 6) 
{
window.alert("Passwords must be 6 or more characters");
return false;
} return true;
}function checkForm24(formObj) 
{
return checkPassword(formObj.myPassword.value,formObj.myConfirm.value);
}
</script><form name="myForm24" action="holder.htm" onSubmit="return checkForm24(this);">
Enter Password: 
<input type="password" name="myPassword">
<br>
Confirm Password: 
<input type="password" name="myConfirm">
<br>
<input type="submit">
</form></body>