var resultstr = "";

function checklogin() {
    if (document.frm_login.txt_name.value == "") {
        alert ("The user name is blank!");
        document.frm_login.txt_name.focus();
        return false;
    } else if (document.frm_login.txt_password.value == "") {
        alert ("The password is blank!");
        document.frm_login.txt_password.focus();
        return false;
    } else {
        return true;
    }
}

function browsertype(){
   if (navigator.appName.search("Explorer") != -1) {
      resultstr = "explorer";
   } else {
      resultstr = "netscape";
   }
   document.frm_login.hdn_browsertype.value = resultstr;
}

function ClearLogin(){

	document.frm_login.txt_name.value='';
	document.frm_login.txt_password.value='';
	document.frm_login.txt_name.focus();

}

