function search_by_area(){
call_ajax_post('./includes/html/search-wizard.php', 'area', '<img class="home-search-ajax-animation" src="./graphics/loadingAnimation.gif">', 'Error','by=area'); 
}

function get_sector(sector)
{
call_ajax_post('./includes/html/search-wizard.php', 'area', '<img class="home-search-ajax-animation" src="./graphics/loadingAnimation.gif">', 'Error','by=area&sector='+sector); 
}

function search_entries_in_area(sector,area)
{
call_ajax_post('./includes/html/search-wizard.php', 'area', '<img class="home-search-ajax-animation" src="./graphics/loadingAnimation.gif">', 'Error','by=area&sector='+sector+'&area='+area);
}

function search_entries_in_sector(sector)
{
call_ajax_post('./includes/html/search-wizard.php', 'area', '<img class="home-search-ajax-animation" src="./graphics/loadingAnimation.gif">', 'Error','by=area&sector='+sector+'&sector_search=1=');
}

function get_entries_of_type(main_type,secondary_type)
{
call_ajax_post('./includes/html/search-wizard.php', 'type', '<img class="home-search-ajax-animation" src="./graphics/loadingAnimation.gif">', 'Error','by=type&main_type='+main_type+'&secondary_type='+secondary_type);
}

function get_main_type(main_type)
{
call_ajax_post('./includes/html/search-wizard.php', 'type', '<img class="home-search-ajax-animation" src="./graphics/loadingAnimation.gif">', 'Error','by=type&main_type='+main_type);
}

function auto_complete_name_search()
{
call_ajax_post('./includes/html/search-wizard.php', 'search_by_name_hint', '<img style="margin:20px;" src="./graphics/loadingAnimation.gif">', 'Error','by=name&hint='+document.name_search_form.company_name.value);
}
