Function checkPassword ()
{
If (document. getElementById ("password"). value = null | document. getElementById ("password"). value = "")
{
Document. getElementById ("spanPassword"). innerHTML = "<font color = 'red'> enter the password * </font> ";
Return false;
}
Document. getElementById ("spanPassword"). innerHTML = "<font color = 'red'> * </font> ";
}
Function checkPasswordConfig ()
{
Var a = document. getElementById ("password"). value;
Var B = document. getElementById ("passwordConfig"). value;
If (B = null | B = "")
{
Document. getElementById ("spanPasswordConfig"). innerHTML = "<font color = 'red'> confirm the password! * </Font> ";
Return false;
}
If (! = B)
{
Document. getElementById ("spanPasswordConfig"). innerHTML = "<font color = 'red'> the passwords you entered twice are inconsistent! * </Font> ";
Return false;
}
Document. getElementById ("spanPasswordConfig"). innerHTML = "<font color = 'red'> * </font> ";
}