function popWindow(url, windowName, windowHeight, windowWidth, windowXpos, windowYpos, scrollBars) { //alert('In popwindow' + '\n' + url + '\n' + windowName + '\n' + windowHeight + '\n' + windowWidth + '\n'); browser_name = navigator.appName; browser_version = parseFloat(navigator.appVersion); if (scrollBars == ""){ scrollBars = 'no'; } //ignore windownane since it's not used for the page title windowName = 'newWin'; //Set features string based on browser type if (browser_name == "Netscape" && browser_version >= 4){ features = 'resizable=yes,scrollbars=' + scrollBars + ',width=' + windowWidth + ',height=' + windowHeight + ',status=no,toobar=no,menubar=no,screenX=' + windowXpos features += ' , screenY='+ windowYpos } else if (browser_name == "Netscape" && browser_version <= 4){ features = 'resizable=yes,scrollbars=' + scrollBars + ',width=' + windowWidth + ',height=' + windowHeight + ',status=no,toobar=no,menubar=no,left=' + windowXpos features += ',top=' + windowYpos } else { features = 'resizable=yes,scrollbars=' + scrollBars + ',width=' + windowWidth + ',height=' + windowHeight + ',status=no,toobar=no,menubar=no,left=' + windowXpos features += ',top=' + windowYpos } //alert(features) //Mac if (navigator.appVersion.indexOf("Mac")!=-1) { //IE if (browser_name == "Microsoft Internet Explorer") { newwin = window.open(url,windowName,features); } //Netscape 3.0 if (browser_name == "Netscape" && browser_version < 4.01) { newwin = window.open(url,windowName,features); } //Netscape 4.0+ else { newwin = window.open(url,windowName,features); newwin.focus(); } } //PCs else if (browser_name == "Microsoft Internet Explorer" && browser_version <= 4) { //IE 3,4 for somereason 6 is falling into here as well newwin = window.open(url,windowName,features); newwin.focus(); } else if (browser_name == "Netscape" && browser_version < 4.01) { //Netscape 3 newwin = window.open(url,windowName,features); newwin.focus(); newwin.refer = self; } else { //Netscape 4.0+, IE 5 newwin = window.open(url,windowName,features); newwin.opener=window; newwin.focus(); } return false;//false; }
American Scientist Online. The Magazine of Sigma Xi, the Scientific Research Society
For more information on Origin 7.5, click here!
Home Current Issue Archives Bookshelf Online Features Marketplace Subscribe
Visitor Login
Username
Password
We're Sorry
Due to routine maintenance, American Scientist Online will be unavailable between 9:00 a.m. and 2:00 p.m. EST on Sunday, February 26, 2006.
We regret any inconvenience.
ADVERTISEMENTS
Purchase Cosmic Legacy today!
Bio-IT World Conference & Expo, May 17-19
For more information on Origin 7.5, click here!
About American Scientist Site Map Text Archive Advertise Policies Sigma Xi Contact Us
© Sigma Xi, The Scientific Research Society