jQuery(document).ready(function() {
	$('#clearbutton').click(function() {resetinputs();});
});

function resetinputs() {
	$("input[type='text']").each(function(index,curr_element) {
		$(this).val('');
	});

	$("select").each(function(index,curr_element) {
		$(this).val($("#" + $(this).attr("id") + " option:first").val());
	});
}
