window.onload = pageInit; function pageInit() { initHintTextboxes(); } function checkForm(f) { if ((f.elements['username'].value == "Username" && f.elements['password'].value == "Password") || f.elements['username'].value == "Username") { alert("Please enter your username in the left box and password in the right to login."); return false; } else { return true; } }