function overBlazen(element){v = element[element.selectedIndex].value;t = element[element.selectedIndex].text;d= resultRadio(frm.vergelijker);t = right(t,t.length-t.indexOf('. ')-2);selecteur = document.getElementById(d);var no = new Option();no.value=v;no.text = t;var currentOpt = selecteur.options.length;selecteur.options[currentOpt] = no;}function clearList(element){	var tmpLength = element.options.length;	for(i=0;i<tmpLength; i++)	{element.options[0] = null;}}function MM_swapImage() { //v3.0  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}}function MM_swapImgRestore() { //v3.0  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;}function MM_findObj(n, d) { //v4.01  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);  if(!x && d.getElementById) x=d.getElementById(n); return x;}function MM_nbGroup(event, grpName) { //v3.0  var i,img,nbArr,args=MM_nbGroup.arguments;  if (event == "init" && args.length > 2) {	if ((img = MM_findObj(args[2])) != null && !img.MM_init) {	  img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;	  if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();	  nbArr[nbArr.length] = img;	  for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {		if (!img.MM_up) img.MM_up = img.src;		img.src = img.MM_dn = args[i+1];		nbArr[nbArr.length] = img;	} }  } else if (event == "over") {	document.MM_nbOver = nbArr = new Array();	for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) {	  if (!img.MM_up) img.MM_up = img.src;	  img.src = (img.MM_dn && args[i+2]) ? args[i+2] : args[i+1];	  nbArr[nbArr.length] = img;	}  } else if (event == "out" ) {	for (i=0; i < document.MM_nbOver.length; i++) {	  img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }  } else if (event == "down") {	if ((nbArr = document[grpName]) != null)	  for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; }	document[grpName] = nbArr = new Array();	for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {	  if (!img.MM_up) img.MM_up = img.src;	  img.src = img.MM_dn = args[i+1];	  nbArr[nbArr.length] = img;  } }}function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();   var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)   if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}}function toontipcookielezen(){cookie_test()var a="TIPTOP";//window.alert(a);var cd=getCookieData(a);window.alert(cd);var path;path = "http://linux02.fiscanet.nl/infofisc.nsf/toon_tip?openform";uitlegwindow = window.open(path,"NewWindow","location=false , titlebar=0,height=300,width=400,scrollbars")}// einde functie toon_tip_cookie_lezenfunction controleID(veldnaam,tekst){veld = document.getElementById(veldnaam)if (veld.value == "" )	{	window.alert("U bent vergeten " + tekst + " in te vullen");	veld.focus();	return false;	} // einde ifelse	{ 	return true;	}	// einde else}function controle(veld,tekst){if (veld.value == "" )	{	window.alert("U bent vergeten " + tekst + " in te vullen");	veld.focus();	return false;	} // einde ifelse	{ 	return true;	}	// einde else}	// einde functie controlefunction controleerdatum(veld,tekst){var datum=veld.valueif (datum.length != 10 |datum.indexOf("-") !=2 | datum.lastIndexOf("-") !=5 )	{          // window.alert(veld.value.length);	window.alert(tekst);	veld.focus();	return false;		} // einde ifelse	{ 	return true;		}	// einde else}// einde functie controleerdatumfunction focusElement(formName,elemName){var elem = document.forms[0].elements[elemName];elem.focus();// elem.select();}function checkid(xmlViewData,cf){var pwid = document.getElementById("pwid").value;var tekst ="";var viewRows = xmlViewData.getElementsByTagName("viewentry");for (var i = 0; i < viewRows.length; i++)	{	pwid2 = getViewRowValues(viewRows[i])[0]	email =  getViewRowValues(viewRows[i])[1];	}	if (cf=="Email")		{		if (pwid2.toUpperCase().substr(0,4) =="LEEG")          	{ tekst = "v" }     	else          	{	    		if (pwid2.substr(0,32) == pwid)          		{  tekst = "v" }         		else          		{	         		tekst=cf + "-adres bestaat al in ons bestand, kies een ander email adres."				setTimeout("focusElement(' " + "" + " ', '"+cf + "')",0);					}			}		tekst += "  " + email     		if (email.indexOf('niet') > 0 )			{			setTimeout("focusElement(' " + "" + " ', '"+cf + "')",0);			}		} // Einde email	else 		{	     if (pwid2.toUpperCase().substr(0,4) =="LEEG")     	     { tekst = "v" }          else          	{		    	if (pwid2.substr(0,32) == pwid)          		{  tekst = "v" }          	else          		{     	    		if (cf == "LastName")          	  		{            			tekst="De combinatie van voornaam, voorvoegsels en achternaam bestaat al, kies een andere naam";            			}            		else            			{					tekst=cf + "bestaat al, kies een andere naam.";					}					setTimeout("focusElement(' " + "" + " ', '"+cf + "')",0);				}			}		}		document.getElementById(cf + '_Controle').innerHTML= tekst;}function controleradio(veld,tekst){window.alert(veld.checked)if (veld.checked == false )	{	window.alert("U bent vergeten " + tekst + " in te vullen");	veld.focus();	return false;	} // einde ifelse	{ 	return true;	}	// einde else}	// einde functie controleradiofunction resultRadio(veld){for (i=0; i<veld.length; i++)	{	if (veld[i].checked==true)		{return veld[i].value}	}}function resultCheck(veld){var rC = new Array();for (i=0; i<veld.length; i++){if (veld[i].checked==true){rC.push(veld[i].value)}}return rC;}function bladernieuwsbrief(a){var path;var linkerstreepPos = a.indexOf("-");if (linkerstreepPos == "1"){ a = "0"+ a; }path = window.location.pathname.toLowerCase();var nsfPos = path.indexOf(".nsf");path = path.substr(0, nsfPos + 5);window.open(path+"(v0600?openform&datum="+a,"fiscacontent");} // einde functiefunction bladerinstantie(a){var path;var linkerstreepPos = a.indexOf("-");if (linkerstreepPos == "1"){ a = "0"+ a; }path = window.location.pathname.toLowerCase();var nsfPos = path.indexOf(".nsf");path = path.substr(0, nsfPos + 5);window.open(path+"(v0500?openform&datum="+a,"fiscacontent");} // einde functiefunction wetsgeschiedenis(a){var path;path = window.location.pathname.toLowerCase();var nsfPos = path.indexOf(".nsf");path = path.substr(0, nsfPos + 5)+ "form0701onder2?openform&";// window.alert(path);window.open(path+a,"f0701onder");} // einde functiefunction inframeset(a){var isNav4 = (navigator.appName == "Netscape" && parseInt(navigator.appVersion) == 4)if (top.location.href == window.location.href) 	{	if (isNav4) 		{		if  (window.innerWidth != 0)			{			top.location.href = a			}		}		else		{			top.location.href = a		}	}}// end of inframesetfunction wopen(a,b){// window.alert(a);window.open(a,b); window.open(c,d);}// end of wopenfunction replaceImg (plaats,img){	document.images[plaats].src = img};function msOver(button){		parent.frames["mouseoverbar"].document.mouseover.src="mo" + button + ".gif";//		window.open("mouseoverpags/mouseover" + button + ".html","mouseoverbar");	var overButton = button;	for (i=1 ; i<=10 ; i++)	{		var faDes = 'blokpos' + i;		if (i < button)		{			replaceImg(faDes,"blokje_" + overButton + ".gif")			overButton--;		}		if (i == button)		{			replaceImg(faDes,"blokje_" + overButton + ".gif");			overButton=2;		}		if (i > button)		{			replaceImg(faDes,"blokje_" + overButton + ".gif");			overButton++;		}	}}function ovib2001(docid,header){var path;var h1;var h2;path = window.location.pathname.toLowerCase();var nsfPos = path.indexOf(".nsf");h1 = path.substr(0, nsfPos + 5)+ "form0301onder2?openform&hs=" + docid;h2= path.substr(0, nsfPos + 5)+ "form0301bovenrechts?openform&hs="+  header;window.open(h1,"f0301onder");window.open(h2,"f0301bovenrechts");} // einde functie  ovib2001function ovib2001b(docid,header){var path;var h1;var h2;path = window.location.pathname.toLowerCase();var nsfPos = path.indexOf(".nsf");h1 = path.substr(0, nsfPos + 5)+ "form0301onder?openform&hs=" + docid;h2= path.substr(0, nsfPos + 5)+ "form0301bovenrechts?openform&hs="+  header;window.open(h1,"f0301onder");window.open(h2,"f0301bovenrechts");} // einde functie  ovib2001function winverdeel(frame1,inhoud1,frame2,inhoud2){var path;var h1;var h2;window.alert("Test");path = window.location.pathname.toLowerCase();var nsfPos = path.indexOf(".nsf");h1= path.substr(0, nsfPos + 5)+ "form0301bovenrechts?openform&hs="+  inhoud1;h2 = path.substr(0, nsfPos + 5)+ inhoud2;window.open(h1,frame1);window.open(h2,frame2);} // einde functie  winverdeelfunction getCookieData(LabelName){var labelLen = LabelName.lengthvar cookieData =document.cookievar cLen = cookieData.lengthvar i = 0var cEndwhile (i < cLen) 	{	var j = i + labelLen	if (cookieData.substring(i,j) == LabelName)		{		cEnd = cookieData.indexOf(";",j)		if (cEnd == -1)			{			cEnd = cookieData.length			}		return unescape(cookieData.substring(j+1,cEnd))		}	i++	}return ""}function cookie_test(){//window.alert("in de cook 1");var exp = new Date();var oneYearFromNow = exp.getTime() + (365 *24 *60 *60 *1000);exp.setTime(oneYearFromNow);// window.alert("in de cook 2");NooitMeerEenTip= "NMT";LaatsteTip="2003*12";//window.alert("in de cook 3");cookstring="TIPTOP="+NooitMeerEenTip+LaatsteTip+";expires=" + exp.toGMTString();window.document.cookie=cookstring;//window.alert("in de cook 4");}	function dew(frame1,inhoud1,frame2,inhoud2){var path;var h1;var h2;path = window.location.pathname.toLowerCase();var nsfPos = path.indexOf(".nsf");h1 = path.substr(0, nsfPos + 5)+  inhoud1;h2 = path.substr(0, nsfPos + 5)+ inhoud2;window.open(h1,frame1);window.open(h2,frame2);} // einde functie  winverdeelfunction openwet(inhoud1){var path;var h1;broodkruim("fv0200?openform&hs=" + inhoud1,'ld',inhoud1);path = window.location.pathname.toLowerCase();var nsfPos = path.indexOf(".nsf");h1 = path.substr(0, nsfPos + 5)+ "fv0200?openform&hs=" + inhoud1;window.open(h1,'ld');} // einde functie  openwetfunction openartikel(inhoud1){var path;var h1;window.alert("test");path = window.location.pathname.toLowerCase();var nsfPos = path.indexOf(".nsf");h1 = path.substr(0, nsfPos + 5)+ "wetsartikelen/WETTEN*" + inhoud1 + "?opendocument";window.open(h1,'modelboven');} // einde functie  openartikelfunction openhoofdstuk(inhoud1){var path;var h1;path = window.location.pathname.toLowerCase();var nsfPos = path.indexOf(".nsf");h1 = path.substr(0, nsfPos + 5)+ "fv0300?openform&hs=" + inhoud1;//window.alert(h1);window.open(h1,'ld');} // einde functie  openhoofdstukfunction bk(prioriteit,href,tekst,target){var a="<a href='" + href + "'"  + " target='" + target + "'>" +tekst + "</a>"var oud = top.fiscacontent.broodkruim.document.forms[0].nieuw.value;if (oud.indexOf(href) =='-1')	{	if (prioriteit == '0') 		{		var nieuw = a		}	if (prioriteit == '1') 		{		var hulp = oud.toLowerCase();		pos_a = hulp.indexOf("</a>");		var nieuw = oud.substr(0,pos_a + 7) + a;		}	if (prioriteit == '2') 		{		var nieuw = oud + " : " + a;		}	top.fiscacontent.broodkruim.document.forms[0].nieuw.value=nieuw;	top.fiscacontent.broodkruim.document.getElementById("dbk").innerHTML=top.fiscacontent.broodkruim.document.forms[0].nieuw.value;	}}function bk2005(prioriteit,href,tekst,target){var target = "_self";var a="<a href='" + href + "'"  + " target='" + target + "'>" +tekst + "</a>"var oud = window.document.getElementById("kruimel").innerHTML;window.alert(oud);if (oud.indexOf(href) =='-1')	{	if (prioriteit == '0') 		{		var nieuw = a		}	if (prioriteit == '1') 		{		var hulp = oud.toLowerCase();		pos_a = hulp.indexOf("</a>");		var nieuw = oud.substr(0,pos_a + 7) + a;		}	if (prioriteit == '2') 		{		var nieuw = oud + " : " + a;		}	// top.document.forms[0].broodkruim.value=nieuw;	window.document.getElementById("kruimel").innerHTML=nieuw;	}}function createNewTooltip(name, textColor, backgroundColor, fontSize, fontFamily, x, y){	document.write("<div id='" + name + "' style='position: absolute; display: none; border: 1px solid " + textColor + "; font-size: " + fontSize + "px; font-family: " + fontFamily + "; color: " + textColor + "; background-color: " + backgroundColor + "; padding: 1px'></div>");	xPos = x;	yPos = y;}function tooltip_show(naam, tekst, koptekst, wachttijdVoorVerschijnen, wachttijdWeergeven){	if (koptekst != null || koptekst != "")	{		tekst = "<b>" + koptekst + ":</b> " + tekst;	}		if (wachttijdVoorVerschijnen == null || wachttijdVoorVerschijnen == "")	{		wachttijdVoorVerschijnen = 2000;	}	else	{		wachttijdVoorVerschijnen = (wachttijdVoorVerschijnen * 1000);	}		if (wachttijdWeergeven == null || wachttijdWeergeven == "")	{		wachttijdWeergeven = 5000;	}	else	{		wachttijdWeergeven = (wachttijdWeergeven * 1000);	}		var element = document.getElementById(naam);	element.innerHTML = tekst;	setTimeout("tooltip_setVisible('" + naam + "','" + wachttijdWeergeven + "');", wachttijdVoorVerschijnen);}function tooltip_setVisible(naam, wachttijdWeergeven){	var element = document.getElementById(naam);	element.style.left = xPos;	element.style.top = yPos;	element.style.display = "inline";	//setTimeout("tooltip_hide();", wachttijdWeergeven);}function tooltip_hide(naam){	var element = document.getElementById(naam);	element.style.display = "none";}function getYPos(){	return yPos;}function getXPos(){	return xPos;}function setYPos(value){	if (value >= 0 && value < 900)	{		yPos = value;	}}function setXPos(value){	if (value >= 0 && value < 1000)	{		xPos = value;	}}function cookiebakken(){//window.alert("Cook");var exp = new Date();var oneYearFromNow = exp.getTime() + (365 *24 *60 *60 *1000)exp.setTime(oneYearFromNow)	ck = "ModellenZoek="	// veld 1	if (frm.Check_Word_0.checked)	{		ck += "Check_Word_0=1&" 		ck += "word0=" + frm.hoofdstuk[frm.hoofdstuk.selectedIndex].text + "&";	}	else	{		ck += "Check_Word_0=0&" 		ck += "word0="  + "&";	}			// veld 4	if (frm.Check_Word_1.checked)	{	ck += "Check_Word_1=1&" 	ck += "word1=" + frm.word1.value + "&";	}	else	{	ck += "Check_Word_1=0&" 	ck += "word1="  + "&";	}		// veld 2	if (frm.Check_Word_2.checked)	{	ck += "Check_Word_2=1&" 	ck += "word2=" + frm.word2.value + "&";	}	else	{	ck += "Check_Word_2=0&" 	ck += "word2="  + "&";	}	// veld 3	if (frm.Check_Word_3.checked)	{	ck += "Check_Word_3=1&" 	ck += "word3=" + frm.word3.value + "&";	}	else	{	ck += "Check_Word_3=0&" 	ck += "word3="  + "&";	}		// veld 4	if (frm.Check_Word_4.checked)	{	ck += "Check_Word_4=1&" 	ck += "word4=" + frm.word4.value + "&";	}	else	{	ck += "Check_Word_4=0&" 	ck += "word4="  + "&";	}		window.document.cookie=ck + ";expires=" + exp.toGMTString();	 	}function zoeken(){wsep=" AND ";	if (frm.Check_Word_0.checked)		{		w0="field Keyword contains ("+frm.hoofdstuk.options[frm.hoofdstuk.selectedIndex].text +")"}			else		{w0=""}	if (frm.Check_Word_1.checked)	{w1= "AND "+ frm.word1.value }			else	{w1=""}	if (frm.Check_Word_2.checked)		{w2=" " + frm.Wsep2.options[frm.Wsep2.selectedIndex].text+ " " + frm.word2.value }	else		{w2=""}		if (frm.Check_Word_3.checked)		{w3= " " + frm.Wsep3.options[frm.Wsep3.selectedIndex].text+ " " +frm.word3.value }			else	{w3=""}		if (frm.Check_Word_4.checked)	{w4=" " + frm.Wsep4.options[frm.Wsep4.selectedIndex].text+ " " +frm.word4.value}			else	{w4=""}	qstring = w0 + " " + w1 + " " + w2 +  " " +  w3 + " " + w4if (qstring.indexOf("AND ") == '1')		{		q3=qstring.substring('5',qstring.length);		q2="/modellen.nsf/modellen?searchview&query="+q3;		}	else		{ 		q2="/modellen.nsf/modellen?searchview&query="+qstring;		}//q2="/modellen.nsf/modellen?searchview&query="+qstring;window.open(q2,"modelboven");bk('2',q2,'Zoekresultaten','modelboven');}function zoeken_wetten(){wsep=" AND ";	if (frm.Check_Word_0.checked)		{		w0="field Keyword contains ("+frm.hoofdstuk.options[frm.hoofdstuk.selectedIndex].text +")"}			else		{w0=""}		if (frm.Check_Word_1.checked)	{w1= "AND "+ frm.word1.value }	//{w1= frm.word1.value }		else	{w1=""}		if (frm.Check_Word_2.checked)		{w2=" " + frm.Wsep2.options[frm.Wsep2.selectedIndex].text+ " " + frm.word2.value }	else		{w2=""}		if (frm.Check_Word_3.checked)		{w3= " " + frm.Wsep3.options[frm.Wsep3.selectedIndex].text+ " " +frm.word3.value }			else	{w3=""}		if (frm.Check_Word_4.checked)	{w4=" " + frm.Wsep4.options[frm.Wsep4.selectedIndex].text+ " " +frm.word4.value}			else	{w4=""}		qstring = w0 + " " + w1 + " " + w2 +  " " +  w3 + " " + w4		if (qstring.indexOf("AND ") == '1')		{		q3=qstring.substring('5',qstring.length);		q2="/wetten.nsf/v0200?searchview&query="+q3;		}	else		{ 		q2="/wetten.nsf/v0200?searchview&query="+qstring;		}		window.open(q2,"modelboven")	bk('2',q2,'Zoekresultaten','modelboven');}function frame_forcing(a,b){if (top.location.href == window.location.href)	{	// top.location.href = '/wetten.nsf/open?openframeset&Frame=fiscacontent&Src=' + window.location.href;	top.location.href = a + '&src=' + window.location.href;	}}// end function frame_forcingfunction uitgebreide_help(param){path = window.location.pathname.toLowerCase();var nsfPos = path.indexOf(".nsf");hulppath=path.substr(0, nsfPos);lastslashpos = hulppath.lastIndexOf("/");path = hulppath.substr(0, lastslashpos);a= path + '/menu2005.nsf/'+'qf0502?readform&pc=' + param;uitlegwindow = window.open(a,"NewWindow","location=false , titlebar=0,height=300,width=400,scrollbars")} // end uitgebreide_helpfunction isNumeric(inputVal){	inputStr=inputVal.toString()	for (var i=0;  i<inputStr.length;i++)		{		var oneChar = inputStr.charAt(i)		if (oneChar < "0" || oneChar > "9")			{return false}		}	return true  }function cookie_geavanceerd_2005()	{	var exp = new Date();	var oneYearFromNow = exp.getTime() + (365 *24 *60 *60 *1000)	exp.setTime(oneYearFromNow)	ck = "FiscanetZoek="	// veld 1	if (frm.Check_Word_1.checked)			{				ck += "Check_Word_1=1&" 		ck += "word1=" + frm.word1[frm.word1.selectedIndex].text + "&";		}		else		{		ck += "Check_Word_1=0&" 		ck += "word1="  + "&";		}		// veld 2	if (frm.Check_Word_2.checked)		{		ck += "Check_Word_2=1&" 		ck += "word2=" + frm.word2[frm.word2.selectedIndex].text + "&";		}	else		{		ck += "Check_Word_2=0&" 		ck += "word2="  + "&";		}		// veld 3	if (frm.Check_Word_3.checked)		{		ck += "Check_Word_3=1&" 		ck += "word3=" + frm.word3[frm.word3.selectedIndex].text + "&";		}	else		{		ck += "Check_Word_3=0&" 		ck += "word3="  + "&";		}		// veld 4	if (frm.Check_Word_4.checked)		{		ck += "Check_Word_4=1&" 		ck += "word4=" + frm.word4.value + "&";		}	else		{		ck += "Check_Word_4=0&" 		ck += "word4="  + "&";		}		// veld 5	if (frm.Check_Word_5.checked)		{		ck += "Check_Word_5=1&" 		ck += "word5=" + frm.word5.value + "&";		}	else		{		ck += "Check_Word_5=0&" 		ck += "word5="  + "&";		}	// veld 5	if (frm.Check_Word_6.checked)		{		ck += "Check_Word_6=1&" 		ck += "word6=" + frm.word6.value + "&";		}	else		{		ck += "Check_Word_6=0&" 		ck += "word6="  + "&";		}		// veld 7	if (frm.Check_Word_7.checked)		{		ck += "Check_Word_7=1&" 		ck += "word7=" + frm.word7.value + "&";		}	else		{		ck += "Check_Word_7=0&" 		ck += "word7="  + "&";		}	// veld 8	if (frm.Check_Word_8.checked)		{		ck += "Check_Word_8=1&" 		ck += "word8=" + frm.word8.value + "&";		}	else		{		ck += "Check_Word_8=0&" 		ck += "word8="  + "&";		}		if (frm.Check_Word_9.checked)		{		ck += "Check_Word_9=1&" 		ck += "word9=" + frm.word9.value + "&";		}	else		{		ck += "Check_Word_9=0&" 		ck += "word9="  + "&";		}		if (frm.Check_Word_10.checked)		{		ck += "Check_Word_10=1&" 		ck += "word10=" + frm.word10.value + "&";		}	else		{		ck += "Check_Word_10=0&" 		ck += "word10="  + "&";		}		if (frm.Check_Periodiek.checked)		{		ck += "Check_Periodiek=1&" 		for (index = 0; index<frm.Vindplaats_Jaargang.length;index++)		{		if (frm.Vindplaats_Jaargang.options[index].selected)			{			ck += "Vindplaats_Jaargang=" + frm.Vindplaats_Jaargang.options[index].text + "&";			}		}		ck += "Vindplaats_pagina=" + frm.Vindplaats_pagina.value + "&";		}	else		{		ck += "Check_Periodiek=0&" 		ck += "Vindplaats_Jaargang=" + "&";		ck += "Vindplaats_pagina=" +  "&";		}		if (frm.Check_Datum.checked)		{		ck += "Check_Datum=1&" 				ck += "BeforeAfter=" + frm.BeforeAfter[frm.BeforeAfter.selectedIndex].value + "&";		ck += "CreateModify=" + frm.CreateModify[frm.CreateModify.selectedIndex].value + "&";		ck += "QueryDate=" + frm.QueryDate.value + "&";		}	else		{		ck += "BeforeAfter=0&"		ck += "CreateModify=0&"		ck += "Check_Datum=0&" 		ck += "QueryDate=" + "&";				}	for (index = 0; index<frm.Sort.length;index++)		{		if (frm.Sort[index].checked)			{			// ck += "Sort=1&"; 			ck += "Sort=" + frm.Sort[index].value + "&";			}		}			// Datumveld				window.document.cookie=ck + ";expires=" + exp.toGMTString();	// window.alert(window.document.cookie);	}function DatumAlsTekst(datum){dag =  datum.substring(0,2).valueOf;jaar = datum.substring(6,10)maand = datum.substring(3,5)switch (maand){case '01':maand= 'januari';break;case '02':maand= 'februari';break;case '03':maand= 'maart';break;case '04':maand= 'april';break;case '05':maand= 'mei';break;case '06':maand= 'juni';break;case '07':maand= 'juli';break;case '08':maand= 'augustus';break;case '09':maand= 'september';break;case '10':maand= 'oktober';break;case '11':maand= 'november';break;case '12':maand= 'december';break;default : maand = "??";}return datum.substring(0,2) + ' ' + maand + ' ' + jaar}// Einde function datum als tekstfunction MaandAlsTekst(datum){// dag =  datum.substring(0,2).valueOf;jaar = datum.substring(0,4)maand = datum.substring(5,7)switch (maand){case '01':maand= 'januari';break;case '02':maand= 'februari';break;case '03':maand= 'maart';break;case '04':maand= 'april';break;case '05':maand= 'mei';break;case '06':maand= 'juni';break;case '07':maand= 'juli';break;case '08':maand= 'augustus';break;case '09':maand= 'september';break;case '10':maand= 'oktober';break;case '11':maand= 'november';break;case '12':maand= 'december';break;default : maand = "??";}return   maand + ' ' + jaar}// Einde function maand als tekstfunction Left(str, n){	if (n <= 0)	    return "";	else if (n > String(str).length)	    return str;	else	    return String(str).substring(0,n);}function right(str,n){return Right(str, n)}function left(str,n){return Left(str, n)}function Right(str, n){    if (n <= 0)       return "";    else if (n > String(str).length)       return str;    else {       var iLen = String(str).length;       return String(str).substring(iLen, iLen - n);    }}////  Cookie Functions -- "Night of the Living Cookie" Version (25-Jul-96)////  Written by:  Bill Dortch, hIdaho Design <bdortch@hidaho.com>//  The following functions are released to the public domain.////  This version takes a more aggressive approach to deleting//  cookies.  Previous versions set the expiration date to one//  millisecond prior to the current time; however, this method//  did not work in Netscape 2.02 (though it does in earlier and//  later versions), resulting in "zombie" cookies that would not//  die.  DeleteCookie now sets the expiration date to the earliest//  usable date (one second into 1970), and sets the cookie's value//  to null for good measure.////  Also, this version adds optional path and domain parameters to//  the DeleteCookie function.  If you specify a path and/or domain//  when creating (setting) a cookie**, you must specify the same//  path/domain when deleting it, or deletion will not occur.////  The FixCookieDate function must now be called explicitly to//  correct for the 2.x Mac date bug.  This function should be//  called *once* after a Date object is created and before it//  is passed (as an expiration date) to SetCookie.  Because the//  Mac date bug affects all dates, not just those passed to//  SetCookie, you might want to make it a habit to call//  FixCookieDate any time you create a new Date object:////    var theDate = new Date();//    FixCookieDate (theDate);////  Calling FixCookieDate has no effect on platforms other than//  the Mac, so there is no need to determine the user's platform//  prior to calling it.////  This version also incorporates several minor coding improvements.////  **Note that it is possible to set multiple cookies with the same//  name but different (nested) paths.  For example:////    SetCookie ("color","red",null,"/outer");//    SetCookie ("color","blue",null,"/outer/inner");////  However, GetCookie cannot distinguish between these and will return//  the first cookie that matches a given name.  It is therefore//  recommended that you *not* use the same name for cookies with//  different paths.  (Bear in mind that there is *always* a path//  associated with a cookie; if you don't explicitly specify one,//  the path of the setting document is used.)//  //  Revision History:////    "Toss Your Cookies" Version (22-Mar-96)//      - Added FixCookieDate() function to correct for Mac date bug////    "Second Helping" Version (21-Jan-96)//      - Added path, domain and secure parameters to SetCookie//      - Replaced home-rolled encode/decode functions with Netscape's//        new (then) escape and unescape functions////    "Free Cookies" Version (December 95)//////  For information on the significance of cookie parameters, //  and on cookies in general, please refer to the official cookie//  spec, at:////      http://www.netscape.com/newsref/std/cookie_spec.html    ////******************************************************************//// "Internal" function to return the decoded value of a cookie//function getCookieVal (offset) {  var endstr = document.cookie.indexOf (";", offset);if (endstr == -1)    endstr = document.cookie.length;  return unescape(document.cookie.substring(offset, endstr));}////  Function to correct for 2.x Mac date bug.  Call this function to//  fix a date object prior to passing it to SetCookie.//  IMPORTANT:  This function should only be called *once* for//  any given date object!  See example at the end of this document.//function FixCookieDate (date) {  var base = new Date(0);  var skew = base.getTime(); // dawn of (Unix) time - should be 0  if (skew > 0)  // Except on the Mac - ahead of its time    date.setTime (date.getTime() - skew);}////  Function to return the value of the cookie specified by "name".//    name - String object containing the cookie name.//    returns - String object containing the cookie value, or null if//      the cookie does not exist.//function GetCookie (name) {  var arg = name + "=";  var alen = arg.length;  var clen = document.cookie.length;  var i = 0;  while (i < clen) {    var j = i + alen;    if (document.cookie.substring(i, j) == arg)      return getCookieVal (j);    i = document.cookie.indexOf(" ", i) + 1;    if (i == 0) break;   }return null;}////  Function to create or update a cookie.//    name - String object containing the cookie name.//    value - String object containing the cookie value.  May contain//      any valid string characters.//    [expires] - Date object containing the expiration data of the cookie.  If//      omitted or null, expires the cookie at the end of the current session.//    [path] - String object indicating the path for which the cookie is valid.//      If omitted or null, uses the path of the calling document.//    [domain] - String object indicating the domain for which the cookie is//      valid. If omitted or null, uses the domain of the calling document.//    [secure] - Boolean (true/false) value indicating whether cookie transmission//      requires a secure channel (HTTPS).  ////  The first two parameters are required.  The others, if supplied, must//  be passed in the order listed above.  To omit an unused optional field,//  use null as a place holder.  For example, to call SetCookie using name,//  value and path, you would code:////      SetCookie ("myCookieName", "myCookieValue", null, "/");////  Note that trailing omitted parameters do not require a placeholder.////  To set a secure cookie for path "/myPath", that expires after the//  current session, you might code:////      SetCookie (myCookieVar, cookieValueVar, null, "/myPath", null, true);//function SetCookie (name,value,expires,path,domain,secure) {  document.cookie = name + "=" + escape (value) +    ((expires) ? "; expires=" + expires : "") +    ((path) ? "; path=" + path : "") +    ((domain) ? "; domain=" + domain : "") +    ((secure) ? "; secure" : "");}//  Function to delete a cookie. (Sets expiration date to start of epoch)//   name -   String object containing the cookie name//    path -   String object containing the path of the cookie to delete.  This MUST//             be the same as the path used to create the cookie, or null/omitted if//             no path was specified when creating the cookie.//    domain - String object containing the domain of the cookie to delete.  This MUST//             be the same as the domain used to create the cookie, or null/omitted if//             no domain was specified when creating the cookie.//function DeleteCookie (name,path,domain) {  if (GetCookie(name)) {    document.cookie = name + "=" +      ((path) ? "; path=" + path : "") +      ((domain) ? "; domain=" + domain  : "") +      "; expires=Thu, 01-Jan-70 00:00:01 GMT";  }}function change(id, newClass) {identity=document.getElementById(id);identity.className=newClass;}function getQueryVariable(variable) {  var query = window.location.search.substring(1).toLowerCase();  var vars = query.split("&");  for (var i=0;i<vars.length;i++) {    var pair = vars[i].split("=");    if (pair[0] == variable) {      return pair[1];    }  }   return false;}function showHelp(element) 	{		if (document.getElementById('showhelp') != null)		{		var path = window.location.pathname.toLowerCase();		var nsfPos = path.indexOf(".nsf");		path = path.substr(0, nsfPos + 4);		db = right(path,path.length-path.lastIndexOf('/')-1)		formulier = window.location.pathname.toLowerCase().substr(nsfPos+5)		fromWhere = db + "*"  + formulier + "*" + element.name		url = '/u4resource.nsf/vWebFormula/showHelp?OpenDocument&param=key1~' + fromWhere.toLowerCase()		loadXMLDocText(url,'showHelpD','x');		}	}	function showHelpD(tekst,optio){// alert(optio)document.getElementById('showhelp').innerHTML = "<span class = 'menu'>"+ tekst+ "</span>";}function uitgebreide_help(pagina){var path;path = "/menu2005.nsf/toon_tip?readform&PC=" + pagina;uitlegwindow = window.open(path,"NewWindow","location=false , titlebar=0,height=300,width=400,scrollbars")}function updateDiv() {    		 		 		 if (navigator.userAgent.indexOf("MSIE") > 0)    		 		 		 		 		 {        		 		 		 		 document.getElementById('scroll').style.height=document.body.clientHeight-155+'px';    		 		 		 		 		 }    		 		 		 		 else    		 		 		 		 		 {        		 		 		 		 document.getElementById('scroll').style.height=window.outerHeight-155+'px';    		 		 		 		 		 }		 		 		 }function zk2008(a){path = window.location.pathname.toLowerCase();var nsfPos = path.indexOf(".nsf");path = path.substr(0, nsfPos + 5);// var a=  frm.Zoeken.value;switch (getQueryVariable("pc").toLowerCase())	{    case 'cassatielijst' : 		{ 		var zs = path + 'v0110w?searchview&query='+ a + '&pc=cassatielijst&search=true';		window.open(zs,'_self');		break 		}		case 'datuminstantie' : 		{ 				var zs = path + 'fiscanetwvform?openform&datum=' + a  + '&pc=datuminstantie';		window.open(zs,'_self');		break 		}		case 'datumbrief' : 		{ 				var zs = path + 'fiscanetwvform?openform&datum=' + a  + '&pc=datumbrief';		window.open(zs,'_self');		break 		}	}} // einde functiefunction IsDate(dateStr) {//Modified by DO 12/31/2003var datePat = /^(\d{1,2})(-)(\d{1,2})(-)(\d{4})$/;var matchArray = dateStr.match(datePat); // is the format ok?var datestatus=true;datemsg="";if (matchArray == null || matchArray[1]==null) {datemsg="----- Geef de datum op als  dd/mm/yyyy " + "\n";return false;}else{if(matchArray[3]==null || matchArray[5]==null){datemsg="----- Geef de datum op als  dd/mm/yyyy " + "\n";return false;}}day = matchArray[1]; // p@rse date into variablesmonth = matchArray[3];year = matchArray[5];if (month < 1 || month > 12) { // check month rangedatemsg=datemsg + "----- De maand is iets tussen 1 en 12." + "\n";datestatus=false;}if (day < 1 || day > 31) {datemsg=datemsg + "----- De dagen  is iets als tussen 1 en 31." + "\n";datestatus=false;}if ((month==4 || month==6 || month==9 || month==11) && day==31) {datemsg=datemsg + "----- Deze maand " + month + " heeft geen 31 dagen !" + "\n";datestatus=false;}if (month == 2) { // check for february 29thvar isleap = (year % 4 == 0 && (year % 100 != 0 || year % 400 == 0));if (day > 29 || (day==29 && !isleap)) {datemsg=datemsg + "----- Februari " + year + " heeft geen " + day + " dagen !" + "\n";datestatus=false;}}return datestatus; }function breedtezetten (x) {	b = document.body.clientWidth;	u4b = d.getElementById('u4bar');	// window.alert(document.body.clientWidth)	u4b.width = document.body.clientWidth ;	d.getElementById('titelvraagbalk').style.width = b- 210 + 'px';	d.getElementById('infobaliebalk').style.width = b -210 + 'px';	var nVer = navigator.appVersion;	var nAgt = navigator.userAgent;	var browserName  = '';	var fullVersion  = 0; 	var majorVersion = 0;	// In Internet Explorer, the true version is after "MSIE" in userAgent	if ((verOffset = nAgt.indexOf ("MSIE")) != -1) {		browserName  = "IE";		fullVersion  = parseFloat (nAgt.substring (verOffset + 5));		majorVersion = parseInt (''+fullVersion);	}	if (browserName == "IE" & fullVersion == '6') {		change ('onderbalk', 'hidden');		d.getElementById ('menucontainer').style.bottom = 0 + '%';	} else {		d.getElementById('onderbalk').style.width = b + 'px';	}}function captureQueryString (val,index) { /* parameter ignored */ var strarray= new Array /* document.forms[0].refine_search.selectedIndex; */ strarray= val.split(" "); var result=""; if (index==0) { /* word only, literal (routine adds quotes */  for (var i=0; i<strarray.length; i++) {   if (strarray.length==1) {    result = document.forms[0].squery.value;   } else if (i==strarray.length-1) {    result = result+strarray[i];   } else {    result = result+strarray[i]+'+';   }  }  result='"'+result+'"'; } if (index==1) { /* words non literal (no quotes), separated by AND */  for (var i=0; i<strarray.length; i++) {   if (i==strarray.length-1) {    result = result+strarray[i]   } else if (result != "") {    result = result + strarray[i]+'+AND+';   } else {    result = strarray[i]+'+AND+';   }  } } if (index==2) { /* words non literal (no quotes), separated by OR */  for (var i=0; i<strarray.length; i++) {   if (i==strarray.length-1) {    result = result+strarray[i]   } else if (result != "") {    result = result + strarray[i]+'+OR+';   } else {    result = strarray[i]+'+OR+';   }  } } if (index==3) { /* literal domino syntax passthrough, replace spaces with + */  for (var i=0; i<strarray.length; i++) {   if (i==strarray.length-1) {    result = result+strarray[i]   } else if (result != "") {    result = result + strarray[i]+'+';   } else {    result = strarray[i]+'+';    }   } } if (index==4) { /* words non literal (no quotes), separated by AND if no and and or used  */  if ((document.forms[0].squery.value.toUpperCase().indexOf (" AND ") >=0)||   (document.forms[0].squery.value.toUpperCase().indexOf (" OR ") >= 0)){   for (var i=0; i<strarray.length; i++) {    if (i==strarray.length-1) {     result = result+strarray[i]    } else if (result != "") {     result = result + strarray[i]+'+';    } else {     result = strarray[i]+'+';    } //if   } // for  } else {   for (var i=0; i<strarray.length; i++) {    if (i==strarray.length-1) {     result = result+strarray[i]    } else if (result != "") {     result = result + strarray[i]+'+AND+';    } else {     result = strarray[i]+'+AND+';    }   }  } } return result;}function dosearch (searchFor) {url = 'zv?SearchView&Query=' + searchFor + '&searchorder=4'// alert(url)document.location = url /* location = 'Searchview?SearchView&Query=' + searchFor */}function enterPressed(e){var keycode;if (window.event) {keycode = window.event.keyCode;}else if (e) {keycode = e.which;}else {return true;}if (keycode == 13){ dosearch(captureQueryString(document.forms[0].squery.value,4)); return false; }else { return true; } }function kleurzettenmenu(actief){for (var i=1;i<9;i++) {sleutel = 'menuoptie' + iy = d.getElementById(sleutel)if (y != undefined){d.getElementById(sleutel).className="m-l1-false"  }}sleutel = 'menuoptie' + actiefy = d.getElementById(sleutel)if (y != undefined){d.getElementById(sleutel).className="m-l1-true"}}function toonHelp(veld){var tekstx="";tekstx = ajaxlookup('NOz92v','Helptekst*'  + veld,1);}function thelp(xmlViewData,index){	var viewRows = xmlViewData.getElementsByTagName("viewentry");	var r=0;	tekst ="";	for (var i = 0; i < viewRows.length; i++)	{		cel  = getViewRowValues(viewRows[i])[index];		tekst = getViewRowValues(viewRows[i])[index];			}	toon=document.getElementById("helpDisplay")     toon.innerHTML=tekst;	}function ajaxlookup(view,key,col){var tekst=""path = window.location.pathname.toLowerCase();var nsfPos = path.indexOf(".nsf");	path = path.substr(0, nsfPos + 5);	var rand= Math.floor(Math.random()*10000)+1000;	url = path + view +"?readviewentries&count=1&StartKey=" + key + "&rand=" +rand;		loadXMLDoc(url,'thelp',col);}function resultCheckD(veld){var frm2=window.document.forms[0];var rC = new Array();for (var i = 0; i < frm2.elements.length; i++) 		{  		if ( frm2.elements[i].type == "checkbox") 			{      		if ( frm2.elements[i].name == veld) 				{      			if (frm2.elements[i].checked)					{					rC.push( frm2.elements[i].value) ;     									}				}	    			}		}return rC;}function customDateString2(oneDate) { 	var theDay = Right("00" + oneDate.getDate(),2)		var theMonth =Right("00" + (oneDate.getMonth() + 1),2)	var theYear = oneDate.getYear()		if (theYear < 2000)	{ theYear += 1900}	return theDay + "-" + theMonth + "-" +  theYear	}function isInteger(s){	var i;    for (i = 0; i < s.length; i++){           // Check that current character is number.        var c = s.charAt(i);        if (((c < "0") || (c > "9"))) return false;    }    // All characters are numbers.    return true;}function stripCharsInBag(s, bag){	var i;    var returnString = "";    // Search through string's characters one by one.    // If character is not in bag, append to returnString.    for (i = 0; i < s.length; i++){           var c = s.charAt(i);        if (bag.indexOf(c) == -1) returnString += c;    }    return returnString;}function daysInFebruary (year){	// February has 29 days in any year evenly divisible by four,    // EXCEPT for centurial years which are not also divisible by 400.    return (((year % 4 == 0) && ( (!(year % 100 == 0)) || (year % 400 == 0))) ? 29 : 28 );}function DaysArray(n) {	for (var i = 1; i <= n; i++) {		this[i] = 31		if (i==4 || i==6 || i==9 || i==11) {this[i] = 30}		if (i==2) {this[i] = 29}   }    return this}function myFileBrowser (field_name, url, type, win) {var di=frm.DOCID.valuevar path = window.location.pathname.toLowerCase();var nsfPos = path.indexOf(".nsf");path = path.substr(0, nsfPos + 5);      if (type == 'image') {        tinyMCE.activeEditor.windowManager.open({                    file : path+ "(ImgBrowser)?OpenForm",             title : 'Picture browser',            width : 420,  // Your dimensions may differ - toy around with them!            height : 400,            resizable : "yes",            inline : "yes",  // This parameter only has an effect if you use the inlinepopups plugin!            close_previous : "no",            docId : di        }, {            window : win,            input : field_name        });        return false;    } else if (type == 'file') {        tinyMCE.activeEditor.windowManager.open({            file : path+ "/(AttachmentBrowser)?OpenForm", //&pk=" + frm.AttachmentNames.value,             title : 'Attachment browser',            width : 420,  // Your dimensions may differ - toy around with them!            height : 400,            resizable : "yes",            inline : "yes",  // This parameter only has an effect if you use the inlinepopups plugin!            close_previous : "no",            docId : di        }, {            window : win,            input : field_name        });        return false;    } else {        return false;    }}// Scripts voor de wettendatabasefunction zkWetten(a){path = window.location.pathname.toLowerCase();var nsfPos = path.indexOf(".nsf");path = path.substr(0, nsfPos + 5);// var kw=  frm.kwartaal.value; var kw =$.query.get('kwartaal');if (kw==''){kw = '2010_01'}var zs = path + 'wetten2008?searchview&query='+ a + '%20AND%20FIELD%20kwartaal%20CONTAINS('+ kw + ')'+ '&pc=ov_wetten08&kwartaal='+$("#choice").val();//window.alert(zs);window.open(zs,'_self');// bk('2',zs,'Zoekresultaten','wetten');}function kwNaarTekst(kw){return right(kw,1) + "e kwartaal " + left(kw,4) }// Eeinde scripts voor de wettendatabase// Scripts voor de modellendatabasefunction zkModellen(a){var zs = '/modellen.nsf/search?openform&zo='+ a +  '&pc=modellenzoek';window.open(zs,'_self');}function toonModellen(oObject){var target= "XMLAreaToonModellen"var text;var textArray = new Array()textArray.push("<table>")$('#' + target).html("Laden van de modellen ,,,, ........")    var viewentries = oObject.viewentry;    if (viewentries !=null)    {    var n_viewentries = viewentries.length;    for (var i = 0; i < n_viewentries; i++){     var unidAttr = viewentries[i]["@unid"];     var entrydata = viewentries[i].entrydata;     titel = returnJSONValue(entrydata[0])[0];     datum = returnJSONValue(entrydata[2])[0];     scribent= returnJSONValue(entrydata[1])[0];     auteur = returnJSONValue(entrydata[3])[0];     fn = returnJSONValue(entrydata[5])[0];     li = returnJSONValue(entrydata[6])[0];     if (scribent.toUpperCase()=="FISCANET" | scribent.toUpperCase()=="BELASTINGDIENST" )    {omo='onMouseOver="Tip(\'Auteur: ' + scribent + ', Versie: '+ datum  + '\',TITLE,\'Modellen Fiscanet\',BGCOLOR,\'#d48625\')"';} else     {omo='onMouseOver="Tip(\'Auteur: ' + scribent + ', Versie: '+ datum  + '\',TITLE,\'Modellen Fiscanet-accountancy/NOAB\',BGCOLOR,\'#d48625\')"';}        if (fn =="**")   {link = '<a '+ omo + ' href="#">' + titel + '(geen attachment aanwezig)</a>'}      else    {link = '<a ' + omo + ' href ="/modellen.nsf/0/' + unidAttr +'/$file/' +fn+ '?Openelement">' + titel +'</a>'}  if (li !=="**")   {link = '<a '+ omo + ' href="' +li  +'">' + titel + '</a>'}     userName = frm.userName.value;    if( auteur.toLowerCase().indexOf(userName.toLowerCase()) > -1 ) {voorloop = '<a href="/modellen.nsf/uploadmodel?openform&id=' + unidAttr + '&pc=modellen"><img src="/modellen.nsf/editor2.gif?openimageresource" border="0"></a>'} else  {voorloop = "&nbsp;"}    textArray.push("<tr><td>" + voorloop +"</td><td><b>" + link + "</td></tr>" )}    }        	textArray.push("</table>")    		tekst =  textArray.join('')   $('#' + target).html(tekst)    textArray=null   }// Einde scripts voor de modellendatabase