<!--var xmlHttp;function periode(periode_begin){ xmlHttp=GetXmlHttpObject()	if (xmlHttp==null) {		alert ("Uw browser ondersteunt geen HTTP Request");		return	}	var url="_webapp/beschikbaarheid.php";	url=url+"?type=periode";	url=url+"&periode_begin="+periode_begin;	url=url+"&sid="+Math.random();	xmlHttp.onreadystatechange=stateChangedPeriode;	xmlHttp.open("GET",url,true);	xmlHttp.send(null);}function stateChangedPeriode() { 	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete") { 		document.getElementById("periode").innerHTML=xmlHttp.responseText;	}}function accomodatie(bestemming){ xmlHttp=GetXmlHttpObject()	if (xmlHttp==null) {		alert ("Uw browser ondersteunt geen HTTP Request");		return;	}	var url="_webapp/beschikbaarheid.php";	url=url+"?type=bestemming";	url=url+"&bestemming="+bestemming;	url=url+"&sid="+Math.random();	xmlHttp.onreadystatechange=stateChangedPlaats;	xmlHttp.open("GET",url,true);	xmlHttp.send(null);}function stateChangedPlaats() { 	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete") { 		document.getElementById("accomodatie").innerHTML=xmlHttp.responseText; 	}}function beschikbaarheid(accomodatie_id,datum_begin,datum_eind,kamers,bestemming,type,prijsklasse) { xmlHttp=GetXmlHttpObject()	if (xmlHttp==null) {		alert ("Uw browser ondersteunt geen HTTP Request");		return;	}	var url="_webapp/beschikbaarheid.php";	url=url+"?type=beschikbaarheid";	url=url+"&accomodatie_id="+accomodatie_id;	url=url+"&datum_begin="+datum_begin;	url=url+"&datum_eind="+datum_eind;	url=url+"&kamers="+kamers;	url=url+"&bestemming="+bestemming;	url=url+"&accomodatie_type="+type;	url=url+"&prijsklasse="+prijsklasse;	url=url+"&sid="+Math.random();	xmlHttp.onreadystatechange=stateChangedAccomodatie_id;	xmlHttp.open("GET",url,true);	xmlHttp.send(null);}function stateChangedAccomodatie_id() { 	if(xmlHttp.readyState==1) {		document.getElementById("beschikbaarheid").innerHTML="Bezig met controleren op beschikbaarheid..."; 	}	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete") { 		document.getElementById("beschikbaarheid").innerHTML=xmlHttp.responseText; 	}}function zoek(accomodatie_id,datum_begin,datum_eind,bedden,bestemming,type,prijsklasse,mitem) { xmlHttp=GetXmlHttpObject()	if (xmlHttp==null) {		alert ("Uw browser ondersteunt geen HTTP Request");		return;	}	var url="_webapp/beschikbaarheid_tabel.php";	url=url+"?accomodatie_id="+accomodatie_id;	url=url+"&datum_begin="+datum_begin;	url=url+"&datum_eind="+datum_eind;	url=url+"&bedden="+bedden;	url=url+"&bestemming="+bestemming;	url=url+"&accomodatie_type="+type;	url=url+"&prijsklasse="+prijsklasse;	url=url+"&mitem="+mitem;	url=url+"&sid="+Math.random();	xmlHttp.onreadystatechange=stateChangedZoek;	xmlHttp.open("GET",url,true);	xmlHttp.send(null);}function stateChangedZoek() { 	if(xmlHttp.readyState==1) {		document.getElementById("beschikbaarheid_tabel").innerHTML="<img src=\"_webapp/_images/ajax-loader.gif\" alt=\"Bezig met controleren op beschikbaarheid...\" width=\"32\" height=\"32\" /> Bezig met controleren op beschikbaarheid..."; 	}	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete") { 		document.getElementById("beschikbaarheid_tabel").innerHTML=xmlHttp.responseText; 	}}function zoekAccommodatie(accomodatie_id,datum_begin,datum_eind,bedden,mitem) { xmlHttp=GetXmlHttpObject()	if (xmlHttp==null) {		alert ("Uw browser ondersteunt geen HTTP Request");		return;	}	var url="_webapp/beschikbaarheid_accommodatie.php";	url=url+"?accomodatie_id="+accomodatie_id;	url=url+"&datum_begin="+datum_begin;	url=url+"&datum_eind="+datum_eind;	url=url+"&bedden="+bedden;	url=url+"&mitem="+mitem;	url=url+"&sid="+Math.random();	xmlHttp.onreadystatechange=stateChangedZoekAccommodatie;	xmlHttp.open("GET",url,true);	xmlHttp.send(null);}function stateChangedZoekAccommodatie() { 	if(xmlHttp.readyState==1) {		document.getElementById("beschikbaarheid_tabel").innerHTML="Bezig met controleren op beschikbaarheid..."; 	}	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete") { 		document.getElementById("beschikbaarheid_tabel").innerHTML=xmlHttp.responseText; 	}}function stateChangedSkidienst() { 	if(xmlHttp.readyState==1) {		document.getElementById("skidienst_tabel").innerHTML="Bezig met controleren op skidiensten..."; 	}	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete") { 		document.getElementById("skidienst_tabel").innerHTML=xmlHttp.responseText; 	}}function GetXmlHttpObject() {	var xmlHttp=null;	try {		// Firefox, Opera 8.0+, Safari		xmlHttp=new XMLHttpRequest();	}	catch (e) {		//Internet Explorer		try {		xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");		}		catch (e) {			xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");		}	}	return xmlHttp;}function foundBy(waarde) {	if(waarde == '') {		 document.getElementById('gevondendoor2').value='Nvt.';		 document.getElementById('gevondendoor2').disabled=true;	} else {		var foundByValues = Array();		foundByValues[0] = '';		foundByValues[1] = '0';foundByValues[2] = '1';foundByValues[3] = '1';foundByValues[4] = '1';		if(foundByValues[waarde] == 0) { //geen extra invulveld + 'Nvt.'			document.getElementById('gevondendoor2').value='Nvt.';			document.getElementById('gevondendoor2').disabled=true;		}		if(foundByValues[waarde] == 1) { //extra invulveld + waarde = leeg			document.getElementById('gevondendoor2').value='';			document.getElementById('gevondendoor2').disabled=false;			document.getElementById('gevondendoor2').focus();		}	}}function BoekNu(mitem,accomodatie_id, periode_begin, periode_eind) {  if (window.opener) {	window.opener.location.href='webapp_index.php?mitem='+mitem+'&accomodatie_id='+accomodatie_id+'&periode_begin='+periode_begin+'&periode_eind='+periode_eind;	window.close();  } else {    window.location.href='webapp_index.php?mitem='+mitem+'&accomodatie_id='+accomodatie_id+'&periode_begin='+periode_begin+'&periode_eind='+periode_eind;  }}// -->