function new_freecap()
{
        // loads new freeCap image
        if(document.getElementById)
        {
                // extract image name from image source (i.e. cut off ?randomness)
                thesrc = document.getElementById("freecap").src;
                thesrc = thesrc.substring(0,thesrc.lastIndexOf(".")+4);
                // add ?(random) to prevent browser/isp caching
                document.getElementById("freecap").src = thesrc+"?"+Math.round(Math.random()*100000);
        } else {
                alert("Sorry, cannot autoreload freeCap image\nSubmit the form and a new freeCap will be loaded");
        }
}
var win = null;
function NewWindow(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
win = window.open(mypage,myname,settings)
}


function switchpage(select) {
    var index;
  for(index=0; index<select.options.length; index++)
    if(select.options[index].selected)
      {
        if(select.options[index].value!="")
          window.location.href=select.options[index].value;
        break;
      }
}