//nav
ns=false;
if(navigator.appName =="Netscape"){
ns=true;
}
overlink=0;
function show_untern(){

  if (ns==true) {
    document.getElementById('swap').style.visibility = "visible";
    }
    else {
     //document.all.swap.filters.blendTrans.Apply();
      document.all.swap.style.visibility = "visible";
    //document.all.swap.filters.blendTrans.Play();  
    }
}
function hide_untern(){
if(overlink==0){
  if (ns==true) {
    document.getElementById('swap').style.visibility = "hidden";
    }
    else {
     //document.all.swap.filters.blendTrans.Apply();
     document.all.swap.style.visibility = "hidden";
    //document.all.swap.filters.blendTrans.Play();  
    }

}
//window.clearTimeout(t)

}
//____________________________________________________________________




//____________________________________________________________________

function hide_unternn(param){
//t=setTimeout(param,100);		
}
	
function set_overlink(){
overlink=1;	
}

function clear_overlink(){
overlink=0;	
}
//___________________________________________________________________

function rollover(Bildname,Bildobjekt) {
 window.document.images[Bildname].src = Bildobjekt.src;
 }









// popup
function openWin(url,fenster,atribut) {


 var f1=window.open(url,fenster,atribut);
  //x = (screen.width -1);

	//y = (screen.height - 350)/2;

	x=550

	y=212

 f1.moveTo(x,y);
	if(window.focus)f1.focus();	

}


//google maps______________________________________________________
function load() {
var blase="";



      if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById("map"));
		var point = new GLatLng(48.40806677581197, 15.598976612091064);
		map.setCenter(point, 16);
		map.addControl(new GSmallMapControl());
		
		var marker = new GMarker(point);		
		GEvent.addListener(marker, "click", function() {	
        marker.openInfoWindowHtml(blase); });
		map.addOverlay(marker);
		
/*test zweiter marker

var point2 = new GPoint(48.408066, 15.59897661);
var html2 = "test"
var freischwimmer = new GMarker(point2);
GEvent.addListener(freischwimmer, "click", function()
 {freischwimmer.openInfoWindowHtml(html2)});
map.addOverlay(freischwimmer);*/		
        }		
      }







//formular___________________________________________________________

function test(){
	
var ok=true;

if(!document.form1.AGB.checked){
alert("Bitte lesen und akzeptieren Sie unsere AGB's!");
ok=false;
}

else if(document.form1.name.value == " Name:*" ||  
document.form1.birth.value == " Geburtsdatum:*" || 
   document.form1.Straße.value == " Straße:*" ||  
   document.form1.plz.value == " Plz/Stadt:*" ||
   document.form1.tel.value == " Telefon:*" || 
   document.form1.email.value == " Email:*" ||
   
     
   document.form1.name_1.value == " Name:*" ||  
document.form1.birth_1.value == " Geburtsdatum:*" || 
   document.form1.Straße_1.value == " Straße:*" ||  
   document.form1.plz_1.value == " Plz/Stadt:*" || 
   
   document.form1.name_3.value == " Name:*" ||  
document.form1.birth_3.value == " Geburtsdatum:*" || 
   document.form1.Straße_3.value == " Straße:*" ||  
   document.form1.plz_3.value == " Plz/Stadt:*" || 
   
   document.form1.name_4.value == " Name:*" ||  
document.form1.birth_4.value == " Geburtsdatum:*" || 
   document.form1.Straße_4.value == " Straße:*" ||  
   document.form1.plz_4.value == " Plz/Stadt:*" || 
   
   document.form1.name_5.value == " Name:*" ||  
document.form1.birth_5.value == " Geburtsdatum:*" || 
   document.form1.Straße_5.value == " Straße:*" ||  
   document.form1.plz_5.value == " Plz/Stadt:*" || 
   
   document.form1.name_6.value == " Name:*" ||  
document.form1.birth_6.value == " Geburtsdatum:*" || 
   document.form1.Straße_6.value == " Straße:*" ||  
   document.form1.plz_6.value == " Plz/Stadt:*" || 
   
   document.form1.name_7.value == " Name:*" ||  
document.form1.birth_7.value == " Geburtsdatum:*" || 
   document.form1.Straße_7.value == " Straße:*" ||  
   document.form1.plz_7.value == " Plz/Stadt:*" 
   )
{
alert("Bitte alle mit * gekennzeichneten Felder ausfüllen!");
ok=false;
} 
else if(document.form1.email.value.indexOf("@")<3) {
alert("Bitte überprüfen Sie Ihre Email-Adresse!");
ok=false;
}
return ok;
}


