// set name so that the Explorer can interact with the portal


/* Popup GNE */
function pop(URL) {
  window.open(URL, "GNE", "resizable,scrollbars,status=1,menubar=0,width=720,height=569");
}

function popWithPlace(URL) {
  var place = escape(Trim(document.findAPlaceForm.place.value));

  if (place != "") {
    pop(URL + "&place=" + place);
  } else {
    alert("You must enter a place to find!");
	document.findAPlaceForm.place.value = ""; // get rid of any white space
	document.findAPlaceForm.place.focus();
  }
}

function popGeneric(URL, name, width, height, toolbar) {
	//aWindow = window.open(URL,name,"toolbar=yes,width=300,height=480,scrollbars,status,resizable=yes");
	var screenX;
	var screenY;
	var x, y;
	
	//   center window on screen
	var x = Math.round((screen.availWidth/2)-(width/2));
	var y = Math.round((screen.availHeight/2)-(height/2));
	
	if (is_nav) {
		screenX = ",screenX="+x;
		screenY = ",screenY="+y;
	} else {
		screenX = ",left="+x;
		screenY = ",top="+y;
	}
	
	aWindow = window.open(URL,name,"toolbar="+toolbar+",width="+width+",height="+height+screenX+screenY+",scrollbars");
	
	aWindow.focus();
}


