function PopOut(sURL,sTitle,iHeight,iWidth,ynScroll,ynResize) {

	var objWin;
  objWin = window.open(sURL, sTitle, "height="+iHeight+",width="+iWidth+",scrollbars="+ynScroll+",resizable="+ynResize+"");
  if (parseInt(navigator.appVersion) >=4) objWin.window.focus();
	return false;
}

function setToolImage(tool, mode, prefix) {
	//Used by Graphical Button Clients.
	//prefix is an optional argument to the image file name.
	if (prefix == null) { prefix = ""; }
	var imageFile = '../Catawba/images/' + prefix + tool + mode + '.gif';	

	// Dull all images first.
	document.ZOOMIN.src = '../Catawba/images/'+ prefix +'zoomin1.gif';
	document.ZOOMOUT.src = '../Catawba/images/'+ prefix +'zoomout1.gif';
	document.PAN.src = '../Catawba/images/'+ prefix +'pan1.gif';
	document.MEASURE.src = '../Catawba/images/'+ prefix +'measure1.gif';
	document.IDENTIFY.src = '../Catawba/images/'+ prefix +'identify1.gif';
	document.SELECT.src = '../Catawba/images/'+ prefix +'select1.gif';
	document.LATLONG.src = '../Catawba/images/'+ prefix +'latlong1.gif';
	//Then brighten the passed tool.
	if (tool == "ZOOMIN") { document.ZOOMIN.src = imageFile; }
	if (tool == "ZOOMOUT") { document.ZOOMOUT.src = imageFile; }
	if (tool == "PAN") { document.PAN.src = imageFile; }
	if (tool == "MEASURE") { document.MEASURE.src = imageFile; }
	if (tool == "IDENTIFY") { document.IDENTIFY.src = imageFile; }
	if (tool == "SELECT") { document.SELECT.src = imageFile; }
	if (tool == "LATLONG") { document.LATLONG.src = imageFile; }
	return;
}

