

function chkLogin(frm){

    if ((frm.loginID.value!="") && (frm.loginPWD.value!="")  && (frm.typeTS.value!="")) {
		
		if (frm.typeTS[0].checked) {
			frm.action = "/scriptsA/loginchkT.asp";
		}
	
		if (frm.typeTS[1].checked) {
			frm.action = "/scriptsA/loginchkS.asp";
		}

	   frm.submit();
	}else{
	    alert("Please enter User ID and password and choose the type.");
	    frm.reset();
		frm.loginID.focus();
	}
}




function chkLoginT(frm){

    if ((frm.loginT.value!="") && (frm.pwdT.value!="")) {
	   frm.submit();
	}else{
	    alert("Please enter both User ID and password");
	    frm.reset();
		frm.loginT.focus();
	}
}



function chkLoginS(frm){
    if ((frm.loginS.value!="") && (frm.pwdS.value!="")) {
	    frm.submit();
	}else{
	    alert("Please enter both User ID and Password");
	    frm.reset();
		frm.loginS.focus();
	}
}

