<!-- Begin
function imgPopup(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
var s1 ="<title>Image</title>"
var s15=""
var s2 ="<body bgcolor='#053505'><center><img src='"+mypage+"'>"
var s3 ="<form><input type='button' value='Close Window'"+ " onclick='self.close()'>"
var s4 ="</form></body>"
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+true+''
win = window.open(mypage, myname, winprops)
win.document.write(s1+s15+s2+s3+s4)
win.document.close()
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function imgPopup2(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
var s1 ="<title>Image</title>"
var s15=""
var s2 ="<body bgcolor='#053505'><center>"
var s5 ="<applet code='ptviewer.class' width='320' height='240'><param name='file' value='"+mypage+"'><param name='fov' value='90'><param name='auto' value='0.4'><param name='wait' value='wait.gif'></applet>"
var s3 ="<form style='margin:10px;padding=10px'><input type='button' value='Close Window'"+ " onclick='self.close()'>"
var s4 ="</form></body>"
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+true+''
win = window.open(mypage, myname, winprops)
win.document.write(s1+s15+s2+s5+s3+s4)
win.document.close()
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
//  End -->

//Make sign graphic fit in to 200x150 space
function makeFit(theImg, maxW, maxH){
var oldH, oldW, newH, newW, ratio
oldH = theImg.height;
oldW = theImg.width;
if(oldH > 0 && oldW > 0){
     ratio = oldH/oldW;
   max_ratio = maxH/maxW;
      if(oldH > maxH || oldW > maxW){
       if(ratio >max_ratio){
         newH = maxH;
         newW = newH/ratio;
        }
       else{
          newW = maxW;
          newH = newW*ratio;
        }
     }
      else{
       newW = oldW;
        newH = oldH;
      } 
    }
 else{
      newW = maxW;
      newH = maxH;
}
 newW = Math.round(newW);
 newH = Math.round(newH);
 theImg.height = newH;
 theImg.width =  newW;
 if(oldH = 0 || oldW > 0)
 //  window.setTimeout("makeFit("+theImg+","+maxW+", "+maxH+")",1000)
window.setTimeout( function() { makeFit( theImg, maxW, maxH ) }, 1000 )
}
//-->
