function setPageHeight() {
	document.getElementById("wrapper").style.height = "100%";
                var height = (document.documentElement ? document.documentElement : document.body).scrollHeight;
                if (height < document.body.scrollHeight) height = document.body.scrollHeight; // fix for safari which has documentElement, but that has only height of viewport
	document.getElementById("wrapper").style.height = height+"px";
}
AddToInitArray(setPageHeight);
window.onresize = setPageHeight;

function fnSearchEnter(e) {
	var keycode;
	if (window.event) {
		keycode = window.event.keyCode;
	} else if (e) {
		keycode = e.which;
	} else {
		return true;
	}
	if (keycode == 13) {
		document.getElementById("sb").onclick();
		return false;
	}
	return true;
}

if (!/page.cgi/.test(location.href)) {
  // Set the message for the alert box
  am = "This function is disabled!";

  // do not edit below this line
  // ===========================
  bV  = parseInt(navigator.appVersion)
  bNS = navigator.appName=="Netscape"
  bIE = navigator.appName=="Microsoft Internet Explorer"

  function nrc(e) {
     if (bNS && e.which > 1){
        alert(am)
        return false
     } else if (bIE && (event.button >1)) {
       alert(am)
       return false;
     }
  }

  document.onmousedown = nrc;
  if (document.layers) window.captureEvents(Event.MOUSEDOWN);
  if (bNS && bV<5) window.onmousedown = nrc;
}