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.

83 lines
2.0 KiB

<!--
function form1_validate(objForm) {
var objWdw;
if (objForm.nmf.value == "") {
alert("You must provide your first and last name");
} else {
if (objForm.nml.value == "") {
alert("You must provide your first and last name");
} else {
if (objForm.reqadr.value == "Y") {
if (objForm.adr.value == "") {
alert("You must provide your complete mailing address.");
} else {
if (objForm.cty.value == "") {
alert("You must provide your complete mailing address.");
} else {
if (objForm.ste.value == "") {
alert("You must provide your complete mailing address.");
} else {
if (objForm.pst.value == "") {
alert("You must provide your complete mailing address.");
} else {
if (objForm.ctry.value == "") {
alert("You must provide your complete mailing address.");
} else {
return true;
}
}
}
}
}
} else {
return true;
}
}
}
return false;
}
function form1_submit(objForm) {
if (form1_validate(objForm)) {
objForm.dbop.value="save";
objForm.submit();
return true;
}
return false;
}
function form1_logout(objForm) {
objForm.dbop.value="logout";
objForm.submit();
return true;
}
function form2_submit(objForm) {
if (form1_validate(document.form1)) {
if (objForm.tstid.selectedIndex == -1) {
alert("You must select the test you wish to begin.");
} else {
objWdw = window.open("", "testwindow", "fullscreen=yes, resizable=no, scrollbars=auto");
objWdw.document.open();
objWdw.document.write("<CENTER><H1>Preparing Test Sequence<BR>Please Wait ...</CENTER></BR>");
objForm.submit();
return true;
}
}
return false;
}
function form3_submit(objForm) {
if (form1_validate(document.form1)) {
if (objForm.tstid.selectedIndex == -1) {
alert("You must select the test you wish to review.");
} else {
objForm.submit();
return true;
}
}
return false;
}
// -->