function check() {

var f = document.getElementById('resLauncher');
var s = document.getElementById('selectHotel');

f.setAttribute("action",s.options[s.selectedIndex].value); 
f.setAttribute("method","POST");
f.setAttribute("target","_blank") ;  
//f.setAttribute("onSubmit",submitform()); 


var updateAdults = document.getElementById('adult');
var updateChilds = document.getElementById('child');


updateAdults.options.length = 0;
updateChilds.options.length = 0;


if (s.options[s.selectedIndex].value == "https://miramarevillas.reserve-online.net/") {

	for (i=1; i<=6; i++) { 
		updateAdults.options[updateAdults.options.length] = new Option(i, i, false, false);
	}
	for (i=0; i<=7; i++) { 
		updateChilds.options[updateChilds.options.length] = new Option(i, i, false, false);
	}
}
if (s.options[s.selectedIndex].value == "https://mare.reserve-online.net/") {
	for (i=1; i<=4; i++) { 
		updateAdults.options[updateAdults.options.length] = new Option(i, i, false, false);
	}
	for (i=0; i<=4; i++) { 
		updateChilds.options[updateChilds.options.length] = new Option(i, i, false, false);
	}
}
if (s.options[s.selectedIndex].value == "https://miramareresort.reserve-online.net/") {
	for (i=1; i<=4; i++) { 
		updateAdults.options[updateAdults.options.length] = new Option(i, i, false, false);
	}
	for (i=0; i<=3; i++) { 
		updateChilds.options[updateChilds.options.length] = new Option(i, i, false, false);
	}
}

}