function jumpTo(){ 
          var URL = document.form1.drop1.options[document.form1.drop1.selectedIndex].value; 
          location.href=URL //change to reflect frame number 
            
          } 

//***Fade Script below***

//http://www.321webmaster.com/colorconverter.php for hex to rgb converter
/*
rgb_beg=[168,00,00]
rgb_end=[00,00,00]
over_spd=15
out_spd=20

document.onmouseover = domouseover;
document.onmouseout  = domouseout;
document.onclick     = doclick;

dualhex = new Array()
hex = ["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"]
for(i = 0; i < 256; i++) dualhex[i] = hex[parseInt(i / 16)] + hex[i % 16]

function domouseover() {
  if (document.all && window.event.srcElement.tagName == "A")
    fade(window.event.srcElement.sourceIndex, 1)
}

function domouseout() {
  if (document.all && window.event.srcElement.tagName == "A")
    setTimeout("fade('" + window.event.srcElement.sourceIndex + "', 0)", over_spd * over_spd * 2)
}

function doclick() {
  if (document.all && window.event.srcElement.tagName == "A")
    window.event.srcElement.blur();
}

function fade(element, over) {
  if(over) {
    beg = rgb_beg;
    end = rgb_end;
    spd = over_spd;
  }
  else {
    beg = rgb_end;
    end = rgb_beg;
    spd = out_spd;
  }
  for(i = 0; i <= spd; i++)
    setTimeout("document.all[" + element + "].style.color = '#"
     + dualhex[Math.floor(beg[0] * ((spd - i) / spd) + end[0] * (i / spd))]
     + dualhex[Math.floor(beg[1] * ((spd - i) / spd) + end[1] * (i / spd))]
     + dualhex[Math.floor(beg[2] * ((spd - i) / spd) + end[2] * (i / spd))] + "';",  i * spd);
}
*/
//***End fade script***
//*** start jumpto script ***
function jumpTo(){ 
          var URL = document.form1.drop1.options[document.form1.drop1.selectedIndex].value; 
          location.href=URL //change to reflect frame number 
            
          }
//*** end jumpto script ****


