function patientLoginValid() { if(document.frmPatientLogin.txtusername.value == '') { alert("Please enter the username");document.frmPatientLogin.txtusername.focus();return false; } if(document.frmPatientLogin.txtpassword.value == '') { alert("Please enter the password");document.frmPatientLogin.txtpassword.focus();return false; } document.frmPatientLogin.submit(); } function patientLoginValid1() { if(document.frmPatientLogin1.txtusername.value == '') { alert("Please enter the username");document.frmPatientLogin1.txtusername.focus();return false; } if(document.frmPatientLogin1.txtpassword.value == '') { alert("Please enter the password");document.frmPatientLogin1.txtpassword.focus();return false; } document.frmPatientLogin1.submit(); }