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.
103 lines
2.1 KiB
103 lines
2.1 KiB
<!-- //
|
|
function preload(imgObj,imgSrc)
|
|
{
|
|
eval(imgObj+' = new Image()')
|
|
eval(imgObj+'.src = "'+imgSrc+'"')
|
|
}
|
|
|
|
preload('cnew','<%=PATHS.graphroot%>/btnnewon.jpg')
|
|
preload('cupd','<%=PATHS.graphroot%>/btnediton.jpg')
|
|
preload('cdel','<%=PATHS.graphroot%>/btndelon.jpg')
|
|
|
|
function clientchanged(objForm) {
|
|
document.form2.tstid.selectedIndex = -1;
|
|
}
|
|
|
|
function testchanged(objForm) {
|
|
document.form1.cndid.selectedIndex = -1;
|
|
}
|
|
|
|
function btn_cupd_click(objForm) {
|
|
if (objForm.cndid.selectedIndex == -1) {
|
|
alert("You must select a candidate to edit.")
|
|
return false;
|
|
} else {
|
|
objForm.dbop.value="cupd";
|
|
objForm.submit();
|
|
return true;
|
|
}
|
|
}
|
|
|
|
function btn_cnew_click(objForm) {
|
|
objForm.dbop.value="cnew";
|
|
objForm.submit();
|
|
}
|
|
|
|
function btn_cdel_click(objForm) {
|
|
if (objForm.cndid.selectedIndex == -1) {
|
|
alert("You must select a candidate to delete.")
|
|
return false;
|
|
} else {
|
|
objForm.dbop.value="cdel";
|
|
objForm.submit();
|
|
return true;
|
|
}
|
|
}
|
|
|
|
function form1_btn_click(objForm) {
|
|
if (objForm.dbop.value == "cdel")
|
|
return btn_cdel_click(objForm)
|
|
if (objForm.dbop.value == "cupd")
|
|
return btn_cupd_click(objForm)
|
|
if (objForm.dbop.value == "cnew")
|
|
return true
|
|
return false
|
|
}
|
|
|
|
function btn_tupd_click(objForm) {
|
|
if (objForm.tstid.selectedIndex == -1) {
|
|
alert("You must select a test to edit.")
|
|
return false;
|
|
} else {
|
|
objForm.dbop.value="tupd";
|
|
objForm.submit();
|
|
return true;
|
|
}
|
|
}
|
|
|
|
function btn_tnew_click(objForm) {
|
|
objForm.dbop.value="tnew";
|
|
objForm.submit();
|
|
}
|
|
|
|
function btn_tdel_click(objForm) {
|
|
if (objForm.tstid.selectedIndex == -1) {
|
|
alert("You must select a test to delete.")
|
|
return false;
|
|
} else {
|
|
objForm.dbop.value="tdel";
|
|
objForm.submit();
|
|
return true;
|
|
}
|
|
}
|
|
|
|
function form2_btn_click(objForm) {
|
|
if (objForm.dbop.value == "tdel")
|
|
return btn_tdel_click(objForm)
|
|
if (objForm.dbop.value == "tupd")
|
|
return btn_tupd_click(objForm)
|
|
if (objForm.dbop.value == "tnew")
|
|
return true
|
|
return false
|
|
}
|
|
|
|
function btn_report_click(objForm) {
|
|
if (objForm.rptno.selectedIndex==-1) {
|
|
alert("You must select a report from the list.");
|
|
return false;
|
|
} else {
|
|
objForm.submit();
|
|
return true;
|
|
}
|
|
}
|
|
//-->
|
|
|