function setTarget(f) {
	switch ($('input:radio[name=outputfmt]:checked').val()) {
		case '4': // Excel
			f.action = '/property-export-xls';
			break;
		default:
			f.action = '/search';
	}
}
function clearFields() {
	$("form").find(':input').each(function() {
		switch(this.type) {
			case 'password':
			case 'select-multiple':
			case 'select-one':
				$(this).selectedIndex = 0;
				break;
			case 'text':
				$(this).val('');
				break;
			case 'textarea':
			case 'checkbox':
			case 'radio':
				this.checked = false;
		}
	});
	$('#outputfmt1').attr('checked',true);
}
