var dall = document.all; var g_doBtnOK=1; var calWin; function s_initDoc(){ top.focus(); } function s_endDoc(){ if (calWin!='' && calWin!=null){ if (!calWin.closed) {top.calWin.close();} } } function doCal(dateField){ setDateField(document.getElementById(dateField)); top.calWin = window.open(dbPath+'/calendar?OpenPage','cal','dependent=yes,width=180,height=210,screenX=100,screenY=300,titlebar=yes'); } function fldReset(e){ if (dall){ e.runtimeStyle.backgroundColor=""; e.runtimeStyle.borderColor=""; } } function fldHilite(e){ if (dall) if(e.req==null){ e.runtimeStyle.borderColor="#003399"; }else{ e.runtimeStyle.borderColor="#f00000"; e.runtimeStyle.backgroundColor="#ffdfdf"; } } function req_doDisp(){ var req_List=new Array; var prevItem = ""; if(dall) { if (dall!=null){ for (i=0; i 0) { req_htm="Required fields:
  • "+req_List.join("
  • "); document.getElementById("reqFldList").innerHTML=req_htm; } } } function req_clear(){ document.getElementById("reqFldList").innerHTML=""; } function hiliteBtn(e){ if(dall){ e.runtimeStyle.color="black"; e.runtimeStyle.backgroundColor="#adadd1"; } } function resetBtn(e){ if(dall){ e.runtimeStyle.color=""; e.runtimeStyle.backgroundColor=""; } } function replaceSubstring (y, x) { commaPosition = x.indexOf(y); if (commaPosition > -1){ x = replaceSubstring(y,(x.substring(0,(commaPosition))+x.substring(commaPosition+1))); } return x; } function fileName(lname){ var fname; var nameArray; if (lname.lastIndexOf('\\') !=-1) { fname = lname.substring(lname.lastIndexOf('\\')+1,lname.length); nameArray=fname.split(" ") for (x = 0;x