function book(_1,_2){
if(window.sidebar){window.sidebar.addPanel(_1,_2,"");}
else{if(window.opera&&window.print){
var _3=document.createElement("a");_3.setAttribute("href",_2);_3.setAttribute("title",_1);_3.setAttribute("rel","sidebar");_3.click();}else{if(document.all){window.external.AddFavorite(_2,_1);}}}}function MM_reloadPage(_4){if(_4==true){with(navigator){if((appName=="Netscape")&&(parseInt(appVersion)==4)){document.MM_pgW=innerWidth;document.MM_pgH=innerHeight;onresize=MM_reloadPage;}}}else{if(innerWidth!=document.MM_pgW||innerHeight!=document.MM_pgH){location.reload();}}}

function uppersearch(s1,s2,s3){
document.write("<div id=\"b_top\"><div id=\"b_topct\" style=\"height:65px;\">");
document.write("<form action=\"/zoek/\" method=\"post\">");
document.write("<div style=\"float:right;width:468px;\">");
document.write("<a href=\"/inschrijving/\" title=\"Meldt u nu GRATIS aan\"><img src=\"http://cache.allebedrijveninnederland.nl/ad/468x60_abin.gif\" alt=\"Meldt u nu aan\" style=\"border:0px;\"/></a>");
document.write("</div>")
document.write("<div style=\"float:left;width:400px;\">");
document.write("<b style=\"font-size:12px; color:#FFFFFF; margin:0px;padding:0px;\">zoek:</b><br>");
document.write("<div style=\"float:left;margin-right:8px;margin-top:5px;color:#FFFFFF;\"><input name=\"input_s\" type=\"text\" id=\"input_s\" style=\"border:2px solid #003366;font-size:12px;color:#000000;padding:0px 2px 2px 25px;\"><br>");
if(s1!=""){document.write("bijv: "+s1);}
if(s2!=""){document.write(", "+s2);}
if(s3!=""){document.write(", "+s3);}
document.write("</div>")
document.write("<div style=\"float:left;margin-top:3px;\"><input name=\"btnSearch\" type=\"image\" src=\"http://cache.allebedrijveninnederland.nl/_media/img/top_searchbtn.png\" alt=\"vind!\" width=\"81\" height=\"23\" border=\"0\"></div>");
document.write("</div></form></div></div>");}



function adtravel700(h){var _9="/ad/gotravel.asp";document.write("<div style=\"padding:1px;\"><iframe scrolling=\"no\" src="+_9+" height="+h+" width=715 marginwidth=0 marginheight=0 scrolling=no frameborder=0 align=\"center\" title=\"Advertisment\"></iframe></div>");}

function displaymap_simple(_a,_b,w,h,_e){_e=_e.toLowerCase();var _f="http://media.allebedrijveninnederland.nl/flash/rev_250x250.asp?pg="+_e;document.write("<div style=\"padding:1px;width:250px;background:#FFFFFF;\"><iframe scrolling=\"no\" src="+_f+" height=\"250\" width=\"250\" marginwidth=0 marginheight=0 scrolling=no frameborder=0 align=\"center\" title=\"Google Maps (c)\"></iframe></div>");}function picturelib(_10,_11){document.write("<p><img src=\"http://cache.allebedrijveninnederland.nl/_media/img/section/"+_10+"\" title=\" -"+_11+"\" align=\"center\"></p>");}function ad234(_12){AdViewer('lucht',234,60,null);}function ad468(_13){AdViewer(_13,468,60,null);}function ad250(_14){AdViewer('ballon',250,250,_14);}function adn250(_15,_16){AdViewer(_16,250,250,_15);}

function AdViewer(_17,w,h,n){
var _1b="style=\"border:1px solid #666666;padding:1px";
if(_17!=null){_1b+=";float:"+_17;}if(n!=null){n="-"+n;}else{n="";}
document.write("<div "+_1b+";width:"+w+"px;\">");
if(_17!='ballon'){
document.write("<iframe scrolling=\"no\" src=http://cache.allebedrijveninnederland.nl/ad/"+w+"x"+h+n+".asp height="+h+" width="+w+" marginwidth=0 marginheight=0 scrolling=no frameborder=0 align=\"center\" title=\"Advertentie\">");	
} else {
	if (h==60){document.write("<iframe scrolling=\"no\" src=http://media.allebedrijveninnederland.nl/luchtballon/234x60.html height="+h+" width="+w+" marginwidth=0 marginheight=0 scrolling=no frameborder=0 align=\"center\" title=\"Advertentie\">");}
	else {document.write("<iframe scrolling=\"no\" src=http://media.allebedrijveninnederland.nl/flash/rev_250x250.asp?pg="+n+" height="+h+" width="+w+" marginwidth=0 marginheight=0 scrolling=no frameborder=0 align=\"center\" title=\"Advertentie\">");}
}

document.write("</iframe></div>");}function HQAff(_1c,w,h,ext){var blq="/";var str="x";if(_1c!=null){str=""+_1c;var pos=str.indexOf("nieuws");if(pos>=0){blq="http://cache.allebedrijveninnederland.nl/";}else{pos=str.indexOf("partyagenda");if(pos>=0){blq="http://cache.allebedrijveninnederland.nl/";}}}if(ext=="asp"){ext+="?h="+h+"&w="+w;}document.write("<div style=\"width:"+(w+5)+";height:"+h+";\"><iframe scrolling=\"no\" src="+blq+"aff/"+_1c+"."+ext+" height="+h+" width="+w+" marginwidth=0 marginheight=0 scrolling=no frameborder=0 align=\"center\" title=\"Extern\"></iframe></div>");}
function TurnOn(_23){var a=ElbyID(_23);if(a){a.style.display="";}}
function TurnOff(_25){var a=ElbyID(_25);if(a){a.style.display="none";}}
function ElbyID(_27){return document.getElementById(_27);}
function ClapSwitch(n) {
	var a=ElbyID(n);if(a){
			if (a.className=='sliceG'){a.className="sliceB"}else{a.className="sliceG"}
		}
}
function switchDisplay(_28){var a=ElbyID(_28);if(a){if(a.style.display=="none"){a.style.display="";}else{a.style.display="none";}}}

