﻿
function isDBody(){
  return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body;
}

function getElmID(xID){
  return document.getElementById(xID);
}

function ShowDiv(xID)
{
 nDiv = getElmID(xID);
 if(nDiv.style.display=='none') { nDiv.style.display = ''; }
 else { nDiv.style.display = 'none'; } 
}   

/*Funcs for User*/
function GoSearch()
{
  var oForm = document.sOut;
  var Url = oForm.Url.value;
  window.open(Url);
}

function GoSchInn()
{
  var oForm = document.sInfo;
  var Url = oForm.MD.value;
  var KW = oForm.KW.value;
  window.open(Url+"&KeyWD="+KW);
}

function HidSelect(xID) //'Hid','SchMD'
{
  var nDiv = getElmID('SchMD'); nDiv.style.display = 'none'; 
	  nDiv = getElmID('SchOut'); nDiv.style.display = 'none'; 
      nDiv = getElmID('SchMD2'); nDiv.style.display = ''; 
	  nDiv = getElmID('SchOut2'); nDiv.style.display = ''; 
}
