// passed view synonym and request for all (0) or selected(1) related view function getViewName(){ //all view synonyms - there are twice as many of these are there are of the other 2 arrays var asyn = ['vacco-own','vaccoo-own','vacco-lown','vaccoo-lown','vacco-stat','vaccoo-stat','vacco-dat','vaccoo-dat','vacco-ref','vaccoo-ref','vtco','vtcoo','appco-stat','appcoo-stat','appco-dat','appcoo-dat','appco-vac','appcoo-vac','appco-type','appcoo-type','appco-own','appcoo-own']; //'selected office' related view var acoo = ['vaccoo-own','vaccoo-lown','vaccoo-stat','vaccoo-dat','vaccoo-ref','vtcoo','appcoo-stat','appcoo-dat','appcoo-vac','appcoo-type','appcoo-own']; //'all' related view var aco = ['vacco-own','vacco-lown','vacco-stat','vacco-dat','vacco-ref','vtco','appco-stat','appco-dat','appco-vac','appco-type','appco-own']; var a = getViewName.arguments, x; for(var i = 0; i0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p); } if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i= 0) { if (wordOnly) { var before = ind - 1; var after = ind + oldTerm.length; if (!(space(work.charAt(before)) && space(work.charAt(after)))) { next = ind + oldTerm.length; continue; } } target = target.substring(0,ind) + newTerm + target.substring(ind+oldTerm.length,target.length); work = work.substring(0,ind) + newTerm + work.substring(ind+oldTerm.length,work.length); next = ind + newTerm.length; if (next >= work.length) { break; } } return target; } // This section is all about the displaying additional // location and city fields when editing vacancies // var ie4 = (document.all) ? true : false; var ns4 = (document.layers) ? true : false; var ns6 = (document.getElementById && !document.all) ? true : false; function shidem(n){ // toggle display of shide1 and shide2 sections if (n=="2"){ if (ie4){ document.all["shide1"].style.display = "none"; document.all["shide2"].style.display = ""; } if (ns4){ document.layers["shide1"].display = "none"; document.layers["shide2"].display = ""; } if (ns6){ document.getElementById("shide1").style.display = "none"; document.getElementById("shide2").style.display = "block"; } }else if (n=="1"){ if (ie4){ document.all["shide2"].style.display = "none"; document.all["shide1"].style.display = ""; } if (ns4){ document.layers["shide2"].display = "none"; document.layers["shide1"].display = ""; } if (ns6){ document.getElementById("shide2").style.display = "none"; document.getElementById("shide1").style.display = "block"; } } }