home *** CD-ROM | disk | FTP | other *** search
- <?php
- ////////////////////////////////////////////////////////////////////////////////
- // <!--Copyright (c) 2005 Pure Networks Inc. All rights reserved.-->
- ////////////////////////////////////////////////////////////////////////////////
- //
- // Build: 3.0.6121.0 (Stable)
- // $Revision: #2 $
- //
- // This has to be after the body tag to create better formed HTML
- // default.inc requires vars set up by _cookie_util.php
- ?>
- <script type="text/javascript" language="JavaScript">
- function openWindow(sUrl)
- {
- sWindowName = "ulwin";
- sDateTime = new Date().getTime();
- sWindowName = sWindowName + sDateTime;
- sUA = "<?php echo($_SERVER['HTTP_USER_AGENT']); ?>";
- if (sUA.indexOf("MSIE") < 0)
- {
- sWindowName = window.open(sUrl, "upload_form" + sDateTime,"width=375,height=120,scrollbars=no,resizable=no,status=no,toolbar=no,menubar=no");
- sWindowName.focus();
- }
- else
- {
- sWindowName = window.open(sUrl, "upload_form" + sDateTime,"width=375,height=142,scrollbars=no,resizable=no,status=no,toolbar=no,menubar=no");
- sWindowName.focus();
- }
- }
-
- function openContentWindow(sUrl, bEscape)
- {
- re = /\+/g;
- if (bEscape)
- {
- contentWindow = window.open(sUrl.replace(re,"%2B"), "content_window","");
- }
- else
- {
- contentWindow = window.open(sUrl, "content_window","");
- }
- contentWindow.focus();
- }
-
- function openSizedWindow(sUrl, iWidth, iHeight)
- {
- sizedWindow = window.open(sUrl, "sizedWindow","width=" + iWidth + ",height=" + iHeight + ",scrollbars=yes,resizable=yes,status=no,toolbar=no,menubar=no");
- sizedWindow.focus();
- }
-
- function openHelpWindow(sUrl)
- {
- helpWindow = window.open(sUrl, "help_window","");
- helpWindow.focus();
- }
-
- function openGlossaryWindow(sUrl)
- {
- glossaryWindow = window.open(sUrl, "glossary_window","width=375,height=480,scrollbars=yes,resizable=yes,status=no,toolbar=no,menubar=no");
- glossaryWindow.focus();
- }
-
- function openSlideshow(sUrl)
- {
- slideshowWin = window.open(sUrl, "slideshow","width=<?php echo($iSlideshowWidth*1.1); ?>,height=<?php echo($iSlideshowHeight*1.15); ?>,scrollbars=no,resizable=no,status=no,toolbar=no,menubar=no");
- slideshowWin.focus();
- }
-
- function gotoPage(sUrl, iMinPage, iMaxPage, iCurrentPage, sQsVarConcat)
- {
- pageNum = prompt ( 'Go to page:', '' );
- if ((parseInt(pageNum) >= parseInt(iMinPage)) & (parseInt(pageNum) <= parseInt(iMaxPage)))
- {
- pageNum = pageNum;
- }
- else
- {
- switch (pageNum)
- {
- case 's':
- pageNum = iMinPage;
- break;
- case 'e':
- pageNum = iMaxPage;
- break;
- default:
- pageNum = iCurrentPage;
- }
- }
- location.href = sUrl + sQsVarConcat + 'page=' + pageNum;
- }
-
- function writeWATestCookie()
- {
- var today = new Date();
- var the_date = new Date(today.getYear() + 1900, today.getMonth(), today.getDate(), today.getHours(), today.getMinutes(), today.getSeconds()+30);
- var the_cookie_date = the_date.toGMTString();
- var the_cookie = "WA=enabled";
- var the_cookie = the_cookie + ";expires=" + the_cookie_date;
- var the_cookie = the_cookie + ";path=/";
- document.cookie=the_cookie;
- }
-
- function writeCookie()
- {
- var the_date = new Date("December 31, 2023");
- var the_cookie_date = the_date.toGMTString();
- var the_cookie = "users_res="+ getHeightWidth();
- var the_cookie = the_cookie + ";expires=" + the_cookie_date;
- var the_cookie = the_cookie + ";path=/";
- document.cookie=the_cookie;
- }
-
- function writePrepCookie()
- {
- var the_date = new Date("December 31, 2023");
- var the_cookie_date = the_date.toGMTString();
- var the_cookie = "users_res=640x480";
- var the_cookie = the_cookie + ";expires=" + the_cookie_date;
- var the_cookie = the_cookie + ";path=/";
- document.cookie=the_cookie;
- }
- <?php
- if ($btBrowserType == "macosxie")
- {
- ?>
- function getHeightWidth()
- {
- var myWidth = 0, myHeight = 0;
- myWidth = document.body.clientWidth;
- myHeight = document.body.clientHeight;
- return (myWidth+"x"+myHeight);
- }
- <?php
- }
- else
- {
- ?>
- function getHeightWidth()
- {
- var myWidth = 0, myHeight = 0;
- if( typeof( window.innerWidth ) == 'number' )
- {
- //Non-IE
- myWidth = window.innerWidth;
- myHeight = window.innerHeight;
- }
- else if( document.documentElement &&
- ( document.documentElement.clientWidth || document.documentElement.clientHeight ) )
- {
- //IE 6+ in 'standards compliant mode'
- myWidth = document.documentElement.clientWidth;
- myHeight = document.documentElement.clientHeight;
- }
- else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) )
- {
- //IE 4 compatible
- myWidth = document.body.clientWidth;
- myHeight = document.body.clientHeight;
- }
- return (myWidth+"x"+myHeight);
- }
- <?php
- }
- ?>
- </script>