function givealert(err)
{
if(err==1)
{
alert("Invalid Username/Password.");
}
else if(err==2)
{
alert("You have exceeded the maximum number of attempts to login. Your account is now locked.Please contact your system Administrator for help");
}
else if(err==3)
{
alert("You have exceeded the maximum number of attempts to login. Your account is now locked.Please contact your system Administrator for help");
}
else if(err==4)
{
alert("Invalid Username.");
}
document.getElementById("txtUsername").focus();
}