function launch(newURL, newName, newFeatures, orgName) {
	var remote = open(newURL, newName, newFeatures);
		if (remote.opener == null)
			remote.opener = window;
			remote.opener.name = orgName;
		return remote;
}

function launchRemote(sURL, sTitle, height, width, sBAR) {
	var w = width;
	var h = height;
	var y = (screen.height-height)/2;
	var x = (screen.width-width)/2;

		switch(sBAR) {
		case "TRUE":
			myRemote = launch(sURL, sTitle, "left="+x+",top="+y+",height="+h+",width="+w+",channelmode=0,dependent=0,directories=0,fullscreen=0,location=0,menubar=0,resizable=no,scrollbars=1,status=0,toolbar=0", "myWindow");
			break;
		case "Yahoo":
			myRemote = launch(sURL, sTitle, "left="+x+",top="+y+",height="+h+",width="+w+",channelmode=0,dependent=0,directories=0,fullscreen=0,location=0,menubar=0,resizable=yes,scrollbars=1,status=0,toolbar=0", "myWindow");
			break;
		default :
		    myRemote = launch(sURL, sTitle, "left="+x+",top="+y+",height="+h+",width="+w+",channelmode=0,dependent=0,directories=0,fullscreen=0,location=0,menubar=0,resizable=no,scrollbars=0,status=0,toolbar=0", "myWindow");
		}
		myRemote.focus();
}