function openWindow(URL, width, height) {

	openWindowCustom(URL, width, height, true, true, false, false, true, false, false);
}

function openWindowCustom(URL, width, height, toolbar, resizable, location, directories, scrollbars, menubars, status) {
  var win;

  if (is_nav4up || is_ie4up) {
    var screenWidth = screen.width;
    var screenHeight = screen.height;
  } else {
    var screenWidth = 640;
    var screenHeight = 480;
  }
  var left = screenWidth / 2 - width / 2;
  var top = screenHeight / 2 - height / 2;
  
  var toolbarValue = "0";
  if (toolbar) {
	  toolbarValue="1";
  }
  
  var resizableValue = "0";
  if (resizable) {
	  resizableValue="1";
  }
  
  var locationValue = "0";
  if (location) {
	  locationValue="1";
  }
  
  var directoriesValue = "0";
  if (directories) {
	  directoriesValue="1";
  }
  
  var scrollbarsValue = "0";
  if (scrollbars) {
	  scrollbarsValue="1";
  }
  
  var menubarsValue = "0";
  if (menubars) {
	  menubarsValue="1";
  }
  
  var statusValue = "0";
  if (status) {
	  statusValue="1";
  }

  win = window.open (URL, "openWindow", 'width=' + width +  ',height=' + height + ',toolbar=' + toolbarValue + ',location=' + locationValue + ',left=' + left + ',top=' + top + ',directories=' + directoriesValue + ',resizable=' + resizableValue + ',scrollbars=' + scrollbarsValue + ',menubar=' + menubarsValue + ',status=' + statusValue );
}
