Hi I don't know much java script, here is some code I'm trying out
var user = document.optionsForm.user.value;
warnInvalid("Must enter the Database login name");
warnInvalid("The passwords entered do not match");
The html document has a form optionsForm with inputs user password1 and password2. onsubmit of the for this function is called. When I fill out the fields and press submit I'm getting a Object expected error. it says the error is coming form line 9 which is the isWhitespace(user) line. But when the alert box goes or it has displays the correct value? I'm not sure what is happening.