function chk(o){
var _a=document.getElementById(o);
if(_a){_a.checked=!_a.checked;}
}

function chkOpen(o,dv){
var _a=document.getElementById(o);
if(_a){ if (_a.checked==true) {TurnOn(dv);} else{TurnOff(dv);};}
}

function checkphone(_1){var f=ElbyID(_1);var z=ElbyID("frmButtons");if(z){z.innerHTML="<div style=\"background-color:#003366;color:#FFFFFF;font-weight:bold;padding:7px;\">Uw aanvraag wordt verwerkt, een ogenblik geduld aub...</div>";var _4=get(f);frmsyn(mapi,"checkpointer",_4);}}function checkfrm(_5,_6){var f=ElbyID(_5);var z=ElbyID("frmButtons");if(z){z.innerHTML="<div style=\"background-color:#003366;color:#FFFFFF;font-weight:bold;padding:7px;\">Uw aanvraag wordt verwerkt, een ogenblik geduld aub...</div>";var _9=get(f);frmsyn(_6,"checkpointer",_9);}}function BtnOn(_a){var b=ElbyID(_a);if(b){b.disabled=false;}}
function maxIt(tarea,cLbl,max){
var tx = ElbyID(tarea);var c = ElbyID(cLbl); if (tx && cLbl){
if (tx.value.length >= max) {c.innerHTML="U kunt geen tekens meer toevoegen"
tx.value = tx.value.substring(0,max);
}
else if (tx.value.length == (max-1)) {c.innerHTML="U heeft nog <b>1 teken</b> vrij"}
else {c.innerHTML="U kunt nog <b>"+(max-tx.value.length)+"</b> tekens invoeren"}
}
else {alert("browser wordt niet ondersteund");}
}

function msg(_2a) {
var pg = "/" + "_mod" + "/mailObj/" + "new";
var url = pg + ".asp?enc=" + _2a;
var strID = _2a.toString();
var _2d = window.open(url, "berichtenbox", "height=430,width=400,left=200,top=100,resizable=no,scrollbars=no,toolbar=no,status=no");
if (window.focus) {
_2d.focus();
 }
if (_2d == null) {
alert("Er kan geen bericht worden gestuurd./nControleer of uw popup-blocker onze site accepteert.");
}
}

function msgN(_2a) {
	var pg = "/" + "_mod" + "/mailObj/" + "new";
	var url = pg + ".asp?enc=" + _2a;

		url = "/_mod/mailObj/NewMessage.asp?cnc=" + _2a;

	var _2d = window.open(url, "berichtenbox", "height=390,width=400,left=200,top=100,resizable=no,scrollbars=no,toolbar=no,status=no");
	if (window.focus) {
		_2d.focus();
	}
	if (_2d == null) {
		alert("Er kan geen bericht worden gestuurd./nControleer of uw popup-blocker onze site accepteert.");
	}
}

function displaybigmap_address(a,b,w,h,ez,address){ez=ez.toLowerCase();var f="http://map.localcity.nl/"+ez+"/?s="+w+"x"+h+"&n="+a+"&o="+b+"&z=5&adres="+address;document.write("<div class=\"box-blue\" style=\"padding:1px;\"><iframe scrolling=\"no\" src="+f+" height="+h+" width="+w+" marginwidth=0 marginheight=0 scrolling=no frameborder=0 align=\"center\" title=\"Google Maps (c)\"></iframe></div>");}


function LightUp(c1,c2) {
if(!c1)return false;
if (c2==1){c1.style.backgroundColor='#DFEDF6';}else{c1.style.backgroundColor='transparent';}
}

function ClickHandler(cb){
var n = document.getElementById(cb)
if (n==null) return false;
if (n.checked==true) {n.checked=false}
else {n.checked=true;}
return false;
}

