window.onload = function () {
	for (var i = 0; i < this.onloads.length; i++) {
		this.onloads[i].apply(this)
	}
}

function openWindow(url,width,height)
   {
   x = (640 - width)/2;
   y = (480 - height)/2;
   if (screen)
      {
      y = (screen.height - height)/2;
      x = (screen.width - width)/2;
      }
   window.open(url,'newWin','width='+width+',height='+height+',screenX='+x+',screenY='+y+',top='+y+',left='+x);
   }

