// internal@

 function showHide(v1,v2) {
	$("#"+v1).show(); 
	$("#"+v2).hide();
 }
 
  function display(v1) {
	$("#"+v1).show(); 
 }
   function hide(v1) {
	$("#"+v1).hide(); 
 }
 
 function report(type) {
	 var value = $("#"+type).val();
	 
	 if (value=='custom_interval') {
		display('custom_interval');
	 } else {
		 hide('custom_interval'); 
	 }
 }
 
 
 
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(url,width,height) {
  myRemote = launch(url,"myRemote","height="+width+",width="+height+",alwaysLowered=0,alwaysRaised=0,channelmode=0,dependent=0,directories=0,fullscreen=0,hotkeys=1,location=0,menubar=0,resizable=1,scrollbars=0,status=0,titlebar=1,toolbar=0,z-lock=0","myWindow");                
}




