var isIE4 = document.all;
var isNS4 = document.layers;
var isNS6 = document.getElementById && !document.all; 

var M_Hide = isNS4?'hide':'hidden';
var M_Show = isNS4?'show':'visible';

function initialize() {
  document.forms[0].elements[0].focus();
}

function padout(number) {
  return (number <10) ? '0' + number : number;
}

function setStatusBar(msgStr) { self.status = msgStr; }

function openWin(url, winName) {
  var width="600", height="500";
  var left = (screen.width/2) - width/2;
  var top = (screen.height/2) - height/2;
  var styleStr = 'scrollbars=1,resizable=1,copyhistory=yes,width='+width+',height='+height+',left='+left+',top='+top+',screenX='+left+',screenY='+top;
  
  windowHandle = window.open(url,winName, styleStr);
  if (!windowHandle.opener)
    windowhandle.opener = self;
  return;
}

function showContent(src) {
	if (window.frames && window.frames.content)
		window.frames.content.location.href = src;
}