function popup(url,name,height,width) {



/*



alwaysLowered

 (Navigator 4.0) If yes, creates a new window that floats below other windows, whether it is active or not. This is a secure feature and must be set in signed scripts.



alwaysRaised

 (Navigator 4.0) If yes, creates a new window that floats on top of other windows, whether it is active or not. This is a secure feature and must be set in signed scripts.



dependent

 (Navigator 4.0) If yes, creates a new window as a child of the current window. A dependent window closes when its parent window closes. On Windows platforms, a dependent window does not show on the task bar.



directories

 If yes, creates the standard browser directory buttons, such as What's New and What's Cool.



height

 (Navigator 2.0 and 3.0) Specifies the height of the window in pixels.



hotkeys

 (Navigator 4.0) If no (or 0), disables most hotkeys in a new window that has no menu bar. The security and quit hotkeys remain enabled.



innerHeight

 (Navigator 4.0) Specifies the height, in pixels, of the window's content area. To create a window smaller than 100 x 100 pixels, set this feature in a signed script. This feature replaces height, which remains for backwards compatibility.



innerWidth

 (Navigator 4.0) Specifies the width, in pixels, of the window's content area. To create a window smaller than 100 x 100 pixels, set this feature in a signed script. This feature replaces width, which remains for backwards compatibility.



location

 If yes, creates a Location entry field.



menubar

 If yes, creates the menu at the top of the window.



outerHeight

 (Navigator 4.0) Specifies the vertical dimension, in pixels, of the outside boundary of the window. To create a window smaller than 100 x 100 pixels, set this feature in a signed script.



resizable

 If yes, allows a user to resize the window.



screenX

 (Navigator 4.0) Specifies the distance the new window is placed from the left side of the screen. To place a window offscreen, set this feature in a signed scripts.



screenY

 (Navigator 4.0) Specifies the distance the new window is placed from the top of the screen. To place a window offscreen, set this feature in a signed scripts.



scrollbars

 If yes, creates horizontal and vertical scrollbars when the Document grows larger than the window dimensions.



status

 If yes, creates the status bar at the bottom of the window.



titlebar

 (Navigator 4.0) If yes, creates a window with a title bar. To set the titlebar to no, set this feature in a signed script.



toolbar

 If yes, creates the standard browser toolbar, with buttons such as Back and Forward.



width

 (Navigator 2.0 and 3.0) Specifies the width of the window in pixels.



z-lock

 (Navigator 4.0) If yes, creates a new window that does not rise above other windows when activated. This is a secure feature and must be set in signed scripts.

*/





  //window.name = "main";

  //window.open(url,"","scrollbars=yes,status=yes,width="+ width +",height="+ height);

  //alert("url = "+url);

  a = open(url,name,"scrollbars=yes,status=yes,resizable=no,width="+ width +",height="+ height);
  a.focus();





}



function update_form_element(element_value,element_index) {

  window.opener.document.forms[0].elements[element_index].value=element_value;

  window.close();

}



function go_and_close(url) {

  window.location=url;

  window.opener.location.reload();

  window.close();

}



function update_parent(url) {

  window.opener.location=url;

  window.close();

}



