function checkk() { if ((document.form1.txtUsername.value == "") || (document.form1.txtUsername.value=="Username")) { alert ("Enter your username"); document.form1.txtUsername.select(); return false; } if ((document.form1.txtPassword.value == "") || (document.form1.txtPassword.value == "password")) { alert ("Enter Password"); document.form1.txtPassword.select(); return false; } return true; } function focus_text() { if (document.form1.txtUsername.value=="Username") document.form1.txtUsername.value=""; } function blur_text() { if (document.form1.txtUsername.value=="") document.form1.txtUsername.value="Username"; } function focus_pass() { if (document.form1.txtPassword.value=="password") document.form1.txtPassword.value=""; } function blur_pass() { if (document.form1.txtPassword.value=="") document.form1.txtPassword.value="password"; }