<!--
var remote
function launch(newURL, newName, newFeatures, orgName) {
	
	if(String(typeof(remote))!="undefined" && String(typeof(remote))=="object")
  	{
		if(!remote.closed)
		{
			remote.focus()
		}
		else
		{
			remote = open(newURL, newName, newFeatures);
			if (remote.opener == null)
				remote.opener = window;
			
			//remote.opener.name = orgName;
		}
		
	}
	else
	{

		remote = open(newURL, newName, newFeatures);
		if (remote.opener == null)
			remote.opener = window;
		remote.opener.name = orgName;
	}
	return remote;
}

function launchRemote(ParamURL,Name,Height,Width,Cust) {

	if (Cust)
 	{
		myRemote = launch(ParamURL, Name, "height="+Height+",width="+Width+",screenX=100,left=100,screenY=150,top=150,channelmode=0,dependent=0,directories=0,fullscreen=0,location=0,menubar=1,resizable=1,scrollbars=0,status=0,toolbar=1", "myWindow");
	}	
	else
 	{
  		myRemote = launch(ParamURL, Name, "height="+Height+",width="+Width+",screenX=100,left=100,screenY=150,top=150,channelmode=0,dependent=0,directories=0,fullscreen=0,location=0,menubar=0,resizable=0,scrollbars=0,status=0,toolbar=0", "myWindow");
	}
}

// -->