function test_jump(){	
var ok_jump=true;
//alert(document.forms[0].howmuch.selectedIndex);

if(document.forms[0].howmuch.selectedIndex == 0){
alert("Bitte wählen Sie die Anzahl der zu versichernden Personen aus!");
ok_jump=false;
}
return ok_jump;
}







function del_name(){

if(document.form1.name.value==" Name:*"){
document.form1.name.value="";
}
}
function reset_name(){
if(document.form1.name.value==""){
document.form1.name.value=" Name:*";
}
}
function del_birth(){

if(document.form1.birth.value==" Geburtsdatum:*"){
document.form1.birth.value="";
}
}
function reset_birth(){
if(document.form1.birth.value==""){
document.form1.birth.value=" Geburtsdatum:*";
}
}
function del_Straße(){
if(document.form1.Straße.value==" Straße:*"){
document.form1.Straße.value="";
}
}
function reset_Straße(){
if(document.form1.Straße.value==""){
document.form1.Straße.value=" Straße:*";
}
}

function del_plz(){

if(document.form1.plz.value==" Plz/Stadt:*"){
document.form1.plz.value="";
}
}
function reset_plz(){
if(document.form1.plz.value==""){
document.form1.plz.value=" Plz/Stadt:*";
}
}
//---------------------------------------------------------
function del_name_1(){

if(document.form1.name_1.value==" Name:*"){
document.form1.name_1.value="";
}
}
function reset_name_1(){
if(document.form1.name_1.value==""){
document.form1.name_1.value=" Name:*";
}
}
function del_birth_1(){

if(document.form1.birth_1.value==" Geburtsdatum:*"){
document.form1.birth_1.value="";
}
}
function reset_birth_1(){
if(document.form1.birth_1.value==""){
document.form1.birth_1.value=" Geburtsdatum:*";
}
}
function del_Straße_1(){
if(document.form1.Straße_1.value==" Straße:*"){
document.form1.Straße_1.value="";
}
}
function reset_Straße_1(){
if(document.form1.Straße_1.value==""){
document.form1.Straße_1.value=" Straße:*";
}
}

function del_plz_1(){

if(document.form1.plz_1.value==" Plz/Stadt:*"){
document.form1.plz_1.value="";
}
}
function reset_plz_1(){
if(document.form1.plz_1.value==""){
document.form1.plz_1.value=" Plz/Stadt:*";
}
}
//_____________________________________________________________
function del_name_3(){

if(document.form1.name_3.value==" Name:*"){
document.form1.name_3.value="";
}
}
function reset_name_3(){
if(document.form1.name_3.value==""){
document.form1.name_3.value=" Name:*";
}
}
function del_birth_3(){

if(document.form1.birth_3.value==" Geburtsdatum:*"){
document.form1.birth_3.value="";
}
}
function reset_birth_3(){
if(document.form1.birth_3.value==""){
document.form1.birth_3.value=" Geburtsdatum:*";
}
}
function del_Straße_3(){
if(document.form1.Straße_3.value==" Straße:*"){
document.form1.Straße_3.value="";
}
}
function reset_Straße_3(){
if(document.form1.Straße_3.value==""){
document.form1.Straße_3.value=" Straße:*";
}
}

function del_plz_3(){

if(document.form1.plz_3.value==" Plz/Stadt:*"){
document.form1.plz_3.value="";
}
}
function reset_plz_3(){
if(document.form1.plz_3.value==""){
document.form1.plz_3.value=" Plz/Stadt:*";
}
}
//__________________________________________________________
function del_name_4(){

if(document.form1.name_4.value==" Name:*"){
document.form1.name_4.value="";
}
}
function reset_name_4(){
if(document.form1.name_4.value==""){
document.form1.name_4.value=" Name:*";
}
}
function del_birth_4(){

if(document.form1.birth_4.value==" Geburtsdatum:*"){
document.form1.birth_4.value="";
}
}
function reset_birth_4(){
if(document.form1.birth_4.value==""){
document.form1.birth_4.value=" Geburtsdatum:*";
}
}
function del_Straße_4(){
if(document.form1.Straße_4.value==" Straße:*"){
document.form1.Straße_4.value="";
}
}
function reset_Straße_4(){
if(document.form1.Straße_4.value==""){
document.form1.Straße_4.value=" Straße:*";
}
}

