// GET SCREEN SIZE
var _top=60;
var _left=70;
var DFLT_WIDTH = 538;
var DFLT_HEIGHT = 480;
bName = navigator.appName;
bVer = parseInt(navigator.appVersion);
// for centering
if ( ( (bName = "Microsoft Internet Explorer") || (bName == "Netscape") ) &&
(bVer >= 4) ) {
w=screen.width
h=screen.height
if (screen.width > 1024) { w = 1024 } 
if (screen.height > 768) { h = 768 } 
// set size
_top = ( 10 );
_left = ( 10 );}

function pop(page, width, height) {
window.onerror=null;
if (bVer >= 3) {
var _params = "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=" + width + ",height=" + height + ",top=" + _top + ",left=" + _left;
var xwin = window.open(page,"popup",_params);
if (xwin.opener = null) { xwin.opener = self; }
xwin.focus();
}}
