//Cursor als Hand
function zeiger_ein(ele){
ele.style.cursor="pointer";
}//Ende Funktion
function zeiger_aus(ele){
ele.style.cursor="default";
}//Ende Funktion


//Bearbeitungs-Fenster öffnen/schließen
function start_progressbar(id) {
document.getElementById("progress_"+id).style.visibility = "visible";
document.getElementById("progress_schatten").style.visibility = "visible";
}//Ende Funktion
function stop_progressbar(id) {
document.getElementById("progress_"+id).style.visibility = "hidden";
document.getElementById("progress_schatten").style.visibility = "hidden";
}//Ende Funktion

//Rückgabeuhrzeit wird auf anmietuhrzeit gestellt
function rueckuhrzeit_gleich_anuhrzeit() {	
var an = document.pkw_eingabe.TakeOverTime.selectedIndex;
document.pkw_eingabe.DropOffTime.selectedIndex = an;
}

//Meldung wenn Rückgabezeit nach Übernahmezeit
function meldung_uhrzeit() {	
if (document.pkw_eingabe.DropOffTime.selectedIndex >document.pkw_eingabe.TakeOverTime.selectedIndex)
	{document.getElementById("uhrzeit").style.visibility = "visible";
	document.getElementById("uhrzeit").style.display = "block";}
else
	{document.getElementById("uhrzeit").style.visibility = "hidden";
	document.getElementById("uhrzeit").style.display = "none";}
}

//Infotext abblenden
function delightInfobox() {	
document.getElementById("mietwagen_info").style.color = "#555555";
}

//Ausschluss von Downtownstationen an bestimmten Orten
function checkDowntownExist() {	
var pickupIndex=document.pkw_eingabe.PICKUP.selectedIndex;
var pickupOrt=document.pkw_eingabe.PICKUP.options[pickupIndex].value;
if(pickupOrt=="lax" || pickupOrt=="las" || pickupOrt=="atl" || pickupOrt=="den")
	{document.getElementById("radio_downtown_pickup").disabled=true;
	 document.getElementById("radio_airport_pickup").checked=true;
	}
else {document.getElementById("radio_downtown_pickup").disabled=false;}

var dropoffIndex=document.pkw_eingabe.DROPOFF.selectedIndex;
var dropoffOrt=document.pkw_eingabe.DROPOFF.options[dropoffIndex].value;
if(dropoffOrt=="lax" || dropoffOrt=="las" || dropoffOrt=="atl" || dropoffOrt=="den")
	{document.getElementById("radio_downtown_dropoff").disabled=true;
	 document.getElementById("radio_airport_dropoff").checked=true;
	}
else {document.getElementById("radio_downtown_dropoff").disabled=false;}
}

function showAdress(){
if(document.getElementById("lage_station").style.display == "block")
	{document.getElementById("lage_station").style.display = "none";
	document.getElementById("daten_box").style.height = "60px";}
else
	{document.getElementById("lage_station").style.display = "block";
	document.getElementById("daten_box").style.height = "120px";}
}

function showCondition(){
if(document.getElementById("condition_box").style.display == "block")
	{document.getElementById("condition_box").style.display = "none";}
else
	{document.getElementById("condition_box").style.display = "block";}

}

var compareGruppen=new Array();
compareGruppen["f1"]="Opel Corsa 1.2";
compareGruppen["g"]="Seat Leon 1.6";
compareGruppen["h"]="Opel Vectra 1.8";
compareGruppen["j1"]="Opel Signum 2.0 ";
compareGruppen["u"]="Mercedes-Benz E-Klasse 2.2";

function showCompareCar(gruppe){
if(compareGruppen[gruppe]!=undefined)
	{
	document.getElementById("compare_box_"+gruppe).style.display = "block";
	document.getElementById("compare_box_cartype_"+gruppe).innerHTML=compareGruppen[gruppe];
	}
}
function hideCompareCar(gruppe){
document.getElementById("compare_box_"+gruppe).style.display = "none";
document.getElementById("compare_box_cartype_"+gruppe).innerHTML="";
}
