function extrainfo(id) {var db = document.forms[0].databasename.value;dialog = window.open("/"+db+"/pitsstop-info?OpenForm&id="+id, 'id', 'width=600 height=210 top=250 left=120 resizable status=no resizable scrollbars=no');//dialog.moveTo(myWidth, myHeight);dialog.focus();}function setFormFocus(){}var divrow=new Array(50);var divstatus=new Array(50);var x = 108;for (t=1;t<51;t++)	{divrow[t]=x; x=x+33;divstatus[t]="off"}function handje(src) {src.style.cursor = 'hand';}function Verplaatsmenu(el, x, y, a, b, c, s) {  var elo=el,f="",m=false,d=""; x=parseInt(x);y=parseInt(y); if (parseInt(s)>0) {  setTimeout("Verplaatsmenu(\""+elo+"\",\""+x+"\",\""+y+"\",\""+a+"\",\""+b+"\",\""+c+"\",\""+0+"\")", s);        return; } if (el.indexOf("?")>0) {p=el.split("?");f="parent.frames['"+p[1]+"'].";el=p[0];} if (document.all) {g=eval(f+"document.all['"+el+"']");d=g.style;        if(!d.left) {d.left=(!g.currentStyle)?0:g.currentStyle.left;}  if(!d.top) {d.top=(!g.currentStyle)?0:g.currentStyle.top;} } else if (document.getElementById) {g=eval(f+"document.getElementById('"+el+"')");d=g.style;  if(!d.left) {d.left=(!document.defaultView)?0:document.defaultView.getComputedStyle(g,"").getPropertyValue("left");}        if(!d.top) {d.top=(!document.defaultView)?0:document.defaultView.getComputedStyle(g,"").getPropertyValue("top");} } else {d=eval(Objeto(elo)); } var xx=(parseInt(d.left))?parseInt(d.left):0; var yy=(parseInt(d.top))?parseInt(d.top):0; if(c==1) {x+=xx;y+=yy;m=true;c=0;} else if (c==2) {m=false;clearTimeout(d.pmovv);} else {var i=parseInt(a);  if (eval(d.moved)){clearTimeout(d.pmovv);}  if (xx<x){xx+=i;m=true;if(xx>x){xx=x;}}  if (xx>x){xx-=i;m=true;if(xx<x){xx=x;}}  if (yy<y){yy+=i;m=true;if(yy>y){yy=y;}}  if (yy>y){yy-=i;m=true;if(yy<y){yy=y;}} } if (m) {d.left=xx;d.top=yy;d.moved=true;  d.pmovv=setTimeout("Verplaatsmenu(\""+elo+"\",\""+x+"\",\""+y+"\",\""+a+"\",\""+b+"\",\""+c+"\",\""+0+"\")", b);  } else {d.moved=false;}}function showmenu(div){	if (divstatus[div]=="off"){		divstatus[div]="on";		Verplaatsmenu('Menu'+div,-27,divrow,40,40,0,0);}}function hidemenu(div){	if (divstatus[div]=="on"){		divstatus[div]="off";		Verplaatsmenu('Menu'+div,-182,divrow,40,40,0,0);}}function wissel(div){	if (divstatus[div] == "on"){		hidemenu(div)		}	else {		for(t=1;t<(aantalmenudivs+1);t++){			hidemenu(t)		}		showmenu(div)			}}function act(imgName) {        if (document.images)        document[imgName].src = eval(imgName + '2.src')}function inact(imgName) {        if (document.images)        document[imgName].src = eval(imgName + '.src')}function changebutton(code,layout,status){        if (document.images){        var imgName = 'button_'+code;        imgSrc = eval('button'+layout+'_'+status+'.src');        document[imgName].src = imgSrc;}}function setCookieinseconds(NameOfCookie, value, expireseconds) {	var ExpireDate = new Date ();	ExpireDate.setTime(ExpireDate.getTime() + (expireseconds * 1000));	document.cookie = NameOfCookie + "=" + escape(value) + 	((expireseconds == null) ? "" : "; expires=" + ExpireDate.toGMTString());};function setCookie(NameOfCookie, value, expiredays) {	var ExpireDate = new Date ();	ExpireDate.setTime(ExpireDate.getTime() + (expiredays * 24 * 3600 * 1000));	document.cookie = NameOfCookie + "=" + escape(value) + 	((expiredays == null) ? "" : "; expires=" + ExpireDate.toGMTString());};function getCookie(NameOfCookie){	if (document.cookie.length > 0) {              		begin = document.cookie.indexOf(NameOfCookie+"=");       		if (begin != -1) {           			begin += NameOfCookie.length+1;       			end = document.cookie.indexOf(";", begin);			if (end == -1) end = document.cookie.length;			return unescape(document.cookie.substring(begin, end));		};	};	return null;};var productcodes = new Array();var aantallen = new Array();pdc = getCookie("productcodes");ant = getCookie("aantallen");if (pdc !=null) {productcodes = pdc.split(",")}if (ant !=null) {	tempaantallen = ant.split(",")	for (teller=0; teller<tempaantallen.length;teller++) {		aantallen[teller] = parseInt(tempaantallen[teller])		}	}function voegproducttoe(productcode, aantal,op) {alert(productcodes);alert(aantallen);	nietgevonden = true;	for (teller=0 ;  teller<productcodes.length; teller++){		if (productcodes[teller]==productcode) {			nietgevonden = false;				switch(op)				{				case "+" :						aantallen[teller] = aantallen[teller]+aantal;  						break    				case "-" :						aantallen[teller] = aantallen[teller]-aantal;  						break    				case "=":  						aantallen[teller] = aantal;						break				default:				}			}		}	if (nietgevonden) {		productcodes[aantallen.length] = productcode;		if (op=="-") {aantallen[aantallen.length] = -aantal;}		else{ aantallen[aantallen.length] = aantal; }				}	setCookie("productcodes",productcodes,10)	setCookie("aantallen",aantallen,10)}function mijnwinkelwagentje () {url = "/"+webdb+"/mijnwinkelwagentje?openform"location.href= url;}function login(){		var currenturl = location.href 		if (currenturl.indexOf("nsf/login?openform") > -1) {			start = currenturl.indexOf("&refpage=")			currenturl = currenturl.substr(start+9,1000);		}		var url = "/"+webdb +"/login?openform&refpage="+currenturl		location.href= url;	}function logout(){	setCookie("lidnummer","nok",-1);	setCookie("login","nok",-1);	setCookie("forumnick","nok",-1);		var url = "/"+webdb +"/";	location.href= url;	}function email() {	location.href = "/"+webdb+"/email?openform&"+location.href;	}function bestel(code,aantal,hoe){	newref =  "/"+webdb+"/bestelproduct?openagent"	newref += "&productcode="+code	newref += "&aantal="+aantal	newref += "&operand="+hoe	newref += "&bestelcode="+document.forms[0].bestelcode.value	location.href= newref}// CONVERTS *ALL* CHARACTERS INTO ESCAPED VERSIONS.function escapeTxt(os){	var ns='';	var t;	var chr='';	var cc='';	var tn='';	for(i=0;i<256;i++){		tn=i.toString(16);		if(tn.length<2)tn="0"+tn;		cc+=tn;		chr+=unescape('%'+tn);	}	cc=cc.toUpperCase();	os.replace(String.fromCharCode(13)+'',"%13");	for(q=0;q<os.length;q++){		t=os.substr(q,1);		for(i=0;i<chr.length;i++){			if(t==chr.substr(i,1)){				t=t.replace(chr.substr(i,1),"%"+cc.substr(i*2,2));				i=chr.length;		}}		ns+=t;	}	return ns;}function TopogidsUpdates(by,order) {	db = document.forms[0].databasename.value;	topo = document.forms[0].restrictto.value;	url = "/"+db+"/TopogidsenUpdatesBy"+by+order+"?openview&restricttocategory="+topo	location.href= url;}function geenlid(){alert('Om de inhoud te kunnen bekijken dient \nu lid te zijn van Grote Routepaden.\nGelieve in te loggen')}function zoekinarchief() {	db = document.forms[0].databasename.value;	zoekterm = document.forms[0].zoekarchief.value; 		msg = "Ongeldige zoekterm";	if (zoekterm == "Geef uw zoekterm") { 	alert(msg); return	}	if (zoekterm == "") { 	alert(msg); return	}	url = '/'+db +'/zoekinarchief?searchview&query='+zoekterm	location.href= url;}function zoeken() {	db = document.forms[0].databasename.value;	zoekterm = document.forms[0].zoekterm.value; 	msg = "Ongeldige zoekterm";	if (zoekterm == "Geef uw zoekterm") { 	alert(msg); return	}	if (zoekterm == "") { 	alert(msg); return	}		url = '/'+db +'/zoeken?searchview&query='+zoekterm	location.href= url;}function zoekinforum() {	db = document.forms[0].databasename.value;	zoekterm = document.forms[0].zoekinforum.value; 	msg = "Ongeldige zoekterm";	if (zoekterm == "Geef uw zoekterm") { 	alert(msg); return	}	if (zoekterm == "") { 	alert(msg); return	}	url = '/'+db +'/zoekinforumberichten?searchview&query=[tekst] contains '+zoekterm			location.href= url;}function zendlink(){	url =  "/"+document.forms[0].databasename.value+"/zendlink?openform"	options = 'nostatus,scrollbars=no, width=350, height=300'	dialog = window.open(url,'zendlink',options);	dialog.focus();}function processform(){	var usr = document.forms[0].username.value;	var pwd = document.forms[0].Password.value;	if (usr =="") {		alert('Gelieve uw lidnummer in te vullen a.u.b.');		return	}	if (pwd =="") {		alert('Gelieve uw paswoord in te vullen a.u.b.');		return	}	xml_chkpwd(usr,pwd)	}function Editgalerij(unid) {	url =  '/' + document.forms[0].databasename.value + '/galerij-setup?openform&key=' + unid;	options = 'nostatus,scrollbars=no, width=600, height=260'	dialog = window.open(url,unid,options);	dialog.focus();}function addToList(sUNID) {   unids = document.forms[0].MiscField1.value;  offset = unids.indexOf(sUNID);  if (offset == -1)  // id zit er nog niet in  document.forms[0].MiscField1.value = document.forms[0].MiscField1.value + sUNID + "~";   else  // als deze functie opgeroepen wordt en het id zit er al in -> checkbox uitgezet -> id verwijderen;  document.forms[0].MiscField1.value = unids.replace(sUNID + "~","");}function addToFavorites() {    var urlAddress = "http://www.groteroutepaden.be";    var pageName = "Groteroutepaden / LFRoutes";    if (window.external) {       window.external.AddFavorite(urlAddress,pageName)    } else    { alert("Sorry! Your browser doesn't support this function."); } } function printen() {	url = document.forms[0].printurl.value;	opties = 'width=620 height=500 resizable nostatus resizable scrollbars'		dialog = window.open(url,"",opties);	dialog.focus();}				   //toggle medewerkersinfo function toggleList(containerId){	if(document.getElementById(containerId).style.display == "none"){		if (modernBrowser){			new Effect.Grow(containerId,{duration:1.0,direction: 'top-left',opacityTransition:Effect.Transitions.linear});		}else{			// if old browsser doesn't support sriptacolus			document.getElementById(containerId).style.display = '';		}	}else{		if (modernBrowser){			new Effect.Shrink(containerId,{duration:1.0,direction: 'top-left',opacityTransition:Effect.Transitions.linear});		}else{			// if old browsser doesn't support sriptacolus			document.getElementById(containerId).style.display = 'none';		}	}} function slideFacts(){	if (modernBrowser){		try{			new Effect.SlideDown('factchartwrapper');		}catch(e){}	}else{		document.getElementById('factchartwrapper').style.display = '';	}	}function showFlashMap(){	document.getElementById('foDiv').innerHTML='<p></p>';		var ftimer = setTimeout("paintFlashObject()",1500);}	function paintFlashObject(){	var fo = new FlashObject("/html/flash/flashmap_navigatie.swf", "kaart", "580", "260", "7", "#ffffff");	fo.write("foDiv");}var modernBrowser = true/* check for modern browser */if (window.XMLHttpRequest){	} else if (window.ActiveXObject) {	} else {		modernBrowser = false;}/* Flash Object script *//** * FlashObject v1.3c: Flash detection and embed - http://blog.deconcept.com/flashobject/ * * FlashObject is (c) 2006 Geoff Stearns and is released under the MIT License: * http://www.opensource.org/licenses/mit-license.php * */if(typeof com=="undefined"){var com=new Object();}if(typeof com.deconcept=="undefined"){com.deconcept=new Object();}if(typeof com.deconcept.util=="undefined"){com.deconcept.util=new Object();}if(typeof com.deconcept.FlashObjectUtil=="undefined"){com.deconcept.FlashObjectUtil=new Object();}com.deconcept.FlashObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a,_b){if(!document.createElement||!document.getElementById){return;}this.DETECT_KEY=_b?_b:"detectflash";this.skipDetect=com.deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();this.useExpressInstall=_7;if(_1){this.setAttribute("swf",_1);}if(id){this.setAttribute("id",id);}if(w){this.setAttribute("width",w);}if(h){this.setAttribute("height",h);}if(_5){this.setAttribute("version",new com.deconcept.PlayerVersion(_5.toString().split(".")));}this.installedVer=com.deconcept.FlashObjectUtil.getPlayerVersion(this.getAttribute("version"),_7);if(c){this.addParam("bgcolor",c);}var q=_8?_8:"high";this.addParam("quality",q);var _d=(_9)?_9:window.location;this.setAttribute("xiRedirectUrl",_d);this.setAttribute("redirectUrl","");if(_a){this.setAttribute("redirectUrl",_a);}};com.deconcept.FlashObject.prototype={setAttribute:function(_e,_f){this.attributes[_e]=_f;},getAttribute:function(_10){return this.attributes[_10];},addParam:function(_11,_12){this.params[_11]=_12;},getParams:function(){return this.params;},addVariable:function(_13,_14){this.variables[_13]=_14;},getVariable:function(_15){return this.variables[_15];},getVariables:function(){return this.variables;},createParamTag:function(n,v){var p=document.createElement("param");p.setAttribute("name",n);p.setAttribute("value",v);return p;},getVariablePairs:function(){var _19=new Array();var key;var _1b=this.getVariables();for(key in _1b){_19.push(key+"="+_1b[key]);}return _19;},getFlashHTML:function(){var _1c="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");}_1c="<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\"";_1c+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";var _1d=this.getParams();for(var key in _1d){_1c+=[key]+"=\""+_1d[key]+"\" ";}var _1f=this.getVariablePairs().join("&");if(_1f.length>0){_1c+="flashvars=\""+_1f+"\"";}_1c+="/>";}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");}_1c="<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\">";_1c+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";var _20=this.getParams();for(var key in _20){_1c+="<param name=\""+key+"\" value=\""+_20[key]+"\" />";}var _22=this.getVariablePairs().join("&");if(_22.length>0){_1c+="<param name=\"flashvars\" value=\""+_22+"\" />";}_1c+="</object>";}return _1c;},write:function(_23){if(this.useExpressInstall){var _24=new com.deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(_24)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title);}}else{this.setAttribute("doExpressInstall",false);}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var n=(typeof _23=="string")?document.getElementById(_23):_23;n.innerHTML=this.getFlashHTML();}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"));}}}};com.deconcept.FlashObjectUtil.getPlayerVersion=function(_26,_27){var _28=new com.deconcept.PlayerVersion(0,0,0);if(navigator.plugins&&navigator.mimeTypes.length){var x=navigator.plugins["Shockwave Flash"];if(x&&x.description){_28=new com.deconcept.PlayerVersion(x.description.replace(/([a-z]|[A-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));}}else{try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");for(var i=3;axo!=null;i++){axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+i);_28=new com.deconcept.PlayerVersion([i,0,0]);}}catch(e){}if(_26&&_28.major>_26.major){return _28;}if(!_26||((_26.minor!=0||_26.rev!=0)&&_28.major==_26.major)||_28.major!=6||_27){try{_28=new com.deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));}catch(e){}}}return _28;};com.deconcept.PlayerVersion=function(_2c){this.major=parseInt(_2c[0])||0;this.minor=parseInt(_2c[1])||0;this.rev=parseInt(_2c[2])||0;};com.deconcept.PlayerVersion.prototype.versionIsValid=function(fv){if(this.major<fv.major){return false;}if(this.major>fv.major){return true;}if(this.minor<fv.minor){return false;}if(this.minor>fv.minor){return true;}if(this.rev<fv.rev){return false;}return true;};com.deconcept.util={getRequestParameter:function(_2e){var q=document.location.search||document.location.href.hash;if(q){var _30=q.indexOf(_2e+"=");var _31=(q.indexOf("&",_30)>-1)?q.indexOf("&",_30):q.length;if(q.length>1&&_30>-1){return q.substring(q.indexOf("=",_30)+1,_31);}}return "";},removeChildren:function(n){while(n.hasChildNodes()){n.removeChild(n.firstChild);}}};if(Array.prototype.push==null){Array.prototype.push=function(_33){this[this.length]=_33;return this.length;};}var getQueryParamValue=com.deconcept.util.getRequestParameter;var FlashObject=com.deconcept.FlashObject;/** * DHTML date validation script. Courtesy of SmartWebby.com (http://www.smartwebby.com/dhtml/) */// Declaring valid date character, minimum year and maximum yearvar dtCh= "/";var minYear=1900;var maxYear=2100;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 isDate(dtStr){	var daysInMonth = DaysArray(12)	var pos1=dtStr.indexOf(dtCh)	var pos2=dtStr.indexOf(dtCh,pos1+1)	var strDay=dtStr.substring(0,pos1)	var strMonth=dtStr.substring(pos1+1,pos2)	var strYear=dtStr.substring(pos2+1)	strYr=strYear	if (strDay.charAt(0)=="0" && strDay.length>1) strDay=strDay.substring(1)	if (strMonth.charAt(0)=="0" && strMonth.length>1) strMonth=strMonth.substring(1)	for (var i = 1; i <= 3; i++) {		if (strYr.charAt(0)=="0" && strYr.length>1) strYr=strYr.substring(1)	}	month=parseInt(strMonth)	day=parseInt(strDay)	year=parseInt(strYr)	if (pos1==-1 || pos2==-1){		return false	}	if (strMonth.length<1 || month<1 || month>12){		return false	}	if (strDay.length<1 || day<1 || day>31 || (month==2 && day>daysInFebruary(year)) || day > daysInMonth[month]){		return false	}	if (strYear.length != 4 || year==0 || year<minYear || year>maxYear){		return false	}	if (dtStr.indexOf(dtCh,pos2+1)!=-1 || isInteger(stripCharsInBag(dtStr, dtCh))==false){		return false	}return true}	function validate_email(field,alerttxt){		waarde = eval("document.forms[0]."+field+".value")	if (waarde=="") return true	{		apos=waarde.indexOf("@")		dotpos=waarde.lastIndexOf(".")		if (apos<1||dotpos-apos<2) 		  {alert(alerttxt); eval("document.forms[0]."+field+".focus()"); return false}		else {return true}	}}function exportwinkel2excel() {var db = document.forms[0].databasename.value;dialog = window.open("/"+db+"/exportwinkel?OpenForm?OpenForm", 'export2excel', 'width=320 height=300 resizable status=no resizable scrollbars="no"');dialog.moveTo(100, 100);dialog.focus();}function zetwinkelview() {	setCookie("winkelview", location.href, 120) }function  ganaarwinkel() {	def = "/"+document.forms[0].databasename.value+"/winkel?openview&restricttocategory=gr&count=2000"	laatstgebruikt = getCookie("winkelview") 		location.href=(laatstgebruikt==null)?def:laatstgebruikt}function naardewinkel() {ganaarwinkel()}