window.onload = function () { setTimeout( "ossi_taxi_xchg_init()", 1 ); }


function ossi_taxi_xchg_init( )
{
	var groups = Array( "g1" );
	var elements = Array( "a", "b", "c", "d" );

	var ig = ie = 0;

	for( ig = 0; ig < 1; ig++ )
	{
		for( ie = 0; ie < 4; ie++ )
		{
			ossi_taxi_xchg_init_single( groups[ig], elements[ie] );
		}
	}
}

function ossi_taxi_xchg_init_single ( group, numbr )
{

	var thingi = document.getElementById( "ossi_taxi_xchg_" + group + "_" + numbr );
	if (thingi != null) {
		thingi.onclick = function( ) { ossi_taxi_xchg_change( group, numbr ); }
	}
	
}

function ossi_taxi_xchg_change( group, numbr )
{
    var ext_src;
    var ext_title;
    var ext_alt;

    gross = document.getElementById( "ossi_taxi_xchg_" + group + "_g" );
    klein = document.getElementById( "ossi_taxi_xchg_" + group + "_" + numbr );

    ext_src = gross.src;
    ext_alt = gross.alt;

    gross.src = klein.src.replace( /klein/, "gross" );
    gross.alt = klein.alt;

    klein.src = ext_src.replace( /gross/, "klein" );
    klein.alt = ext_alt;

    klein.height = 120;
    klein.width = 120;

    gross.height = 222;
    gross.width = 392;
}

// ANFRAGE BLAH //

function form_chek()
{

	if (document.formular.Datum.value=="")			//Datumabfrage
	{ alert ("Bitte geben Sie ein Datum ein");
	  document.formular.Datum.focus();
	  return false; 
	}
	
	if (document.formular.Uhrzeit.value=="")			//Zeitabfrage
	{ alert ("Bitte geben Sie eine Uhrzeit ein");
	  document.formular.Uhrzeit.focus();
	  return false; 
	}
	
	
	if (document.formular.Name.value=="")			//Abfrage Name
	{ alert ("Bitte geben Sie Ihren Namen ein");		
	  document.formular.Name.focus();			
	  return false; 
	}	
	
	if (document.formular.Telefonnummer.value=="")			//Telefonabfrage
	{ alert ("Bitte geben Sie Ihre Telefonnumer ein");
	  document.formular.Telefonnummer.focus();
	  return false; 
	}
	  
	if(!document.formular.datenschutz.checked) //Chekbox abfrage
	{ alert('Bitte akzeptieren Sie die Datenschutzhinweise!');
		document.formular.datenschutz.focus();
		return false;
	}
	
	

}