Shouldn't this test to see how long their password is? It doens't do anything! Even if I take out the first emptyValidation part.
function formValidation(PasswordForm)
{
with (PasswordForm)
{
if (emptyValidation(txtPassword, "Please enter a password."
== false)
{
txtPassword.focus();
return false;
}
if (txtPassword.length < 6)
{
alert('Your password must be at least 6 characters long.')
}
if (emptyValidation(ConfirmPassword, "Please enter a confirmation password."
== false)
{
ConfirmPassword.focus();
return false;
}
}
}
function formValidation(PasswordForm)
{
with (PasswordForm)
{
if (emptyValidation(txtPassword, "Please enter a password."
{
txtPassword.focus();
return false;
}
if (txtPassword.length < 6)
{
alert('Your password must be at least 6 characters long.')
}
if (emptyValidation(ConfirmPassword, "Please enter a confirmation password."
{
ConfirmPassword.focus();
return false;
}
}
}