function del_plz_4(){

if(document.form1.plz_4.value==" Plz/Stadt:*"){
document.form1.plz_4.value="";
}
}
function reset_plz_4(){
if(document.form1.plz_4.value==""){
document.form1.plz_4.value=" Plz/Stadt:*";
}
}
//____________________________________________________________
function del_name_5(){

if(document.form1.name_5.value==" Name:*"){
document.form1.name_5.value="";
}
}
function reset_name_5(){
if(document.form1.name_5.value==""){
document.form1.name_5.value=" Name:*";
}
}
function del_birth_5(){

if(document.form1.birth_5.value==" Geburtsdatum:*"){
document.form1.birth_5.value="";
}
}
function reset_birth_5(){
if(document.form1.birth_5.value==""){
document.form1.birth_5.value=" Geburtsdatum:*";
}
}
function del_Straße_5(){
if(document.form1.Straße_5.value==" Straße:*"){
document.form1.Straße_5.value="";
}
}
function reset_Straße_5(){
if(document.form1.Straße_5.value==""){
document.form1.Straße_5.value=" Straße:*";
}
}

function del_plz_5(){

if(document.form1.plz_5.value==" Plz/Stadt:*"){
document.form1.plz_5.value="";
}
}
function reset_plz_5(){
if(document.form1.plz_5.value==""){
document.form1.plz_5.value=" Plz/Stadt:*";
}
}
//-------------------------------------------------------------
 function del_name_6(){

if(document.form1.name_6.value==" Name:*"){
document.form1.name_6.value="";
}
}
function reset_name_6(){
if(document.form1.name_6.value==""){
document.form1.name_6.value=" Name:*";
}
}
function del_birth_6(){

if(document.form1.birth_6.value==" Geburtsdatum:*"){
document.form1.birth_6.value="";
}
}
function reset_birth_6(){
if(document.form1.birth_6.value==""){
document.form1.birth_6.value=" Geburtsdatum:*";
}
}
function del_Straße_6(){
if(document.form1.Straße_6.value==" Straße:*"){
document.form1.Straße_6.value="";
}
}
function reset_Straße_6(){
if(document.form1.Straße_6.value==""){
document.form1.Straße_6.value=" Straße:*";
}
}

function del_plz_6(){

if(document.form1.plz_6.value==" Plz/Stadt:*"){
document.form1.plz_6.value="";
}
}
function reset_plz_6(){
if(document.form1.plz_6.value==""){
document.form1.plz_6.value=" Plz/Stadt:*";
}
}//----------------------------------------------------------
		  function del_name_7(){

if(document.form1.name_7.value==" Name:*"){
document.form1.name_7.value="";
}
}
function reset_name_7(){
if(document.form1.name_7.value==""){
document.form1.name_7.value=" Name:*";
}
}
function del_birth_7(){

if(document.form1.birth_7.value==" Geburtsdatum:*"){
document.form1.birth_7.value="";
}
}
function reset_birth_7(){
if(document.form1.birth_7.value==""){
document.form1.birth_7.value=" Geburtsdatum:*";
}
}
function del_Straße_7(){
if(document.form1.Straße_7.value==" Straße:*"){
document.form1.Straße_7.value="";
}
}
function reset_Straße_7(){
if(document.form1.Straße_7.value==""){
document.form1.Straße_7.value=" Straße:*";
}
}

function del_plz_7(){

if(document.form1.plz_7.value==" Plz/Stadt:*"){
document.form1.plz_7.value="";
}
}
function reset_plz_7(){
if(document.form1.plz_7.value==""){
document.form1.plz_7.value=" Plz/Stadt:*";
}
}
//-----------------------------------------------------------
function del_tel(){

if(document.form1.tel.value==" Telefon:*"){
document.form1.tel.value="";
}
}
function reset_tel(){
if(document.form1.tel.value==""){
document.form1.tel.value=" Telefon:*";
}
}

function del_email(){

if(document.form1.email.value==" Email:*"){
document.form1.email.value="";
}
}
function reset_email(){
if(document.form1.email.value==""){
document.form1.email.value=" Email:*";
}
}

function del_subject(){
//alert("sepp");
if(document.form1.subject.value==" Betreff:"){
document.form1.subject.value="";
}
}
function reset_subject(){
if(document.form1.subject.value==""){
document.form1.subject.value=" Betreff:";
}
}

function del_message(){
//alert("sepp");
if(document.form1.message.value==" Nachricht:")  {
document.form1.message.value="";
}
}

function reset_message(){
if(document.form1.message.value==""){
document.form1.message.value=" Nachricht:";
}
}	






			

