function OpenSmallerWindow(CurrentWindow, NewURL)
{
	// These variables contain the dimensions of the window that will be opened.
	// Calculate the dimensions of the window we're opening (5% smaller than the original).
	var iNX = CurrentWindow.document.body.clientWidth * .95;
	var iNY = CurrentWindow.document.body.clientHeight * .95;
	
	// Contains the features of the new window.
	var sFeat = 'height=' + iNY + ', width=' + iNX + ', location=1, menubar=1, resizable=1, scrollbars=1, status=1, titlebar=1, toolbar=1';
	
	window.open(NewURL, '_blank', sFeat);
	
	return(false);
}

function SubmitSearch(CurrentWindow) {
	var Query;
	Query = CurrentWindow.document.getElementById('txtSearch').value;
	window.location = 'http://www.regionaldistrict.com/search.aspx?q=' + Query;
}

function ClearText(tb)
{
	tb.value = "";
}

function goSelect(daform) 
{
	with(daform) 
	{
		var where = options[selectedIndex].value;
		var s = where.indexOf("target=_new");
		
		if (s > -1)
		{
			s = where.lastIndexOf(" ");
			window.open(where.substr(0,s));
		}
		else
		{
			top.window.location=where;
		}
	}
}

function PanelClick()
{
    // The user is using the panel bar, so expand the content table to prevent pages with little content from
    // having the content shifted due to the browser adjusting cell sizes. Yes, this is a "work around".
    //*** No longer neccessary because the client reduced the number of panel items ***
    // document.getElementById("tContent").style.height = "880px";
}
