var ol_textcolor="#ffffff" var ol_fgcolor="#FF3300" brw=BrowserCheck() function kiesperiode(err_tx){ if(document.FRMzoeken.datum.value==""){ alert(err_tx) document.FRMzoeken.datum.style.backgroundColor="orange" if(brw<2){ var element=document.getElementById(document.FRMzoeken.datum) element.style.backgroundColor="orange"} document.FRMzoeken.budget.value=0 return false }else{ readMap() return true}} function emptySearchresult(){ map.clearOverlays()} zoomgebied=new Array() zoomgebied[1]=8 zoomgebied[2]=7 zoomgebied[5]=8 zoomgebied[6]=9 zoomland=6 function readMap(){ var oForm=document.forms[0] document.forms[0].zoek.value=1 oForm.action="aj_aantal.php" var sBody=getRequestBody(oForm) var oXmlHttp=zXmlHttp.createRequest() oXmlHttp.open("post",oForm.action,true) oXmlHttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded") oXmlHttp.onreadystatechange=function(){ if(oXmlHttp.readyState==4){ saveNrFound(oXmlHttp.responseText) oForm.dumgebiedid.value=0 oForm.action="resultaata.php" return}} oXmlHttp.send(sBody) oForm.action="resultaata.php" return} function saveNrFound(sTotalA,sTotalG){ var divI=document.getElementById("numberfoundtx") divI.innerHTML=sTotalA document.forms[0].aantalA.value=sTotalA hideLayer("wait") showLayer("numberfoundtx")} function readGebied(vargebiedid){ var oForm=document.forms[0] oForm.dumgebiedid.value=vargebiedid if(vargebiedid==0){ oForm.gebiedid.selectedIndex=0 oForm.subgebiedid.value=0} oForm.action="aj_gebied.php" var sBody=getRequestBody(oForm) var oXmlHttp=zXmlHttp.createRequest() oXmlHttp.open("post",oForm.action,true) oXmlHttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded") oXmlHttp.onreadystatechange=function(){ if(oXmlHttp.readyState==4){ saveGebied(oXmlHttp.responseText)}} oXmlHttp.send(sBody)} function saveGebied(sGebieden){ var divI=document.getElementById("gebied") divI.innerHTML=sGebieden} function doRead(){ hideLayer('numberfoundtx') showLayer("wait") readMap()} var act="index.php" function showTab(wat){ if(wat=='all'){ document.forms[0].zoek.value=1 if(document.forms[0].zoekref.value !=""){ document.forms[0].zoekref.value="" doRead()} hideLayer('zoekopcode') hideLayer('tabcode') hideLayer('tabkaart') hideLayer('tabuitgebreid') showLayer('zoekall') showLayer('numberfoundtx') showLayer('tabhuizen') act="index.php"} if(wat=='code'){ hideLayer('zoekall') hideLayer('verfijnd') hideLayer('tabhuizen') hideLayer('tabkaart') hideLayer('tabuitgebreid') hideLayer('numberfoundtx') showLayer('zoekopcode') showLayer('tabcode') showLayer('foto') act="resultaata.php" document.forms[0].action="resultaata.php"} if(wat=='kaart'){ hideLayer('zoekall') hideLayer('verfijnd') hideLayer('tabhuizen') hideLayer('tabcode') hideLayer('tabuitgebreid') hideLayer('numberfoundtx') showLayer('zoekopcode') showLayer('tabkaart') showLayer('foto') act="map.php"} if(wat=='uitgebreid'){ document.forms[0].zoek.value=1 if(document.forms[0].zoekref.value !=""){ document.forms[0].zoekref.value="" doRead()} hideLayer('tabhuizen') hideLayer('tabcode') hideLayer('tabkaart') hideLayer('foto') hideLayer('zoekopcode') showLayer('tabuitgebreid') showLayer('numberfoundtx') showLayer('zoekall') showLayer('verfijnd') act="index.php"}}