// Copyright (c) 2000 internet.com Corp. 
// http://www.webreference.com/js/
// License is granted if and only if this entire
// copyright notice is included. By Tomer Shiran.  (for launch)

function launch(newURL, newName, newFeatures, orgName) {
  var remote = window.open(newURL, newName, newFeatures);
  if (remote.opener == null)
    remote.opener = window;
  remote.opener.name = orgName;
  return remote;
}

function openNewWindow (newURL, newWidth, newHeight) {
  newWindow = launch(newURL, 
  		   "myRemote", 
		   "height=" + newHeight + ",width=" + newWidth + ",channelmode=0,dependent=0,directories=0,fullscreen=0,location=0,menubar=no,resizable=0,scrollbars=yes,status=no,toolbar=0", 
		   "myWindow");
}

function openNewMainWindow (newURL, newWidth, newHeight) {
  newWindow = launch(newURL, 
  		   "myRemote", 
		   "height=" + newHeight + ",width=" + newWidth + ",channelmode=0,dependent=0,directories=0,fullscreen=0,location=0,menubar=yes,resizable=yes,scrollbars=yes,status=yes,toolbar=yes", 
		   "myWindow");
}

// the following is written by gkirk

function openOneWindow(fileURL) {
	// to open the left window when there are no frames
	newWidth = window.outerWidth;
	newHeight = window.innerHeight + 60;
	newWindowL = launch(fileURL, "myRemoteL", 
	    "height=" + newHeight + ",width=" + newWidth +
		",channelmode=0,dependent=0,directories=0," +
		"fullscreen=0,location=0,menubar=no,resizable=1," +
		"scrollbars=yes,status=no,toolbar=yes", 
	    "myWindowL");
	newWindowL.moveBy(10,0);
	return;
}
 