function printit(){ 
  var VERSION = parseInt(navigator.appVersion);
  if (VERSION > 3) {
    if (window.print) {
      window.print() ; 
    } else {
      var WebBrowser = '<OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>';
      document.body.insertAdjacentHTML('beforeEnd', WebBrowser);
      WebBrowser1.ExecWB(6, 2);
      WebBrowser1.outerHTML = ""; 
    }
  }
}

function printitchangemedia(nm){ 
  var link_ = document.getElementsByTagName("link");
  var premedia;

  for ($i=0;$i<link_.length;$i++){
    if(link_[$i].media=="print"){
      premedia=link_[$i].href;
      link_[$i].href=nm;
      printit();
      link_[$i].href=premedia;
    }
  }
}

function openwin(hr,hg,wd){
  window.open(hr,"_blank","location=0,menubar=0,resizable=1,scrollbars,status,height="+hg+",width="+wd);
  return void(0);
}

function opencom(o){
  window.open("webOpenDocComSend?ReadForm&o="+o+"&brc="+jsBarColor,"com","location=0,menubar=0,resizable=1,scrollbars,status,height=430,width=600");
  return void(0);
}

function docshare(o){
  window.open("webDocShare?ReadForm&o="+o+"&brc="+jsBarColor,"com","location=0,menubar=0,resizable=1,scrollbars,status,height=430,width=600");
  return void(0);
}

function menushare(mo){
  window.open("webMenuShare?ReadForm&mo="+mo,"com","location=0,menubar=0,resizable=1,scrollbars,status,height=430,width=600");
  return void(0);
}

function opensurveyOID(o){
  window.open("webOpenDocID?OpenAgent&win=win&o="+o,"_blank","location=0,menubar=0,resizable=1,scrollbars,status,height=400,width=440");
  return void(0);
}

