
function init($mode){
	switch ($mode){
		case 'flug':
			switchRadio($mode);
			showFlug();
			break;
		case 'mietwagen':
			switchRadio($mode);
			showMietwagen();
			break;
		case 'hotel':
			switchRadio($mode);
			showHotel();
			break;
		default:
			switchRadio('pauschal');
			showPauschal();
	}
}

function switchRadio($mode){
	var radios = ['pauschal', 'flug', 'hotel', 'mietwagen' ];

	for ($i=0;$i<radios.length;$i++){

		if(radios[$i] == $mode){
			document.getElementById('radio'+$mode).checked = true;
		}

	}
}

function mietform(){
	if(document.data_car.country.value=='-1'){
		document.getElementById('calertopt').style.color = 'red';
		document.getElementById('country').style.border = '2px solid red';
		return false;
	}else{
		return true;
	}
}

