// JavaScript Document
//open browser window
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//print btn
function printpage() {
window.print();  
}

//footer scripts
function getWindowHeight() {
var windowHeight=0;
if (typeof(window.innerHeight)=='number') {
windowHeight=window.innerHeight;
}
else {
if (document.documentElement&&
document.documentElement.clientHeight) {
windowHeight=document.documentElement.clientHeight;
}
else {
if (document.body&&document.body.clientHeight) {
windowHeight=document.body.clientHeight;
}
}
}
return windowHeight;
}
function setFooter() {
 if (document.getElementById) {
  var windowHeight=getWindowHeight();
  if (windowHeight>0) {
   var contentHeight=document.getElementById('pagewidth').offsetHeight;
   var footerElement=document.getElementById('footer');
   var footerHeight=footerElement.offsetHeight;
    if (windowHeight-(contentHeight)>=0) {
     footerElement.style.position='relative';
     footerElement.style.top=(windowHeight-(contentHeight))+'px';
    }
    else {
    footerElement.style.position='static';
    }
   }
 }
}

function formHandler(){
selectBox = document.getElementById("site");
if(selectBox){
var URL = selectBox.options[document.getElementById('site').selectedIndex].value;
window.location.href = URL;
}
}