function searchfocus() {
      document.ChangeMag.searchbox.focus();
      setTimeout("hidewhereis()",5000);
      }
function hidewhereis() {
  var elem, vis;
  whichLayer = "whereishelp";
  if( document.getElementById ) // this is the way the standards work
    elem = document.getElementById( whichLayer );
  else if( document.all ) // this is the way old msie versions work
      elem = document.all[whichLayer];
  else if( document.layers ) // this is the way nn4 works
    elem = document.layers[whichLayer];
  elem.style.visibility = "hidden";
      }
function searchsubmit() {
   document.ChangeMag.secret.value = ('IEsecret');
   document.ChangeMag.submit()
      }
function togglediv(whichLayer) {
  var elem, vis;
  if( document.getElementById ) // this is the way the standards work
    elem = document.getElementById( whichLayer );
  else if( document.all ) // this is the way old msie versions work
      elem = document.all[whichLayer];
  else if( document.layers ) // this is the way nn4 works
    elem = document.layers[whichLayer];
  vis = elem.style;
  // if the style.display value is blank we try to figure it out here
  if(vis.display==''&&elem.offsetWidth!=undefined&&elem.offsetHeight!=undefined)
  vis.display = (elem.offsetWidth!=0&&elem.offsetHeight!=0)?'block':'none';
  vis.display = (vis.display==''||vis.display=='block')?'none':'block';
}
function getelement(byid) {
  var elem;
  if( document.getElementById ) // this is the way the standards work
    elem = document.getElementById(byid);
  else if( document.all ) // this is the way old msie versions work
      elem = document.all[byid];
  else if( document.layers ) // this is the way nn4 works
    elem = document.layers[byid];
  return elem;
  }
function hidethisid(whichid) {
  getelement(whichid).style.display = 'none';
}
function showthisid(whichid) {
  getelement(whichid).style.display = 'block';
}
function glow() {
  var elem, vis;
  for(var i=0; i < arguments.length; i++)
   {
   if( document.getElementById ) // this is the way the standards work
     elem = document.getElementById( arguments[i] );
   else if( document.all ) // this is the way old msie versions work
      elem = document.all[arguments[i]];
   else if( document.layers ) // this is the way nn4 works
    elem = document.layers[arguments[i]];
   elem.style.backgroundColor="#FF0000";
   elem.style.outline="#FF0000 solid thin";
   }
}
function unglow() {
  var elem, vis;
  for(var i=0; i < arguments.length; i++)
   {
   if( document.getElementById ) // this is the way the standards work
     elem = document.getElementById( arguments[i] );
   else if( document.all ) // this is the way old msie versions work
      elem = document.all[arguments[i]];
   else if( document.layers ) // this is the way nn4 works
    elem = document.layers[arguments[i]];
   elem.style.backgroundColor="transparent";
   elem.style.outline="none";
   }
}

