function check_submit() {
	
	$("#zoekwoord").keypress(function (e) {
      	if (e.which == 13) {
        	
     		document.location=url+'hotels/'+tv+'/zoek/'+document.getElementById('zoekwoord').value;
		}
	});
}


function fill() {
	var land = $('#hotelland').val();;
	
	


	$.get(url+"includes/regios.php", { land: land, tv: tv },fillxml);

	
	
}

function fillxml(data) {
	
	var regels = data.getElementsByTagName('regel');
	
	var type = data.firstChild.getAttribute("type") ;
	
	document.getElementById('hotelprovincie').options.length=0;
	
	for(i=0;i<regels.length;i++) {
		
		var id = regels[i].childNodes[0].firstChild.nodeValue;	
		
		var waarde = regels[i].childNodes[1].firstChild.nodeValue;

		if(id=='x') {
			id='';	
		}
		
		document.getElementById('hotelprovincie').options[i] = new Option(waarde,id);
	

	}
	
	//document.getElementById('select'+type).selectedIndex=i;
	
	
	

}

