	function search() {

		//var what = document.getElementById('whatinput').value;
		//var where = document.getElementById('whereinput').value;
		//var radius = '';//document.getElementById('radius').value;

		var what = jQuery('#whatinput').val();
		var where = jQuery('#whereinput').val();
		if (where == 'City&State or Zip') where = '';
		var radius = jQuery('#radius').val();
		var searchtype = 'all';

		for(x=0; x < document.forms[0].searchtype.length; x++){
			if(document.forms[0].searchtype[x].checked ){
				searchtype = document.forms[0].searchtype[x].value;
				break;
			}
		}

		//var url = 'http://84.52.54.229:8888/search/search.php';
		//var pars = 'what=' + what + '&where=' + where +'&searchtype=' + searchtype + '&radius=' + radius;

		var url = 'search.php';
		var pars = 'what=' + what + '&where=' + where +'&wordmatch=' + searchtype + '&radius=' + radius;
		var request = url + '?' + pars;

		jQuery.ajax({
        	url: request,
        	success: function (html) {
				//var d = $('result');
				//d.innerHTML = html;
				jQuery('#result').html(html);
			}
	    });

		/*
		var myAjax = new Ajax.Request(
			url, 
			{method: 'get', parameters: pars, onComplete: showResponse}
		);
		*/
	}

