Function CheckValidateCode ()
...{
Var checkcode = document. getElementById ("TxtValidateCode"). value;
If (checkcode. length> 0)
...{
If (checking = true)
...{
CheckValidateCode = "false1 ";
SetCheckValidateCode (checkValidateCode );
}
Else
...{
Dos ("c" + checkcode );
Checking = true;
}
}
Else
...{
CheckValidateCode = "false ";
SetCheckValidateCode (checkValidateCode );
}
}
Function SetCheckValidateCode (arguments)
...{
Var obj = document. getElementById ("checkValidateCode ");
If (arguments = "false ")
...{
OBJ. classname = "error ";
OBJ. innerhtml = 'Enter the verification code ';
}
Else if (arguments = "false1 ")
...{
OBJ. classname = "error ";
OBJ. innerhtml = 'server busy. Please wait ...';
}
Else if (arguments = "false2 ")
...{
OBJ. classname = "error ";
OBJ. innerhtml = 'verification code error. Please input it again ';
}
Else if (arguments = "true ")
...{
Obj. className = "none ";
Obj. innerHTML = '';
}
}