/*
//Fix Safari Back Button Bug
function ds_fixSafariBB(){ //v1.1 by PVII
if(navigator.userAgent.indexOf("Safari")>-1){
var jj=onload;if(jj){if(onunload==null){
document.body.setAttribute('onunload',jj);}}}
}
*/
//Netscape 4 Resize Fix
function MM_reloadPage(init) {
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

//write NN4 stylesheet if not version5 browser
if(!document.getElementById){
document.write('<link rel="stylesheet" type="text/css" href="/04includes/04n4styles.css">');
document.close();}

//handle table row highligthing
function ds_rowLite(tb,cl){ //v1.0 by PVII -table row highlighter
 var g,i,x,gr;if(document.getElementById){g=document.getElementsByTagName("TABLE");
 for(x=0;x<g.length;x++){if(g[x].className&&g[x].className==tb){
 gr=g[x].getElementsByTagName("TR");if(gr){for(i=0;i<gr.length;i++){
 if(i>0){gr[i].onmouseover=function(){this.className=cl;};
 gr[i].onmouseout=function(){this.className='';};}}}}}}
}

//handle pop up windows
function ds_infopop(a) { //v1.0 by PVII
 document.dstutpop = window.open(a,'theInfo','toolbar=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,top=0,left=0,height=500,width=800');
 document.dstutpop.focus();
}

// ds Multi-Menu - Copyright 2004 Project Seven Development (PVII)
// Developed by: Gerry Jacobsen-PVII
// beta version 0.85_6a
function ds_setNM2(){var i,d='',h="<sty"+"le type=\"text/css\">";var tA=navigator.userAgent.toLowerCase();if(window.opera){if(tA.indexOf("opera 5")>-1||tA.indexOf("opera 6")>-1){return;}}if(document.getElementById){for(i=1;i<10;i++){d+='ul ';h+="\n.dssub ul "+d+"{display:none;}";}document.write(h+"\n<"+"/sty"+"le>");}}ds_setNM2();function ds_buildNM(){var i,x,g,theDiv,bb,theS,tA,theU,pp,lvl,tS,opn;tA=navigator.userAgent.toLowerCase();if(window.opera){if(tA.indexOf("opera 5")>-1||tA.indexOf("opera 6")>-1){return;}}document.dstControl=new Array;opn='';if(document.dsNMopener&&document.dsNMopener.length>5){opn=document.dsNMopener.split(",");}if(document.getElementById){for(x=1;x<10;x++){theDiv=document.getElementById('dsNMnav'+x);if(theDiv){if(theDiv.className&&theDiv.className.indexOf("dssnm")>-1){theS=theDiv.className.split('_');if(theS.length&&theS.length>2){theDiv.dsNMprop=theS.slice(1);}else{alert('Missing NM2 Menu Props:'+theDiv.id);continue;}}else{alert('Missing NM2 Menu Props:'+theDiv.id);continue;}theU=theDiv.getElementsByTagName("UL");for(i=0;i<theU.length;i++){theU[i].dsnmdiv=theDiv.id;theU[i].dstctrl=document.dstControl.length;document.dstControl[document.dstControl.length]=theU[i];if(i==0){}pp=theU[i].parentNode;lvl=0;while(pp){if(pp.tagName&&pp.tagName=="UL"){lvl++;}if(pp.tagName&&pp.tagName=="DIV"){break;}pp=pp.parentNode;}theU[i].dsnmlvl=lvl;}theA=theDiv.getElementsByTagName("A");for(i=0;i<theA.length;i++){theA[i].dsnmdiv=theDiv.id;bb=ds_getSub(theA[i]);theA[i].dsulref=(bb!=null)?bb.dstctrl:-1;theA[i].dsaref=document.dstControl.length;document.dstControl[document.dstControl.length]=theA[i];if(theDiv.dsNMprop[2]==2){theA[i].onmouseover=function(){ds_timeNM2(this);};theA[i].onfocus=function(){ds_timeNM2(this);};}else{if(theA[i].dsulref<0){theA[i].onclick=function(){ds_toggleNM2(this);};}else{theA[i].onclick=function(){ds_clickNM2(this);};}}}if(theDiv.dsNMprop[1]==1){tS="'"+theDiv.id+"'";for(i=0;i<opn.length;i+=3){if(opn[i]==theDiv.id){tS=tS+","+opn[i+1]+",'"+opn[i+2]+"'";}break;}eval("ds_openNM2("+tS+")");}}}document.body.onmouseover=ds_mainClose;}}function ds_getSub(a){var i,theU=null;var g=a.parentNode.getElementsByTagName("UL");if(g&&g.length){theU=g[0];}return theU;}function ds_showNM2(ob,bp){var i,s,hh,thePc,mk;var g=document.getElementById(ob.dsnmdiv);if(!bp&&g.dsNMprop[3]==1){ds_toggleNM2(ob);}if(ob&&ob.parentNode){thePc=ob.parentNode.childNodes;for(i=0;i<thePc.length;i++){if(thePc[i].tagName=="UL"){if(thePc[i].style.display!="block"){thePc[i].style.display="block";ob.parentNode.style.position="relative";if(g.dsNMprop[0]==0||thePc[i].dsnmlvl<(g.dsNMprop[7])){thePc[i].style.position="absolute";thePc[i].style.left=g.dsNMprop[4];thePc[i].style.top=g.dsNMprop[5];}thePc[i].style.visibility="visible";mk=(ob.className.indexOf("curr")>-1)?"dsminusmarkcurr":"dsminusmark";ob.className=mk;if(g.dsNMprop[6]==1){ds_animSub(thePc[i].dstctrl,40);}}}}}}function ds_toggleNM2(a,b){var i,g,pp,theU,theA;if(a&&a.parentNode){pp=a.parentNode;while(pp){if(pp.tagName&&pp.tagName=="UL"){break;}pp=pp.parentNode;}if(pp){theU=pp.getElementsByTagName("UL");g=document.getElementById(pp.dsnmdiv);if(g.dsNMprop[0]==1&&b==1){return;}for(i=0;i<theU.length;i++){theA=theU[i].parentNode.firstChild;if(b!=1&&theA==a){continue;}else{if(theU[i].style.display=="block"){ds_hideNM2(theA);}}}}}}function ds_hideNM2(ob){var i,s,hh,thePc,theIm,tt;var g=document.getElementById(ob.dsnmdiv);if(ob&&ob.parentNode){thePc=ob.parentNode.childNodes;for(i=0;i<thePc.length;i++){if(thePc[i].tagName=="UL"){thePc[i].style.display="none";if(g.dsNMprop[0]==0||thePc[i].dsnmlvl<(g.dsNMprop[7])){thePc[i].style.position="static";thePc[i].style.left=0;thePc[i].style.top=0;}thePc[i].style.visibility="hidden";mk=(ob.className.indexOf("curr")>-1)?"dsplusmarkcurr":"dsplusmark";ob.className=mk;tt='setTimeout("ds_dodo('+thePc[i].dstctrl+')",1)';eval(tt);}}}}function ds_dodo(ct){var g=document.dstControl[ct];g.parentNode.style.position="static";}function ds_animSub(ct,st){var g=document.dstControl[ct];var sp=30;var inc=20;st=(st>=100)?100:st;g.style.fontSize=st+"%";if(st<100){st+=inc;setTimeout("ds_animSub("+ct+","+st+")",sp);}}function ds_clickNM2(a){document.dsnmactive=1;document.dsnmadiv=a.dsnmdiv;var i,s,thePc;if(a&&a.parentNode){thePc=a.parentNode.childNodes;for(i=0;i<thePc.length;i++){if(thePc[i].tagName=="UL"){s=thePc[i].style.display;if(s=="block"){ds_hideNM2(a);}else{ds_showNM2(a);}}}}}function ds_timeNM2(a){if(document.dsnmcc){clearTimeout(document.dsnmcc);}document.dsnmactive=1;document.dsnmadiv=a.dsnmdiv;var tg='document.dsnmcc=setTimeout("ds_mouseNM2('+a.dsaref+')",220)';eval(tg);}function ds_mouseNM2(ct){var g=document.dstControl[ct];if(ct>=0){ds_showNM2(g);}else{ds_toggleNM2(g);}}function ds_mainClose(evt){evt=(evt)?evt:((event)?event:null);var nn,pp,m=true;var st=document.dsnmactive;if(st!=-999){if(evt){var theSrc=(evt.target)?evt.target:evt.srcElement;pp=theSrc.parentNode;while(pp){nn=pp.nodeName;if(nn=="DIV"&&pp.dsNMprop){m=false;document.dsnmactive=1;document.dsnmadiv=pp.id;pp.nmstate=1;break;}pp=pp.parentNode;}if(m){document.dsnmactive=0;document.dsnmadiv='none';}if(document.dsnmc){clearTimeout(document.dsnmc);}document.dsnmc=setTimeout("ds_closeNM2()",300);}}}function ds_closeNM2(){var theA,i,divName,theDiv;if(document.dsnmadiv=='none'){document.dsnmactive=-1;}for(i=1;i<11;i++){divName='dsNMnav'+i;theDiv=document.getElementById(divName);if(theDiv){if(document.dsnmadiv!=theDiv.id){theDiv.nmstate==0;theA=theDiv.getElementsByTagName("A");if(theA){ds_toggleNM2(theA[0],1);}}}}}

//menu auto opener
function ds_openNM2(navDiv,tp,vu){var i,d,ha,pp,m=false;if(document.getElementById){d=document.getElementById(navDiv);if(d){ha=d.getElementsByTagName("A");if(tp==null||tp==0){vu=window.location.href;tp=0;}for(i=0;i<ha.length;i++){if(ha[i].href){if(tp<=0){if(ha[i].href.indexOf(vu)>-1){m=true;break;}}if(tp==1){if(ha[i].href.indexOf(vu)>-1){m=true;break;}}if(tp==2){if(ha[i].firstChild){if(ha[i].firstChild.nodeValue==vu){m=true;break;}}}}}if(m){pp=ha[i].parentNode;if(ha[i].dsulref<0){ha[i].className="dscurrentmark";pp=pp.parentNode;}while(pp){if(pp.nodeName=="LI"){if(pp.firstChild.nodeName=="A"){pp.firstChild.className="dsplusmarkcurr";if(d.dsNMprop[0]==1){ds_showNM2(pp.firstChild,9);}}}pp=pp.parentNode;}}}}}

// ds Random Background Scroller - Copyright 2004 Project Seven Development (PVII)
// Developed by: Gerry Jacobsen-PVII
// beta version 0.7 -beta
function ds_setRBS(){var theBox="thumbnails";var theShim="thumbs";var theDiv="bgsc1inks";var i,tB,tS,tD,tL,tA,j,np;if(document.getElementById){tB=document.getElementById(theBox);if(tB){tD=document.getElementById(theDiv);if(tD){tB.dsRBS=arguments;if(document.dsRBSdn){tB.dsRBS[0]=document.dsRBSdn;}tL=tD.getElementsByTagName("LI");if(tL){j=tL.length;if(tB.dsRBS[0]==0){i=Math.floor(Math.random()*j);}else{i=(tB.dsRBS[0]>j)?0:tB.dsRBS[0]-1;i=(i<0)?0:i;}tA=tL[i].getElementsByTagName("A");if(tA&&tA.length>1){tB.style.backgroundImage="url("+tA[1].href+")";tS=document.getElementById(theShim);if(tS){tS.setAttribute("alt",tA[0].firstChild.nodeValue);tS.parentNode.setAttribute("href",tA[0].href);}ds_runRBS(tB.id,'Reset');}}}}}}function ds_scrollRBS(ob,tT,np){if(document.getElementById){var theBox=document.getElementById(ob);var tt,nu,tF,lp=0,hp=0,inc=0,dl=theBox.dsRBS[5],m=true;;var tm="theBox.dsBGtm=setTimeout(\"ds_scrollRBS('";if(theBox){if(tT=='H'||tT=='D'){lp=np;}if(tT=='V'||tT=='D'){hp=np;}theBox.style.backgroundPosition=lp+'px '+hp+'px';tF=theBox.dsRBS[4];theBox.dsRBSac+=tF;nu=theBox.dsRBSac+tF;if(theBox.dsRBS[1]=='C'){if(nu>theBox.dsRBS[6]&&theBox.dsRBSac!=theBox.dsRBS[6]){tF=theBox.dsRBS[6]-theBox.dsRBSac;theBox.dsRBSac=theBox.dsRBS[6]-theBox.dsRBS[4];}if(theBox.dsRBSac>=theBox.dsRBS[6]){dl=theBox.dsRBS[7];theBox.dsRBSac=0;theBox.dsRBSc+=1;if(theBox.dsRBSc>theBox.dsRBScc){theBox.dsRBSc=1;}}}theBox.dsRBSae+=tF;inc=(np>=0)?tF:tF*-1;np=np+inc;if(theBox.dsRBSae+tF>theBox.dsRBS[9]){np=(np>=0)?theBox.dsRBS[9]:theBox.dsRBS[9]*-1;}tm+=ob+"','"+tT+"',"+np+")\","+dl+")";theBox.dsRBSres=tm;if(theBox.dsRBS[3]=="N"&&theBox.dsRBSae>theBox.dsRBS[9]){m=false;theBox.dsRBScm=0;if(theBox.dsBGtm){clearTimeout(theBox.dsBGtm);}}if(m){if(theBox.dsRBScm==1){eval(tm);}}}}}function ds_runRBS(ob,cm,op){var lp=0,hp=0,tT,tm,dl;var tm="theBox.dsBGtm=setTimeout(\"ds_scrollRBS('";if(document.getElementById){var theBox=document.getElementById(ob);if(theBox){if(cm=='Stop'){theBox.dsRBScm=0;if(theBox.dsBGtm){clearTimeout(theBox.dsBGtm);}}if(cm=='Resume'){theBox.dsRBScm=1;if(theBox.dsRBSres){eval(theBox.dsRBSres);}}if(cm=='Reset'){theBox.dsRBScm=0;if(theBox.dsBGtm){clearTimeout(theBox.dsBGtm);}theBox.dsRBSres='';np=theBox.dsRBS[8];theBox.dsRBSac=0;theBox.dsRBSae=0;var tT="H";if(theBox.dsRBS[2]=='U'||theBox.dsRBS[2]=='D'){tT="V";}if(tT=='H'||tT=='D'){lp=np;}if(tT=='V'||tT=='D'){hp=np;}theBox.style.backgroundPosition=lp+'px '+hp+'px';np+=theBox.dsRBS[4];if(theBox.dsRBS[2]=="L"||theBox.dsBGs[2]=="U"){np=np*-1;}theBox.dsRBSc=1;theBox.dsRBScc=parseInt(theBox.dsRBS[9]/theBox.dsRBS[6]);theBox.dsRBScm=1;dl=(op)?op:theBox.dsRBS[7];tm+=ob+"','"+tT+"',"+np+")\","+dl+")";theBox.dsRBSres=tm;if(theBox.dsRBS[10]=="Y"){eval(tm);}}}}}

function introHideShow(introDiv) {
  introDiv.style.display = introDiv.style.display == "none"?"block":"none";
}
function viewHelp(sourcefile, w, h) {
        winPop = window.open(sourcefile,"Map","width="+w+",height="+h+",scrollbars=yes, screenX=5,screenY=5,left=5,top=5");
}

function ccClicked(f) {

     exp.style.color = '#000000';
     f.srvContractExpiry.disabled = false;
     f.srvContractExpiry.style.name = "activeField";
     f.srvContractExpiry.style.background = 'white';
     f.srvContractExpiry.style.borderColor = 'red';
}

function chqClicked(f) {
     f.srvContractExpiry.disabled = true;
     f.srvContractExpiry.style.background = '#eeeeee';
     f.srvContractExpiry.style.borderColor = 'silver';
     f.srvContractExpiry.value = '';
     exp.style.color = 'silver';
}

function disableRadios(f){
     document.frmuser.srvContractExpiry.disabled = true;
     document.frmuser.srvContractExpiry.style.background = '#eeeeee';
     document.frmuser.srvContractExpiry.style.borderColor = 'silver';
     //document.frmuser.exp.style.color = 'silver';
     }
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&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
/* Zooming link script by Paul Anderson, copyright 2001 CNET Builder.com.
   May be freely used with attribution. Not for resale. All rights reserved. 
   Make a link zoom open by adding the event handler   
   onclick="zoomBox(event,this);return false"   
   To zoom into a new, positioned window add width, height, left, and top   
   onclick="zoomBox(event,this,640,480,100,50);return false"
   It is a Javascript 1.2 version
*/

var maxW,maxH,fromX,fromY,toX,toY,adjX,adjY,zBox,zStep=0,zLink,zNew;

function zoomBox(evt,zlink,maxw,maxh,tox,toy) {
if (arguments.length > 2) zNew=1;
scrollH=(window.pageYOffset!=null)?window.pageYOffset:document.body.scrollTop;
maxW=maxw?maxw:window.innerWidth?innerWidth:document.body.clientWidth;
maxH=maxh?maxh:window.innerHeight?innerHeight:document.body.clientHeight;
toX=tox?tox:0;
toY=(toy?toy:0)+scrollH;
fromX=evt.pageX?evt.pageX:evt.clientX;
fromY=(evt.pageY?evt.pageY:evt.clientY)+(document.all?scrollH:0);
adjX=toX+evt.screenX-fromX;
adjY=toY+evt.screenY-fromY;
if (document.createElement && document.body.appendChild && !zBox) {
	zBox=document.createElement("div");
	zBox.style.position="absolute";
	document.body.appendChild(zBox);
} else if (document.all && !zBox) {
	document.all[document.all.length-1].outerHTML+='<div id="zBoxDiv" style="position:absolute"></div>';
	zBox=document.all.zBoxDiv;
} else if (document.layers && !zBox) {
	zBox=new Layer(maxW);
	zBox.style=zBox;
	}
zLink=zlink;
doZoom();
}

function doZoom() {
zStep+=1;
zPct=(10-zStep)/10
if (document.layers) {
	zBox.moveTo(toX+zPct*(fromX-toX),toY+zPct*(fromY-toY));
	zBox.document.open();
	zBox.document.write("<table width='"+maxW*(1-zPct)+"' height="+maxH*(1-zPct)+" border=2 cellspacing=0><tr><td></td></tr></table>");
	zBox.document.close();
	} else {
	zBox.style.border="1px solid #000000";
	zBox.style.left=toX+zPct*(fromX-toX);
	zBox.style.top=toY+zPct*(fromY-toY);
	zBox.style.width=maxW*(1-zPct);
	zBox.style.height=maxH*(1-zPct);
	}
zBox.style.visibility="visible";
if (zStep < 10) setTimeout("doZoom("+fromX+","+fromY+","+toX+","+toY+")",30);
else {
	zBox.style.visibility='hidden';
	zStep=0;
	if (zLink && !zNew) location.href=zLink.href;
	else if (zLink && zNew) {
		var w=window.open(zLink.href,'','width='+maxW+',height='+maxH+',left='+adjX+',top='+adjY+',scrollbars,resizable');
		zNew=null;
		}
	}
}
