// some browsers allow the enter key to submit a form even if the submit button is disabled
// below prevents enter key from submiting form if password has not been validated.
if (key == '13') {
- var check = checkPasswordValidation();
+ var check = checkPasswordValidation(fieldid);
return check;
}
}
);
} else {
resultfield.innerHTML = '';
+ if (submitid){ document.getElementById(submitid).disabled = false; }
}
};
}