
/**
  * Open a new maximized window
  * @param window_name the name of the window
  * @param url (optional) the url to open.  Default is "/blank.html"
  * @return a handle to the window as a Window object
  * @Author: Neeraj --PL V0.5
  */

function openwin_maximized (window_name, url) {

   var max_win = null;
   var wide = self.screen.availWidth;
   var high = self.screen.availHeight;

   if (arguments.length == 1) {
      url = "/blank.html"
   }
   
   max_win = window.open(url, window_name, "directory=0,height=high,width=wide,resizable=1, statusbar=0, hotkeys=0,menubar=0,scrollbars=1,status=0,toolbar=0");
   max_win.resizeTo(wide,high);
   max_win.moveTo(0,0);		
   return max_win;
}


/**
  * Open a new dialog window
  * @param window_name the name of the window
  * @param url (optional) the url to open.  Default is "/blank.html"
  * @return a handle to the window as a Window object
  */
function openwin_dialog (window_name, url) {

   var dialog_win = null;

   if (arguments.length == 1) {
      url = "/blank.html"
   }

   dialog_win = window.open(url, window_name, "directory=0,height=175,width=300,resizable=1, statusbar=0, hotkeys=0,menubar=0,scrollbars=0,status=0,toolbar=0");
	
   return dialog_win;
}

/**
  * Open a new small window
  * @param window_name the name of the window
  * @param url (optional) the url to open.  Default is "/blank.html"
  * @return a handle to the window as a Window object
  */
function openwin_small (window_name, url) {

   var small_win = null;

   if (arguments.length == 1) {
      url = "/blank.html"
   }
   
   small_win = window.open(url, window_name, "directory=0,height=350,width=600,resizable=1, statusbar=0, hotkeys=0,menubar=0,scrollbars=1,status=0,toolbar=0");
	
   return small_win;
}

/**
  * Open a new medium window
  * @param window_name the name of the window
  * @param url (optional) the url to open.  Default is "/blank.html"
  * @return a handle to the window as a Window object
  */
function openwin_medium (window_name, url) {

   var small_win = null;

   if (arguments.length == 1) {
      url = "/blank.html"
   }

   small_win = window.open(url, window_name, "directory=0,height=450,width=600,resizable=1, statusbar=0, hotkeys=0,menubar=0,scrollbars=1,status=0,toolbar=0");

   return small_win;
}


function openwin_applet(url) {

   var appletl_win = null;

   applet_win = window.open(url, 'theApplet', "directory=0,height=400,width=800,resizable=1, statusbar=0, hotkeys=0,menubar=0,scrollbars=0,status=0,toolbar=0");
	
   return applet_win;

}

function openwin_pingapplet(url) {

   var appletl_win = null;

   applet_win = window.open(url, 'Ping', "directory=0,height=400,width=800,resizable=1, statusbar=0, hotkeys=0,menubar=0,scrollbars=0,status=0,toolbar=0");
	
   return applet_win;

}


function openwin_help(url) {

   var help_win = null;

   help_win = window.open(url, 'theHelp', "directory=0,height=400,width=600,resizable=1, statusbar=0, hotkeys=0,menubar=0,scrollbars=1,status=0,toolbar=0");
	
   help_win.focus();
   return help_win;

}

function openwin_wizard(window_name) {

   var wizard_win = null;

   wizard_win = window.open("/blank.html", window_name, "directory=0,height=600,width=500,resizable=1, statusbar=0, hotkeys=0,menubar=0,scrollbars=1,status=0,toolbar=0");
	
   return wizard_win;

}

function openwin_security (window_name) {

   var small_win = null;

   small_win = window.open("/blank.html", window_name, "directory=0,height=600,width=500,resizable=1, statusbar=0, hotkeys=0,menubar=0,scrollbars=1,status=0,toolbar=0");
	
   return small_win;
}

function openwin_linker(url) {

   var linker_win = null;

   linker_win = window.open(url, 'theLinker', "directory=0,height=420,width=500,resizable=1, statusbar=0, hotkeys=0,menubar=0,scrollbars=1,status=0,toolbar=0");
	
   return linker_win;

}

function open_popup(url) {

   var linker_win = null;

   linker_win = window.open(url, 'thePopup', "directory=0,height=250,width=300,resizable=0, statusbar=0, hotkeys=0,menubar=0,scrollbars=1,status=0,toolbar=0");

   return linker_win;

}




window_functions_loaded = true;
