// JavaScript centering adapted by telophase: telophase@telophase.net
// from code by Kate Ward: http//www.kateandmouse.com
// Full permission is granted for use.

function popUp(URL,popW,popH) {

var w = 480, h = 340;
var n = parseInt(Math.random()*999999);
if (document.all || document.layers) {
   w = screen.availWidth;
   h = screen.availHeight;
}

var topPos = (h-popH)/2, leftPos = (w-popW)/2;


   window.open(URL,'popup'+n,'resizable, toolbar=no, location=no, status=no, scrollbars=no, menubar=no, titlebar=no, width=' + popW + ',height=' + popH + ',left=' + leftPos + ',top=' + topPos + ',screenX=' + leftPos + ',screenY=' + topPos);
}
