function searchbar_form_changed( param_default_text ) {

	var temp_obj;
	
	if (languages_count_selected) {
		if ( languages_count_selected() > 0 ) {
			return true;
		}
	} else {
		temp_obj = null;
		temp_obj = document.getElementById ( "searchbar_languages_options" );
		if ( temp_obj && temp_obj.value != 0 ) {
			return true;
		}
	}
	
	if (sectors_count_selected) {
		if ( sectors_count_selected() > 0 ) {
			return true;
		}
	} else {
		temp_obj = null;
		temp_obj = document.getElementById ( "searchbar_sectors_options" );
		if ( temp_obj && temp_obj.value != 0 ) {
			return true;
		}
	}
	
	if ( locations_count_selected ) {
		if ( locations_count_selected() > 0 ) {
			return true;
		}
	} else {
		temp_obj = null;
		temp_obj = document.getElementById ( "searchbar_locations_options" );
		if ( temp_obj && temp_obj.value != 0 ) {
			return true;
		}
	}
	
	temp_obj = document.getElementById ( "search_string" );
	if ( temp_obj.value != "" && temp_obj.value != param_default_text ) {
		return true;
	}
	
	return false;
}

function searchbar_submit( param_form_id, param_default_text ) {
	if ( searchbar_form_changed(param_default_text) == false ) {
		alert ( "Please enter a specific search" );
		return false;
	}
	if ( document.getElementById( "search_string" ).value == param_default_text ) {
		document.getElementById( "search_string" ).value = "";
	}
	form_submit_call(param_form_id)
	return true;
}


//function lost_focus_search_box ( obj_this ) {
function clear_search_box ( obj_this, param_default_text ) {
	if ( obj_this.value == "" ) {
		obj_this.value = param_default_text;
	} else if ( obj_this.value == param_default_text ) {
		obj_this.value = "";
	}
	return true;
}


function restore_last_quick_search_option ( param_type, param_value ) {
	var temp_obj = document.getElementById ( "quicksearch_" + param_type + "_options" );
	if ( true === isObject ( temp_obj ) ) {
		//
	}
	return false;
}



