// schedulerPopup.js 

 //---------------------------------
 function SchedulerPopup() {

   // scheculer URL

   url = window.rootoffset + "scheduler/"

   // open a popup for this Url

 	//alert(navigator.appName + " '" + navigator.appVersion.substring(0,1) + "'");
 	if (!(navigator.appName == "Netscape" && navigator.appVersion.substring(0,1) >= "4")) {
  	outerWidth  = 0;  screenX = 0;
	  outerHeight = 0;  screenY = 0;
  } 

   xsize = outerWidth*.8;  // a percentage of the current screen width
   if (xsize < 640) xsize=640; //min
   if (xsize > 780) xsize=780; //max

   ysize = outerHeight*.95;  // a percentage of the current screen height
   if (ysize < 400) ysize=400; //min
   if (ysize > 550) ysize=550; //max

   xpos  = screenX - xsize*.5;
   ypos  = screenY + outerHeight/2 - ysize/2;

   menuInPopup     = 'yes'; // yes for production scheduler
   locationInPopup = 'yes'; // yes for production scheduler

   scheduler_window_ref = window.open(url, "scheduler_popup","toolbar=yes,width=" + xsize + ",height=" + ysize +
                                 ",screenX=" + xpos + ",screenY=" + ypos +
                                 ",directories=no,status=yes,scrollbars=yes,resizable=yes" +
                                 ",menubar=" + menuInPopup + ",location=" + locationInPopup);
	    scheduler_window_ref.focus();
	  }

 //---------------------------------
 function Popup(url) {

   // open a popup for this Url

	//alert(navigator.appName + " '" + navigator.appVersion.substring(0,1) + "'");
  if (!(navigator.appName == "Netscape" && navigator.appVersion.substring(0,1) >= "4")) {
  	outerWidth  = 0;  screenX = 0;
   outerHeight = 0;  screenY = 0;
   } 

	 /*
   xsize = outerWidth*.8;  // a percentage of the current screen width
   if (xsize < 640) xsize=640; //min
   if (xsize > 780) xsize=780; //max

   ysize = outerHeight*.95;  // a percentage of the current screen height
   if (ysize < 400) ysize=400; //min
   if (ysize > 550) ysize=550; //max
	 */
	 
	 xsize = 900;
	 ysize = 700;
   xpos  = screenX - xsize*.5;
   ypos  = screenY + outerHeight/2 - ysize/2;

   menuInPopup     = 'yes'; // yes for production scheduler
   locationInPopup = 'yes'; // yes for production scheduler

   scheduler_window_ref = window.open(url, "scheduler_popup","toolbar=yes,width=" + xsize + ",height=" + ysize +
                                 ",screenX=" + xpos + ",screenY=" + ypos +
                                 ",directories=no,status=yes,scrollbars=yes,resizable=yes" +
                                 ",menubar=" + menuInPopup + ",location=" + locationInPopup);
	    scheduler_window_ref.focus();
	  }

