// Copyright (c) 1996-1997 Athenia Associates.
// http://www.webreference.com/js/
// License is granted if and only if this entire
// copyright notice is included. By Tomer Shiran.
	
function launch(newURL, newName, newFeatures, orgName) {
	var remote = open(newURL, newName, newFeatures);
	if (remote.opener == null)
		remote.opener = window;
	remote.opener.Name = orgName;
	remote.focus();
	return remote;
}
	
function launchHelpRemote(helpID) {
	myHelpRemote = launch("index.cfm?AF=Help&AD=" + helpID, "HelpRemote", "height=200,width=400,fullscreen=0,location=0,menubar=0,resizable=1,scrollbars=1,status=0,toolbar=0", "HelpWindow");
}

function launchImgListRemote() {
	myImgListRemote = launch("index.cfm?AF=30&AA=List&APU=1", "ImgListRemote", "height=600,width=400,fullscreen=0,location=0,menubar=0,resizable=1,scrollbars=1,status=0,toolbar=0", "ImageWindow");
}

function launchImgViewRemote(imgURL, rW, rH) {
	if (rW == 0) {rW = 480} else {rW += 30};
	if (rH == 0) {rH = 640} else {rH += 20};
	myImgViewRemote = launch(imgURL + "?" + rH + "&" + rW, "ImgViewRemote", "height=" + rH +",width=" + rW + ",fullscreen=0,location=0,menubar=0,resizable=1,scrollbars=1,status=0,toolbar=0", "ImageViewer");
}

function launchImgAddRemote() {
	myImgViewRemote = launch("index.cfm?AF=30&AA=Add&APU=1", "ImgAddRemote", "height=300,width=600,fullscreen=0,location=0,menubar=0,resizable=1,scrollbars=1,status=1,toolbar=0", "ImageAdd");
}

function ReplaceWith (NewURL) {
	location.replace(NewURL) 
}

