function DisplaySearchBox()
{
	// Do NOT pass through the "__VIEWSTATE" variable...(terminate the initial form)
	document.write('</form>');	// Terminate the .NET form

	// Create the search fragment form...
	document.write('<form method="post" action="http://www.ryedale.gov.uk/scripts/semaphoreserver.exe">');
	document.write('<label for="simplesearch">Search</label><input type="text" name="QUERY00" id="simplesearch" size="10" value="Enter search" style="height:15px;width:110px;" onKeyDown="return doSearch(this.form);"/>');
	document.write('<input type="hidden" name="SAVEDB" value="ryedale" />');
	document.write('<input type="hidden" name="ORGANISE_CODED" value=":f9" />');
	document.write('<input type="hidden" name="STYPE" value="simple" />');
	document.write('<input type="image" class="Button" id="btnSearch" onClick="this.form.submit();" title="Search the Ryedale website" src="/site_images/searchgobutton.gif" alt="Click to search"/>');
	document.write('</form>');

	// In case there is anything after this that needs to be processed by .NET...
	// (use same definition from initial form fragment)
	document.write('<form method="' + document.forms[0].method + '" action="' + document.forms[0].action + '" id="' + document.forms[0].id + '">');
	document.write('<input type="hidden" name="__VIEWSTATE" value="' + document.forms[0].__VIEWSTATE.value + '">');
}

function doSearch(me)
{
	if (event.keyCode==13)
	{
		me.submit();
		return false;
	}
}