/*
function specialCountryHandler(refId)
{
	var ref=document.getElementById(refId)
	var handler=CountryHandler["ZONE_"+refId.value];
	alert(refId.value);
	if(handler!=null)
	{
		handler();
	}else{
		alert("default");
		CountryHandler["DEFAULTHANDLER"]();
	}
}

CountryHandler=
{
	ZONE_7:function() //ZONE_COUNTRY_FR
	{
		ShowHideElements("zoneEducation,regionSelector",true);
	},
	DEFAULTHANDLER:function()
	{
		ShowHideElements("zoneEducation,regionSelector",false);
	}
}
*/
AjaxConn=null;

function searchCountInit()
{
	if(urlAjax!=null)
	{
		AjaxConn=setupCall(urlAjax,SearchCountCallBack);
		if(AjaxConn!=null)
		{
			var obj;
			obj=document.getElementById("submitSearchButton");
			obj.style.display="";
			obj=document.getElementById("submitSearchButtonFallBack");
			obj.style.display="none";
			obj=document.getElementById("searchCountDisplay_2");
			if(obj!=null) obj.style.display="";
			
			setTimeout(RefreshSearchCount,0);
			
			oldQueryString="";
		}
	}
}



function jobSearchInit()
{
	status="init ";
	if(typeof Drawers_Init != "undefined")			Drawers_Init(open_zone,folded_zone);
								//'loc_,activity_,job_,jobtype_,keyword_,timespan_','entity_,graduation_');
	if(typeof Checkall_Init != "undefined")			Checkall_Init('checkallzone_activity,checkallzone_function');
	if(typeof specialCountryHandler != "undefined")	specialCountryHandler('countryselector');
	if(typeof filterZoneSelector != "undefined")		filterZoneSelector('GeoZoneSelectorControl','countryselector')
	if(typeof searchCountInit != "undefined")		searchCountInit()
}
if (document.addEventListener) {
	document.addEventListener("DOMContentLoaded", jobSearchInit, false);
}else{
	window.onload=jobSearchInit;
}