function search(string, cat_id)
{
	args = "string=" + string + "&cat=" + cat_id;	
	new Request(
		{
			method: 'GET',
			url: 'ajax_search.php',
			onSuccess: function(txt) {
			    ajax_req = null;
			    $("divmain").innerHTML = txt;
			},
			onFailure: function() {
			    ajax_req = null;
			    alert('The request failed.');
			}
		}
	).send(args);
	
	return false;
}