//
// New window attributes
//
// url - the variable for the url of the page in the new window
// that is passed by placing it single-quoted in either the link or form
// window_name - the name of the new window being opened
// width - width of the new window in pixels
// height - height of the new window in pixels
// top - the new widow top will appear xx number of pixels from the top of the screen
// left - the new widow left margin will appear xx number of pixels from the left of the screen
//
// The following attributes will suppress the respective window elements
// when the value is set to zero or if omitted. When listed or equal to one
// the window attribute will appear
// toolbar,menubar,resizable,dependent,status
//

function open_new_window(url,w,h)

{
  var attributes;

  attributes = "toolbar=0,menubar=0,scrollbars=1,resizable=1,location=1,dependent=0,status=0,left=25,top=25,width=" + w;
  attributes += ",height=" + h;
  new_window = window.open(url,url,attributes);
}

function open_new_window_with_toolbar(url,w,h)

{
  var attributes;

  attributes = "toolbar=1,menubar=0,scrollbars=1,resizable=1,location=1,dependent=0,status=0,left=25,top=25,width=" + w;
  attributes += ",height=" + h;
  new_window = window.open(url,url,attributes);
}

function open_new_window_with_all(url,w,h)

{
  var attributes;
  attributes = "toolbar=1,menubar=1,scrollbars=1,resizable=1,location=1,dependent=0,status=0,left=25,top=25,width=" + w;
  attributes += ",height=" + h;
  new_window = window.open(url,url,attributes);
}
