// JavaScript Document
function checkMandatory(srcElement, etype,referrer){
	if (etype=="word") {
			
			//regexp = /^(\w)+$/;
			if (srcElement.value=="") {
				alert("Value you entered for "+referrer+" field is not valid.");
				return false;
			} else{
				return true;
			}
	}
}
function checkForm(){
	var temp;
	temp=checkMandatory(document.frmLogin.txtUserName,'word','User Name');
	if (temp)temp=checkMandatory(document.frmLogin.txtPassword,'word','Password');
	return temp;
}