/*
Author:       Grant Harmeyer
Date Created: 9/5/2003
Language:     Sun Microsystems JavaScript v1.2 
Platform:     Web - Global Client-Side JavaScript File
File Name:    GlobalFunctions.js
Abstract:     This file holds the functions that construct popup windows
              on all of the http://www.internetapollo.com website.
*/


function PopProduct ( winWidth, winHeight, URLToOpen ) 
{

     // Local Variables
     var winl     = (screen.width - winWidth) / 2;
     var wint     = (screen.height - winHeight) / 2;
     var winProps = "height=" + winHeight + ",width=" + winWidth + ",top=" + wint + ",left=" + winl + ",status=no,resizable=no,toolbars=yes,directories=no,scrollbars=yes";
     var product;

     // Begin

     product       = window.open(URLToOpen, "ProductView", winProps, false);

     product.focus();

}// end function PopProduct


function PopWin ( winWidth, winHeight, URLToOpen ) 
{

     // Local Variables
     var winl     = (screen.width - winWidth) / 2;
     var wint     = (screen.height - winHeight) / 2;
     var winProps = "height=" + winHeight + ",width=" + winWidth + ",top=" + wint + ",left=" + winl + ",status=no,resizable=no,toolbars=yes,directories=no,scrollbars=yes";
     var sm_Win;
     
     // Begin

     sm_Win       = window.open(URLToOpen, "SmallWindow", winProps, false);

     sm_Win.focus();

}// end function PopWin
