//Use any function in this file, or add your own!
//winfeatures is a string variable that store's the settings of the new window
//winfeatures is the third argument of the window.open() method
//Change how the popup window opens by editing the value of winfeatures
//The statement newWindow.moveTo(0,0) is commented out. 
//For local files only, you can move the window to the upper-left corner
//if you delete: //

function popupWindow(URL)  {
//argument is file location
   winfeatures="width=200,height=200,scrollbars=yes,resizable=yes,toolbar=yes,location=yes,menubar=no,status=no,directories=no"
   newWindow = window.open(URL,"",winfeatures);
   //newWindow.moveTo(0,0); 
   } 

function popupWinFlexSize(URL,High,Wide)  {
//arguments are file location, poup height, popup width
   winfeatures="width=" + Wide + ",height=" + High +",scrollbars=yes,resizable=yes,toolbar=yes,location=yes,menubar=no,status=no,directories=no"
   newWindow = window.open(URL,"",winfeatures);
   //newWindow.moveTo(0,0); 
   } 

function popupWinFlexSizeXY(URL,High,Wide,X,Y)  {
//arguments are file location, poup height, popup width, X and Y coordinates of window position
   winfeatures="width=" + Wide + ",height=" + High +",scrollbars=yes,resizable=yes,toolbar=yes,location=yes,menubar=no,status=no,directories=no"
   newWindow = window.open(URL,"",winfeatures);
   //newWindow.moveTo(0,0); 
   } 

function popUnder(URL) {
//popunder window opens in the background in upper-left corner
//argument is file location
//edit window features and/or on-screen coordinates
   winfeatures="width=800,height=510,scrollbars=yes,resizable=yes,toolbar=yes,location=yes,menubar=yes,status=yes,directories=no"
   win2=window.open(URL,"",winfeatures)
   win2.blur()
   window.focus()
   }

function popUnderMax(URL) {
//popunder window opens maximized in the background
//argument is file location
   winfeatures="scrollbars=yes,resizable=yes,toolbar=yes,location=yes,menubar=yes,status=yes,directories=no"
   win2=window.open(URL,"",winfeatures)
   win2.resizeTo(screen.availWidth,screen.availHeight)
   win2.blur()  
   window.focus()
   }
   
   
function mypopup(URL)  {
//argument is file location
   winfeatures="width=800,height=600,scrollbars=yes,resizable=no,toolbar=yes,location=yes,menubar=no,status=no,directories=no"
   newWindow = window.open(URL,"",winfeatures);
   //newWindow.moveTo(0,0); 
   } 
