You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

56 lines
1.6 KiB

<!--
var objWdw;
function form_onSubmit(objForm) {
if (objForm.cndid.value == "") {
alert("You must assign the candidate a unique Login ID.");
objForm.cndid.focus;
return false;
}
if (objForm.pwd.value == "") {
alert("You must assign the candidate a password.");
objForm.pwd.focus;
return false;
}
if (objForm.nmf.value == "") {
alert("You must provide the candidate's first and last name");
objForm.nmf.focus;
return false;
}
if (objForm.nml.value == "") {
alert("You must provide the candidate's first and last name");
objForm.nml.focus;
return false;
}
return true;
}
function cndid_check(objForm) {
var sURL,down;
sURL = "<%=PATHS.cgiroot%>/checkid.pl?tid=<%=SESSION.tid%>&cndid="+objForm.cndid.value;
objWdw = window.open("", "helpwindow", "height=50, width=300, resizable=no, scrollbars=auto");
objWdw.document.open();
objWdw.document.write("<CENTER>Checking ID Availability<BR>Please Wait ...</CENTER>");
objWdw.document.location = sURL;
down=setTimeout("Close_Message()",2000);
}
function Close_Message() {
objWdw.close();
}
function add_authtest(objForm) {
var sText, sValue
sText=objForm.regtest.options[objForm.regtest.selectedIndex].text;
sValue=objForm.regtest.options[objForm.regtest.selectedIndex].value;
sauthtests=objForm.authtests.value;
if (sauthtests.indexOf(sValue+";") == -1 || sauthtests.indexOf(sValue+";") != sauthtests.length - sValue.length) {
if (confirm("Do you want to add "+sText+" to the list of available tests?")) {
if (objForm.authtests.value != "")
objForm.authtests.value += ";"
objForm.authtests.value += sValue + ";";
}
}
}
// -->