function OpenTellAFriend(comID){
var mypage = "/_mod/ToolObj/TellAFriend.asp?C=" + comID + "&A=559437as8c9ty&B=98qd";
var winl = (screen.width - 700) / 2;
var wint = (screen.height - 530) / 2;
winprops = 'height=330,width=325,top='+wint+',left='+winl+',toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no'
win = window.open(mypage, "go", winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

    function switchuPage(nP) {
    var eLinks = document.getElementById('PersonalNav').getElementsByTagName('li');if(!eLinks)return false;
    var ePath = document.getElementById('ajax_path');if(!ePath)return false;
    for(i=0;i<eLinks.length;i++){
	    if(eLinks[i].id=='persOpt11'+nP){ 
		    eLinks[i].className='sel';eLinks[i].innerHTML='<div>'+linkTag[i]+'</div>';
		    var nPathTxt="";
		    if (nP > 0) {nPathTxt='<a href="'+ParentFolder+'" title="Bekijk overzicht van '+crumble_name+'">'+crumble_name+'</a> ' + linkTag[i];}
		    else {nPathTxt=crumble_name;}
		    ePath.innerHTML=nPathTxt;

		    if (i==0){
		    	if (!Ppage || Ppage==''){asyn(nQr+'pDefault.asp?ext='+resc+'&ajx=1&dtm='+(new Date()).getTime(),'AJAXGen');}
		    	else {window.location = '/clients/'+Ppage+'.asp';}
		    };
		    if (i==1)asyn(nQr+'pReviews.asp?ext='+resc+'&ajx='+RevAantal+'&dtm='+(new Date()).getTime(),'AJAXGen');
		    if (i==2)asyn(nQr+'pAds.asp?ext='+resc+'&dtm='+(new Date()).getTime(),'AJAXGen');
		    if (i==3)asyn(nQr+'pPers.asp?ext='+resc+'&aT='+PersAantal+'&dtm='+(new Date()).getTime(),'AJAXGen');
		    if (i==4)asyn(nQr+'pTools.asp?ext='+resc+'&dtm='+(new Date()).getTime(),'AJAXGen');
		    if (GMapOff==''||GMapOff=='false'){ if (i==5)asyn(nQr+'pRoute.asp?ext='+resc+'&ajx=1&dtm='+(new Date()).getTime(),'AJAXGen');}; 
            
		    }
	    else { 
		    if(eLinks[i].className=='sel'){
			    if (!Ppage || Ppage=='' || i>0) {
			    eLinks[i].innerHTML='<a href="'+crumble_path+links[i]+'" title="Bekijk '+linkTag[i] +' van '+crumble_name+'" onClick="javascript:switchuPage('+i+');return false;">'+linkTag[i]+'</a>';
			    }
			    else {
			    eLinks[i].innerHTML='<a href="'+ParentFolder+'" title="Bekijk '+linkTag[i] +' van '+crumble_name+'">'+linkTag[i]+'</a>';
			    }
			    eLinks[i].className='';
			    }
	        }
        }
    }

  
    function DoPopper(p,f) {
        e = document.getElementById(p);
       ebg = document.getElementById(f);
        if (e.style.visibility == 'hidden') {
            e.style.visibility = '';
            if (navigator.appName == 'Netscape') {
                ebg.style.height = document.height;
                ebg.style.width = document.width;
            }
            if (navigator.appName == 'Microsoft Internet Explorer') {
                ebg.style.height = document.body.offsetHeight; 
                ebg.style.width = document.body.offsetWidth;
            }
            ebg.style.visibility = '';
        } else {
        e.style.visibility = 'hidden';
        ebg.style.visibility = 'hidden';
         }
	return false;
    }
    function Close(Obj) { var e = document.getElementById(Obj); if (e) { e.style.visibility = 'hidden'; } } 
    
    function OpenPrint() {
        ShowHidePrintMenu();
        eKA = document.getElementById("KA");
        eRO = document.getElementById("RO");
        eBE = document.getElementById("BE");
        eSP = document.getElementById("SP");
        qry = '';
        
        if (eKA.checked == true) { qry += 'KA=1'; } else { qry += 'KA=0'; }
        if (eRO.checked == true) { qry += '&RO=1'; } else { qry += '&RO=0'; }
        if (eBE.checked == true) { qry += '&BE=1'; } else { qry += '&BE=0'; }
        if (eSP.checked == true) { qry += '&SP=1'; } else { qry += '&SP=0'; }
        
        mypage = "/_mod/PrintObj/type1.asp?c=<%=comID %>&" + qry;
        var winl = (screen.width - 700) / 2;
        var wint = (screen.height - 530) / 2;
        winprops = 'height=800,width=720,top=' + wint + ',left=' + winl + ',toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no'
        win = window.open(mypage, "go", winprops)
        if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
    }

function closeEl(el) {
var elm = document.getElementById(el);if(!elm)return false;
elm.style.display='none';
}