<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==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();
}
MM_reloadPage(true);

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_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
	if (obj.style) { obj=obj.style; v=(v=='show')?'block':(v=='hide')?'none':v; }
    obj.display=v; }
}

/* ANWB bereken route function */
/*
	Deze functie is geschreven door André Hoogendam, op 25 januari 2004.
	Op deze functie berust een copyright &copy;2004.

UITLEG >>
	Deze functie heeft alleen als invoer een input nodig, met een postcode als waarde.
	Voorbeeld functieaanroep:
		onclick="ANWBroutePlanner(document.forms['routeform'].pc1.value)"
	
*/
function ANWBroutePlanner(postcode) {
	theURL = 'http://anwb.tms.tensingsks.com/tms/scripts/tgigw.dll?countryid1=Nederland&country2=Nederland&seltype1=1&seltype2=1&pc2=3771+RL&straat1=&straat2=&plaats1=&plaats2=Barneveld&poicatid1=-1&poicatid2=-1&poiplaats1=&poiplaats2=&poi1=&poi2=&countryid2=0&plaatsid2=67320&CONFIG=ANWB&REDIRURL=http%3A%2F%2Fanwb.tms.tensingsks.com%2Ftms%2Fscripts%2Ftgigw.dll%3FAPP%3DTMS%26CMD%3DROUTE%26OUTPUT%3DHTML%26&CMD=RESOLVE2&ACTION=1&APP=resolve&CONTENT_TYPE=application%2Fx-www-form-urlencoded&RMODE=FAST&rmode=fast&pc1=';
	RedirectURL = theURL + postcode;
	if (postcode == '') {
		alert('Er is geen postcode ingevuld. Vult u deze alstublieft in.');
		return false;
	} else {
		openPopup(RedirectURL, 750, 550, 0, 0, 1, 1, 0, 1);
		return false;
	}
}
/* end ANWB bereken route function */

/*
BEGIN -- openPopup
---------------------------------------------------------------------------------------------------------------------------------
aanroepen van dit script gebeurt op de volgende manier:
href="normaleurl.html" onclick="return openPopup(this.href,800,600, 1, 1, 1, 1, 1, 1);"

openPopup(url, width, height, location, menubar, resizable, scrollbars, status, toolbar)
---------------------------------------------------------------------------------------------------------------------------------
*/
function openPopup(i, width, height, location, menubar, resizable, scrollbars, status, toolbar) {
	window.open(i, 'popup', 'width='+width+',height='+height+',location='+location+',menubar='+menubar+',resizable='+resizable+',scrollbars='+scrollbars+',status='+status+',toolbar='+toolbar);
	return false;
}
/*
END -- openPopup
*/

//-->