
// POP UP SCRIPT
function wopen(url, name, w, h)
{
// Fudge factors for window decoration space.
 // In my tests these work well on all platforms & browsers.
w += 32;
h += 96;
//l = (screen.width  - width)/2;
//t = (screen.height - height)/2;
 var win = window.open(url, name, 
  'width=' + w + ', height=' + h + ', ' +
//  'top=' + t + ', left=' + l + ',' +
  'location=no, menubar=no, ' +
  'status=no, toolbar=no, scrollbars=no, resizable=no');
 win.resizeTo(w, h);
 win.focus();
}

function popup(url,width,height) 
{
 // var width  = 400;
 // var height = 500;
 var left   = (screen.width  - width)/2;
 var top    = (screen.height - height)/2;
 var params = 'width='+width+', height='+height;
 params += ', top='+top+', left='+left;
 params += ', directories=no';
 params += ', location=no';
 params += ', menubar=no';
 params += ', resizable=no';
 params += ', scrollbars=no';
 params += ', status=no';
 params += ', toolbar=no';
 newwin=window.open(url,'popup', params);
 if (window.focus) {newwin.focus()}
 return false;
}
