/*
Script Information:
Original: Eric King (http://redrival.com/eak/)
Modifications: Ryan Martinsen (http://blog.ryanware.com/)
Usage:
580x480 popup window positioned at x 150, y 150
580x480 popup window positioned at x 150, y 600
450×100 popup window positioned at x 150, y 150
500×600 popup window positioned at x 500, y 600
450×700 popup window positioned at x 150, y 600
*/
function popupWindow(url, name, w, h, x, y) {
if (!w) w = 450;
if (!h) h = 470;
if (!x) x = 25;
if (!y) y = 25;
winprops = 'toolbar=no,location=no,' +
'directories=no,status=no,menubar=no,scrollbars=yes,' +
'resizable=no,copyhistory=no,width='+w+',height='+h+',' +
'screenX='+x+',screenY='+y+',top='+x+',left='+y
win = window.open(url, name, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
function popupWindowNoScroll(url, name, w, h, x, y) {
if (!w) w = 450;
if (!h) h = 470;
if (!x) x = 25;
if (!y) y = 25;
winprops = 'toolbar=no,location=no,' +
'directories=no,status=no,menubar=no,scrollbars=yes,' +
'resizable=yes,copyhistory=no,width='+w+',height='+h+',' +
'screenX='+x+',screenY='+y+',top='+x+',left='+y
win = window.open(url, name, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}