function set_yellow(divid){
	document.getElementById(divid).style.backgroundColor='#f6f827';
}

function set_transparent(divid){
	document.getElementById(divid).style.backgroundColor='transparent';
}

function checkform(lang){
	if(lang=='e'){
		text = 'please fill in the required* fields';
		text2 = 'you did not chose a accommodation to make a reservation. Please correct!';
		}
	else if(lang == 'd'){
		text = 'Bitte fuellen Sie alle obligatorischen* Felder aus';
		text2 = 'Sie haben keine korrekte Angabe bezueglich der Unterkunftswahl gemacht.\nBitte korrigieren!';
		}
	else if(lang=='f'){
		text = 'Veuillez remplir les champs obligatoires*';
		text2 = 'Corrigez la choix de \'herbergement!';
		}
	// auf name und email fragen
	if(document.forms[0].name.value=='' || document.forms[0].mail.value==''){
		alert(text);
		return false;
		}
	// auf unterkunftsreservation checken (1 auswahl)
	else if(document.forms[0].loc.selectedIndex!=0){
		
		if (document.forms[0].loc.options[document.forms[0].loc.selectedIndex].value==''){
			alert(text2);
			return false;	
			}

		}
	else return true;
}
