function forgotPass(){ if (document.aloginForm1.Customer_Login.value==""){ alert ("Please enter your username"); } else { document.aloginForm1.Action.value='EMPW'; document.aloginForm1.submit(); } }