';
mWide=mWide-(xrim*2);mHigh=mHigh-(xrim*2); tbe=' |
';}
var mybgc=(vis=='visible')?col2r:col6;
var myfgc=(vis=='visible')?col1r:col5;
mybgc=(colHead)?colBg:mybgc;
myfgc=(colHead)?colFg:myfgc;
var xlRight=(colHead)?filler:lRight;
var myTd=(colHead)?'':' | ';
var myxTd=(colHead)?' |
':'';
var myAl=(colHead)?'center':xal;
document.write(''
+ tbs+ '
'
+ ''
+ myTd
+ ''
+ ''
+ xname
+ ' |  | '
+ '
'+myxTd+'
'
+ tbe+ '
')
}
function lBlockLayer(mID,xwidth,xname,xloc,vis,sSt,tSt,sub,pid,xhigh,mode){
var filler = (mode==1) ? lTop : lBase;
document.write(''
+ '
'
+ ''
+ ' '
+ ' |
'
+ '
')
}
function baseLayer(mID,xwidth,xname,xloc,vis,sSt,tSt,sub,pid,xhigh) {
var tbs=""; var tbe="";
//if(xrim) {
//tbs='';
//xwidth=xwidth-(xrim*2);xhigh=xhigh-(xrim*2); tbe=' |
';}
var midW=xwidth-rBitWide-lBitWide;
document.write(''
+ tbs +'
'
+ ''
+ ' | '
+ ''
+ ''
+ xname
+ ' |  |
'
+ tbe+ '
')
}
function sbaseLayer(mID,xwidth,xname,xloc,vis,sSt,tSt,sub,pid,xhigh) {
var tbs=""; var tbe="";
//if(xrim) {
//tbs='';
//xwidth=xwidth-(xrim*2);xhigh=xhigh-(xrim*2); tbe=' |
';}
var midW=xwidth-tbrblockW-lBitWide;
document.write(''
+ tbs+'
'
+ ''
+ ' | '
+ ''
+ ''
+ xname
+ ' |  |
'
+ tbe+'
')
}
function showLayer(mID,xwidth,xname,xloc,vis,sSt,tSt,sub,pid,xhigh) {
var tbs=""; var tbe="";
var divW=xwidth;var divH=xhigh;var divT=tSt;var divL=sSt;
if(NS && nVer>4.99){divT=divT+xrim;divL=divL+xrim;}
if(xrim) {if(!(NS && nVer>4.99)){
tbs='';
}
xwidth=xwidth-(xrim*2);xhigh=xhigh-(xrim*2); }
var midW=xwidth-rBitWide-lBitWide;
document.write(''
+ tbs+ '
'
+ ''
+ ' | '
+ ''
+ ''
+ xname
+ ' |  |
'
+ tbe+ '
')
}
function sshowLayer(mID,xwidth,xname,xloc,vis,sSt,tSt,sub,pid,xhigh) {
var mybgc=col4;
var myfgc=col3;
var tbs=""; var tbe="";
var divW=xwidth;var divH=xhigh;var divT=tSt;var divL=sSt;
if(NS && nVer>4.99){divT=divT+xrim;divL=divL+xrim;}
if(xrim) {if(!(NS && nVer>4.99)){
tbs='';}
xwidth=xwidth-(xrim*2);xhigh=xhigh-(xrim*2); }
var midW=xwidth-tbrblockW-lBitWide;
document.write(''
+ tbs+'
'
+ ''
+ ' | '
+ ''
+ ''
+ xname
+ ' |  |
'
+ tbe+'
')
}
function mouseLayer(mID,xwidth,xname,xloc,vis,sSt,tSt,sub,pid,xhigh,emode,tm,si){
var xhide = 'Midd' +mID+sub ;
var dmode = "" ;
var dma='&';
if(emode) {
if(xloc.indexOf("?")<0 && xloc != "#") {dma='?'; }
dmode=dma + 'emode=6';}
var regexp=eval("/" + "http" +"/i");
if (xloc=='#') { var qref=myhttp+ "?pa=" + mID + dmode; }
else if(xloc.match(regexp)) { qref=xloc + dmode;}
else { var qref=siteloc + xloc + dmode; }
dma='&';if(tm) {if(qref.indexOf("?")<0) {dma='?'; } tm=dma + 'tm='+tm; qref=qref+tm;}
dma='&';if(si) {if(qref.indexOf("?")<0) {dma='?'; } si=dma + 'si='+si; qref=qref+si;}
dma='&';if(myleg) {if(qref.indexOf("?")<0) {dma='?'; } var leg=dma + 'leg='+myleg; qref=qref+leg;}
document.write(''
+ '
'
+ ''
+ ' '
+ ' |
'
+ '
')
}
function smouseLayer(mID,xwidth,xname,xloc,vis,sSt,tSt,sub,pid,xhigh,emode,tm,si,cval){
//alert('mID ' + mID + ' sub ' +sub+ ' pid ' +pid);
var xhide = 'sMidd' +pid+mID ;
var dmode = "" ;
var dma='&';
if(emode) {
if(xloc.indexOf("?")<0 && xloc != "#") {dma='?'; }
dmode=dma + 'emode=6';}
var regexp=eval("/" + "http" +"/i");
if (xloc=='#') { var qref=myhttp + "?pa=" + pid +"&su=" + mID + dmode ;}
else if(xloc.match(regexp)) { qref=xloc + dmode;}
else { var qref=siteloc + xloc + dmode;}
dma='&';if(tm) {if(qref.indexOf("?")<0) {dma='?'; } tm=dma + 'tm='+tm; qref=qref+tm;}
dma='&';if(si) {if(qref.indexOf("?")<0) {dma='?'; } si=dma + 'si='+si; qref=qref+si;}
dma='&';if(myleg) {if(qref.indexOf("?")<0) {dma='?'; } var leg=dma + 'leg='+myleg; qref=qref+leg;}
document.write(''
+ '
'
+ ''
+ ' '
+ ' |
'
+ '
')
}
function allL(pageID,mID,mode,t,l,r,rval,cval) {
r=l+r;l=l+4;r=r-4;t=t+4;var bot=(t-4);
if(subMethod !='madl'){
if (mode == 1) {
var qBit=eval("subHeads" + mID);
var myLen=qBit.length;
if(myLen > 0) {
for (var i = 1; i <= myLen; i++) {
var sL = 'sMidd' +mID+i
MM_showHideLayers(sL,"","show");
var sL = 'sMou' +mID+i
MM_showHideLayers(sL,"","show");
var sL = 'sBase' +mID+i
MM_showHideLayers(sL,"","show");
} }}
if (mode == 2) {//alert(l +' '+r +' '+t +' '+fL +' '+fT);
if(((fT1) || (fLr)||(cval>2 &&fT>t)){
var qBit=eval("subHeads" + mID);
var myLen=qBit.length;
if(myLen > 0) {
for (var i = 1; i <= myLen; i++) {
var sL = 'sMidd' +mID +i
MM_showHideLayers(sL,"","hide");
var sL = 'sMou' +mID +i
MM_showHideLayers(sL,"","hide");
var sL = 'sBase' +mID+i
MM_showHideLayers(sL,"","hide");
} } }}
} // end if(subMethod !='madl')
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&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&&i0&&parent.frames.length){t=n.split("?");
x=eval("parent.frames['"+t[1]+"'].document.getElementById('"+t[0]+"')");
}else{x=document.getElementById(n)}return x;
}
function MM_showHideLayers() { //v3.0A Modified by Al Sparber and Massimo Foti for NN6 Compatibility
var i,p,v,obj,args=MM_showHideLayers.arguments;if(document.getElementById){
for (i=0; i<(args.length-2); i+=3){ obj=tmt_findObj(args[i]);v=args[i+2];
v=(v=='show')?'visible':(v='hide')?'hidden':v;
if(obj)obj.style.visibility=v;}} else{
for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null){ v=args[i+2];
if (obj.style) { obj=obj.style;
v=(v=='show')?'visible':(v='hide')?'hidden':v; }
obj.visibility=v; }}
}
var tc = 0
var StoreWindow = null;
function ST_note(theURL,uWidth,uHeight,sbar,res,locH,locV,StoreWindow) {
if(tc>0) {
var cStr='Unsaved text changes will be lost if you change an image now.\n'
+ 'Click "Cancel" and then "Update page" to save text changes first.\n'
+ 'Click "OK" to proceed with image selection and upload.'
if (!confirm(cStr)) {return false;} }
tc=0;
var attr='scrollbars='+sbar+',resizable='+res+',width=' + uWidth + ',height=' +uHeight
if(!window.StoreWindow || window.StoreWindow.closed) {
StoreWindow = window.open("",StoreWindow,attr)
StoreWindow.moveTo(locH,locV)
StoreWindow.document.close();
StoreWindow.document.write('Processing');
StoreWindow.focus()
if(theURL){StoreWindow.location.href = (theURL)}
} else {
//StoreWindow.document.close();
//StoreWindow.document.write('Processing');
if(theURL){StoreWindow.location.href = (theURL)}
StoreWindow.focus()
}
return StoreWindow;
}
function tchange () {
tc = 1;
}
function goHere(pagenow) {
if(pagenow != "#") {
window.location.href=pagenow;
}
return true;
}
function selPage() {
document.forms[0].submit();
return true;
}
function newPage(myURL,mode) {
if (document.forms[0].pt.value == "") {
alert("Please supply a title");
document.forms[0].pt.focus();
return false;
}
var nodel= null; var delhere=0;
nodel=myURL.match("xnodelx");
var msg="This action will delete this item from the navigation.\n"
+ "Are you sure you want to proceed?";
if(mode>0){msg="This action will delete this branch and all its sub items from the navigation.\n"
+ "Are you sure you want to proceed?"; }
if (document.forms[0].delbox.checked == true) {
if (nodel != null) {alert("You must leave at least one page on each branch");return false;}
if(!confirm(msg)){return false;}else{myURL=myURL + '&dx=1';delhere=1;}}
if(delhere<1){
var jpt=document.forms[0].pt.value;
var jpx=document.forms[0].au.value;
var len=jpt.length;
if(mode>0) {if(len>24) {alert("Branch titles are restricted to 24 characters");document.forms[0].pt.focus();return false;}}
jpt=repMe(jpt,' ','%20');
jpt=repMe(jpt,'=','%3D');
jpt=repMe(jpt,'&','%26');
myURL=myURL + '&pt=' + jpt;
if(jpx) {
if(confirm("Are you sure do not want this link \nto point an auto-generated page?")){
jpx=repMe(jpx,' ','%20');
jpx=repMe(jpx,'=','%3D');
jpx=repMe(jpx,'&','%26');
myURL=myURL + '&au=' + jpx;
} else {document.forms[0].au.focus();return false;}
}
var jpx=document.forms[0].au.value; } // end if(delhere<1)
window.opener.location.href=(myURL);
window.close();
//return true;
}
function repMe(str,strIn,strOut) {
var regexp = eval("/" + strIn + "/gi");
var nstr=str.replace(regexp, strOut);
return nstr;
}
function showdate(facecol,fsize){
var dayarray=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
var montharray=new Array("January","February","March","April","May","June","July","August","September","October","November","December")
var mydate=new Date()
var year=mydate.getYear()
if (year>99) {year=1900+year;}
if (year>3000) {year=year-1900;}
var day=mydate.getDay()
var month=mydate.getMonth()
var daym=mydate.getDate()
if (daym<10)
daym="0"+daym
var hours=mydate.getHours()
var minutes=mydate.getMinutes()
var seconds=mydate.getSeconds()
var dn="AM"
if (hours>12){dn="PM";hours=hours-12;}
if (hours==0) {hours=12;}
if (minutes<=9){minutes="0"+minutes;}
if (seconds<=9){seconds="0"+seconds;}
var cdate=dayarray[day]+' '+daym+' '+montharray[month]+' '+year
document.write('' + cdate + '') ;
}
function xcheckdom(checkMe){
//alert(checkMe);
var maxdom = 8-1;
var maxchar = 300;
var field = checkMe.domain;
var userIn = (field.value);
var nlArray=userIn.match(/\n/g);
var rtArray=userIn.match(/\r/g);
var spArray=userIn.match(/[A_Za-z0-9] [A_Za-z0-9]/g);
if (rtArray) { if (rtArray.length > maxdom ) {alert("Please enter fewer names");
field.focus(); return false; } }
if (nlArray) {if (nlArray.length > maxdom ) {alert("Please enter fewer names");
field.focus(); return false; } }
if (spArray) {if (spArray.length > maxdom ) {alert("Please enter fewer names");
field.focus(); return false; } }
var proc=userIn.replace(/\s*/g, "") ;
proc=proc.replace(/\n*/g, "") ;
proc=proc.replace(/\r*/g, "") ;
proc=proc.replace(/\-*/g, "") ;
if (proc == "")
{
alert("Please enter at least one domain name");
field.focus();
return false;
}
var strlen=proc.length;
if (strlen > maxchar)
{
alert("Please input less data");
field.focus();
return false;
}
var bans=new Array('\\','/','+','(',')','[',']','{','}','$','^','*','|',',','--','?');
var Blen=bans.length;
for (var i = 0; i < Blen; i++) {
if(proc.indexOf(bans[i]) != -1) {
alert('Illegal character - please remove " ' + bans[i] +' "');
field.focus();
return false;
} }
var allow='abcdefghijklmnopqrstuvwxyz01234567890-.';
for (var i = 0; i <= strlen; i++) {
var xtest=proc.charAt(i);
var regexp=eval("/" + xtest + "/i");
var fMe=allow.match(regexp);
if(xtest) {
if (!fMe) {
alert('Illegal character - please remove " ' + xtest +' "');
field.focus();
return false;
}}}
var wobj=ST_note('/pages/blank.html',600,380,'Yes','Yes',10,10,'mDomWin');
wobj.document.close();
wobj.document.write('');
var fty=wobj.document.forms[0];
fty.submit();
return false;
}