 <!--

// to use this file simply add the following line in the <head> tag of your html file
// make sure the path to this file is the same that is in the following line:

// <script language="JavaScript" src="/_scripts/scripts.js" type="text/javascript"></script>

////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////
/*

How to use the function:

   Calling the function:

      openWindow(path,window_name,width,height,resizeable,directories,loc,menubar,status,titlebar,toolbar,scrollbar);

   Parameters:

      path:          replace this with a url in single quotes

      window_name:   replace this with a name in single quotes to assign to the pop_up_window
                     using the same name in different links allows them to share the same window

      width:         replace with a number for the width of the window
      height:        replace with a number for the height of the window

      Replace the following parameters with either the word true or with false (not in any quotes)

         resizeable:    allow the user to resize the window
         directories:   shows the directory bar    (in most cases this is always false)
         loc:           shows the location bar
         menubar:       shows the menu bar
         status:        shows the status bar       (I haven't figured this one out yet, for now leave it false)
         titlebar:      shows the title bar
         toolbar:       shows the toolbar
         scrollbar:     enables/disables the scrollbar

   Sample Function Call in HTML:

      <a href="#" onClick=" openWindow('/blah/blah/blah.shtml','blah',250,850,true,false,false,false,true,true,false,true); "><img src="PATH_TO_SOME_IMAGE"></a>
*/

   function openWindow(path,window_name,width,height,resizeable,directories,loc,menubar,status,titlebar,toolbar,scrollbar) {

      var myBars = '';

      ( toolbar )     ? myBars += 'toolbar=yes,'           : myBars += 'toolbar=no,';
      ( loc )         ? myBars += 'location=yes,'          : myBars += 'location=no,';
      ( status )      ? myBars += 'status=yes,'            : myBars += 'status=no,';
      ( menubar )     ? myBars += 'menubar=yes,'           : myBars += 'menubar=no,';
      ( scrollbar )   ? myBars += 'scrollbars=yes,'        : myBars += 'scrollbars=no,';
      ( resizeable )  ? myBars += 'resizable=yes,'         : myBars += 'resizable=no,';
      ( directories ) ? myBars += 'directories=yes,'       : myBars += 'directories=no,';
      ( titlebar )    ? myBars += 'titlebar=yes,'          : myBars += 'titlebar=no,';
      ( width )       ? myBars += 'width=' + width + ','   : myBars += 'width=' + 800 + ',';
      ( height )      ? myBars += 'height=' + height + ',' : myBars += 'height=' + 500 + ',';

      myOptions = "top=50,left=50";

      window.open(path,window_name,myBars + ',' + myOptions);

   } // end function openWindow

////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////

//-->