// JavaScript Document

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function HideNavi(navi)
{
document.getElementById(navi).style.visibility = 'hidden';
}

function ShowNavi2(navi)
{
 document.getElementById(navi).style.visibility = 'visible';
}


function chBG(navi)
{
 document.getElementById(navi).style.backgroundImage = 'url(fileadmin/template/images/subnavi_sommer_mo.gif)';
 document.getElementById(navi).style.color = '#F6E1A4';
}

function chBGb(navi)
{
 document.getElementById(navi).style.backgroundImage = 'url(fileadmin/template/images/subnavi_sommer_no.gif)';
 document.getElementById(navi).style.color = '#405221';
}

function chBG2(navi)
{
 document.getElementById(navi).style.backgroundImage = 'url(fileadmin/template/images/subnavi_sommer_mo.gif)';
 document.getElementById(navi).style.color = '#F6E1A4';
}

function chBGb2(navi)
{
 document.getElementById(navi).style.backgroundImage = 'url(fileadmin/template/images/subnavi_sommer_no.gif)';
 document.getElementById(navi).style.color = '#405221';
}

function ch_city(){
		city = document.form1.start.value;
		
		verlink = document.form1.action.value = "http://maps.google.de/maps?f=d&hl=de&geocode=&saddr="+ city +"&daddr=sonnenalpe+nassfeld+18";
		open(verlink);
}

function change_navilayer()
{
 document.getElementById('navilayer').style.overflow = 'hidden';
}

function change_navilayer2()
{
 document.getElementById('navilayer').style.overflow = 'auto';
}
function chkFormular () {
  if (document.vorreservierung.v_name.value == "") {
    alert("Bitte Ihren Namen eingeben!");
    document.Formular.v_name.focus();
    return false;
  }
  if (document.vorreservierung.v_mail.value == "") {
    alert("Bitte Ihre E-Mail-Adresse eingeben!");
    document.Formular.v_mail.focus();
    return false;
  }
  if (document.vorreservierung.v_tele.value == "") {
    alert("Bitte Ihre Telefonnummer eingeben!");
    document.Formular.v_tele.focus();
    return false;
  }
  if (document.vorreservierung.v_mail.value.indexOf("@") == -1) {
    alert("Keine E-Mail-Adresse!");
    document.Formular.v_mail.focus();
    return false;
  }

}



