function launch(newURL, newName, newFeatures) {
	var remote = open(newURL, newName, newFeatures);
	if (remote.opener == null)
	  remote.opener = window;
	return remote;
}

function popup(dest,w,h) {
	theRemote = launch("",dest,"height="+h+",width="+w+",alwaysLowered=0,alwaysRaised=0,channelmode=0,dependent=0,directories=0,fullscreen=0,hotkeys=1,location=0,menubar=0,resizable=0,scrollbars=0,status=0,titlebar=0,toolbar=0,z-lock=0");
	theRemote.focus();
}

function popupResize(dest,w,h) {
	theRemote = launch("",dest,"height="+h+",width="+w+",alwaysLowered=0,alwaysRaised=0,channelmode=0,dependent=0,directories=0,fullscreen=0,hotkeys=1,location=0,menubar=0,resizable=1,scrollbars=1,status=1,titlebar=0,toolbar=0,z-lock=0");
	theRemote.focus();
}

function popupFull(dest,w,h) {
	theRemote = launch("",dest,"height="+h+",width="+w+",alwaysLowered=0,alwaysRaised=0,channelmode=0,dependent=0,directories=0,fullscreen=0,hotkeys=1,location=1,menubar=1,resizable=1,scrollbars=1,status=0,titlebar=0,toolbar=0,z-lock=0");
	theRemote.focus();
}
