function preload() {
  if (!document.images) return;
  var imgs = new Array();
  var arguments = preload.arguments;
  for (var i = 0; i < arguments.length; i++) {
    imgs[i] = new Image();
    imgs[i].src = arguments[i];
  }
}


function popup(url, w, h) {
	var centerX = screen.width/4;
	var centerY = screen.height/4;
	
window.open(url, "popup", "height="+h+",width="+w+",location=no,toolbar=no,scrollbars=yes, resizable=no,status=no,screenX="+centerX+",screenY="+centerY)
}

function popupScroll(url, w, h) {
window.open(url, "popup", "height="+h+",width="+w+",toolbar=no,scrollbars=yes, resizable=no")
}

function popupNoRes(url, w, h) {
	var centerX = screen.width/4;
	var centerY = screen.height/4;
window.open(url, "popup", "height="+h+",width="+w+",toolbar=no,scrollbars=no, resizable=nostatus=no,screenX="+centerX+",screenY="+centerY)
}

