$(document).ready(function() {

		$('form').submit(function() {
				//alert('clicked');
		    // get all the inputs into an array.
		    var $inputs = $('form input[type=text], form input[type=hidden], form input[type=radio]:checked, form input[type=checkbox]:checked, form select');
		
		    // not sure if you wanted this, but I thought I'd add it.
		    // get an associative array of just the values.
		    var values = {};
		    $inputs.each(function() {
		        values[this.name] = $(this).val();
		    });
		
		    $.post("/index.php/ajax/search_track", values, function(data) {
		       //alert("Data Loaded: " + data);
		    });    
		
		    //console.log(values);
		    return true;
		});
		
});


