// Wire up an ajax function to the submit button.  Returns false so the form doesn't actually get submitted.
$(document).ready(function(){
	$("form#searchForm").submit(function(){
		var srch = $("input#inp1").val();
		var logop = $("select#logop").val();
		$.ajax({ type:"POST", url:"submit.aspx", data:"srch=" + srch + "&logop=" + logop, success:function(data){
			$("div#searchresults").html(data).slideDown('slow');
		} });
		return false;
	});
});

// If the input box is populated on page load, submit the form to show last search results
$(document).ready(function(){
	if ($("input#inp1").val() != "")
	{
		$("form#searchForm").submit();
	}
});