/*********************************************************************
'***    Program: PopupViewWindow( strURL, strWindow, nWidth, nHeight )
'***    Type: Function
'***
'***    Function: Pops up a new window with displaying the URL passed
'***
'***    Parameters: 
'***		strURL  - the URL to display within the new window
'***
'***
'***
'***    Returns: String
'***    Remarks: none
'***
'***    Created by: Jeffl
'***    Changed by: Jeffl
'***    Last change: 08/10/01
'*********************************************************************/
function PopupViewWindow( strURL, strWindow, nWidth, nHeight, strToolbar, strStatus, strLocation, strDirectories, strMenubar) {
   //Default Page
   var strWindowVal = "New";
   //Default Width
   var nWidthVal = new Number(520);
   //Default Height
   var nHeightVal = new Number(600);
   //Default Toolbar
   var strToolbarVal = "no";
   //Default Statusbar
   var strStatusVal = "no";
   //Default Location
   var strLocationVal = "no";
   //Default Directories
   var strDirectoriesVal = "no";
   //Default Menubar
   var strMenubarVal = "no";

   if (strWindow){
     strWindowVal = strWindow
   }
   if (nWidth){
     nWidthVal = nWidth
   }
   if (nHeight){
     nHeightVal = nHeight
   }
   if (strToolbar){
     strToolbarVal = "yes"
   }
   if (strStatus){
     strStatusVal = "yes"
   }
   if (strLocation){
     strLocationVal = "yes"
   }
   if (strDirectories){
     strDirectoriesVal = "yes"
   }
   if (strMenubar){
     strMenubarVal = "yes"
   }


   aPopupViewWindow = window.open( strURL,strWindowVal,"toolbar=" + strToolbarVal + ",location=" + strLocationVal + ",directories=" + strDirectoriesVal + ",status=" + strStatusVal + ",scrollbars=yes,resizable=yes,width="+nWidthVal.toString()+",height="+nHeightVal.toString()+ ",menubar=" + strMenubarVal);
   aPopupViewWindow.focus();
}
