var NS4 = (document.layers) ? 1 : 0;
var IE4 = (document.all) ? 1 : 0;
var W3C = (document.getElementById) ? 1 : 0;

var siteWidth_ = 900;
var defaultHeight_ = 475;

function getElement(nm){
  if ( W3C ) {
    e = document.getElementById(nm);
  } else if ( NS4 ) {
    e = document.layers[nm];
  }
  else if( IE4 ){
    e = document.all[nm];
  } 
  return e;
}
function  setFrameHeight(frm,h){
  if(frm.contentDocument){
    frm.resizeTo(siteWidth_,h);
    //window.resizeTo(siteWidth_,defaultHeight_);
  }
  else{
    frm.resizeTo(siteWidth_,h);
  }
}

function setElementClass(el,classNm){
  //if item is a string, get the element first.
  el.className=classNm;
}

function doRollover(name,src){
  document.images[name].src=src;
}

function setLocation(src){
  location=src;
}

function setCursorToWait(){
  document.body.style.cursor = "wait";
  //this.parentWindow.frame.style.cursor = winCtrl.resizeDirection + "-resize";
}

function restoreCursor(){
  document.body.style.cursor = "";
}

function setLocation(url){
  this.location=url;
}