// -------------------------------------------------------
// newwin.js version 1.0 is copyright Felgall Pty Ltd,
// 12th March 2004
// use of this script without the permission
// of Felgall Pty Ltd is not permitted
// no changes are required in this module
// ------------------------------------------------------
function pw() {if (window.innerWidth != null) return window.innerWidth; if (document.body.clientWidth != null) return document.body.clientWidth; return (null);}
function ph() {if (window.innerHeight != null) return window.innerHeight; if (document.body.clientHeight != null) return document.body.clientHeight; return (null);}
function newWindow(pagename) {browserVersion = parseInt(navigator.appVersion);
if ((navigator.userAgent.indexOf('Opera 5') != -1) || (navigator.userAgent.indexOf('Opera 6') != -1)) {alert('The guestmap does not support Opera 6 or earlier.');
} else if ((navigator.appName.indexOf('Netscape') != -1) && (browserVersion <= 4)) {
alert('The guestmap does not support Netscape 4 or earlier.');
} else {height = ph(); if (height > 675) height = 675;
width = pw(); if (width > 1300) width=1300; var parm = 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,height='
+ height + ',width=' + width; var myWin = window.open(pagename, 'mywin', parm); myWin.moveTo(0,0); myWin.focus();}}
