function openAWindow( pageToLoad, winName, width, height, center) { 
/* Opens a new window on the users desktop. 
	Arguments: 
	  pageToLoad - The URL of a page to load in the browser window. 
                   This can be a relative URL or fully qualified. 
     winName -    Name of the new window. 
     width -      The horizontal size of the new window. 
     height -     The vertical size of the new window. 
     center -     toggle centering on 4.0 browsers. 
                    1=centered window 0=no centering 

     Values in the "args" section below can all be toggled in the 
     same fashion as the center toggle.  Just modify the appropriate 
     value in the args section to be either 0 or 1. 

*/ 
                         
    xposition=0; yposition=0; 
    if ((parseInt(navigator.appVersion) >= 4 ) && (center)){ 
      xposition = (screen.width - width) / 2; 
      yposition = (screen.height - height) / 2; 
      } 
    args = "width=" + width + "," 
    + "height=" + height + "," 
    + "location=0," 
    + "menubar=0," 
    + "resizable=0," 
    + "scrollbars=0," 
    + "status=0," 
    + "titlebar=0," 
    + "toolbar=0," 
    + "hotkeys=0," 
    + "screenx=" + xposition + ","  //NN Only 
    + "screeny=" + yposition + ","  //NN Only 
    + "left=" + xposition + ","     //IE Only 
    + "top=" + yposition;           //IE Only 

    window.open( pageToLoad,winName,args ); 
} 
