
function changeGeoMap()
{
$get(imgGeo).src="/images/home/geo_loading.gif";
setTimeout("loadGeoMap()",100)
}
function loadGeoMap()
{
if(SectorCode==null||SectorCode=="")
{
alert("SectorCode not defined");
return
}
var b=$get(lstR).options[$get(lstR).selectedIndex].value,
a=$get(lstO).options[$get(lstO).selectedIndex].value,
c=$get(lstT).options[$get(lstT).selectedIndex].value,
d=$get(lstW).options[$get(lstW).selectedIndex].value;
$get(imgGeo).src="/RenderMap.ashx?mini=1&seg="+OrigSegment+"&s="+SectorCode+"&r="+b+"&o="+a+"&t="+c+"&w="+d
}
function ofcozo(a,c,d)
{
if(a!="trends"&&a!="kanaalz")
return;
$get("DivOfcozoTrends").style.display=a=="trends"?"inline":"none";
$get("DivOfcozoKanaalz").style.display=a=="kanaalz"?"inline":"none";
var b="/integration/OfcozoRedirect.aspx?l="+Language+"&s="+c+"&app="+a+"&type="+d;
if($get("ifrOfcozo").src!=b)
$get("ifrOfcozo").src=b;
$get("divOfcozo").style.display="inline";
return false
}
function loadSelection()
{
var a;
SetOption($get("ctl00_c_ucRangschikking1_ddl1"),Get_Cookie("SelOpties"+SectorType+"1"));
SetOption($get("ctl00_c_ucRangschikking1_ddl2"),Get_Cookie("SelOpties"+SectorType+"2"));
SetOption($get("ctl00_c_ucRangschikking1_ddl3"),Get_Cookie("SelOpties"+SectorType+"3"));
SetOption($get("ctl00_c_ucRangschikking1_ddl4"),Get_Cookie("SelOpties"+SectorType+"4"));
loadLists()
}
function SetOption(b,c)
{
if(c!=null)
for(var a=0;a<b.length;a++)
if(b.options[a].value==c)
b.options[a].selected=true
}
function saveSelection()
{
Set_Cookie("SelOpties"+SectorType+"1",$get("ctl00_c_ucRangschikking1_ddl1").options[$get("ctl00_c_ucRangschikking1_ddl1").selectedIndex].value,30,"/","","");
Set_Cookie("SelOpties"+SectorType+"2",$get("ctl00_c_ucRangschikking1_ddl2").options[$get("ctl00_c_ucRangschikking1_ddl2").selectedIndex].value,30,"/","","");
Set_Cookie("SelOpties"+SectorType+"3",$get("ctl00_c_ucRangschikking1_ddl3").options[$get("ctl00_c_ucRangschikking1_ddl3").selectedIndex].value,30,"/","","");
Set_Cookie("SelOpties"+SectorType+"4",$get("ctl00_c_ucRangschikking1_ddl4").options[$get("ctl00_c_ucRangschikking1_ddl4").selectedIndex].value,30,"/","","")
}
function BenchChanged(a)
{
var b=a.options[a.selectedIndex].value;
document.location.href="/tools/benchmark/default.aspx?create=comp&btw="+btw+"&r="+b
}
function setBench()
{
if($get(lstBench))
$get(lstBench).selectedIndex=0
}
function loadLists()
{
checkList("ctl00_c_ucRangschikking1_ddl1");
checkList("ctl00_c_ucRangschikking1_ddl2");
checkList("ctl00_c_ucRangschikking1_ddl3");
checkList("ctl00_c_ucRangschikking1_ddl4")
}
function StartCijfersChart()
{
for(var c=$("input:checkbox[id$=cbGraph]"),
a=[],
b=0;b<c.length;b++)
c[b].checked&&
Array.add(a,c[b].rubriek);
if(a.length>5)
mlSelectionChartMax&&mlSelectionChartMax!=""&&
alert(mlSelectionChartMax);
else
if(a.length>0)
{
var d="/tools/rubriekchart.aspx?l="+Language+"&btw="+btw+"&type="+cijferType+"&rubriek="+a;
$get("chartlink").href=d;
$get("chartlink").click()
}
else
mlSelectionChartMin&&mlSelectionChartMin!=""&&
alert(mlSelectionChartMin)
}