// Submit's the form. Grabs the search string from the "theID" element.
// Uses "theURL" as the post action URL.
function siteSearch(f,theID,theURL)
{
	var query=document.getElementById(theID);
	f.form.action=theURL+query.value;
	f.form.submit();
}

// Used to submit the form on enter.
function submitenter(f,e,theID,theURL) {
	var keycode;
	
	if (window.event)
		keycode = window.event.keyCode;
	else if (e)
		keycode = e.which;
	else
		return true;
		
	if (keycode == 13)
	{
		siteSearch(f,theID,theURL);
		return false;
	}
	else
		return true;
}











