<script>
function checkBeforeLogin()
{
if(document.loginForm.username.value=="")
{
alert("Enter Username");
document.loginForm.username.focus();
return false;
}
if(document.loginForm.password.value=="")
{
alert("Enter Your Password");
document.loginForm.password.focus();
return false;
}
return true;
}
</script>