//Statusbar 
window.status = " EL QUSEIR CHARTA";


//warn if not filled
function frmSIGNVal(theForm) {
var Lang = theForm.name;

  if (Lang == "frmSIGN_ENG") {
    if (theForm.FIRSTNAME.value == "") {
      alert("Please insert your first name.");
      theForm.FIRSTNAME.focus();
      return (false);
    }
    if (theForm.NAME.value == "") {
      alert("Please insert your last name.");
      theForm.NAME.focus();
      return (false);
    }
    if (theForm.GEB_DAY.value == "") {
      alert("Insert your date of birth in format dd.mm.yyyy\ne.g. 01.01.1999.\nYour date of birth will not be shown.");
      theForm.GEB_DAY.focus();
      return (false);
    }
    if (theForm.GEB_MON.value == "") {
      alert("Insert your date of birth in format dd.mm.yyyy\ne.g. 01.01.1999.\nYour date of birth will not be shown.");
      theForm.GEB_MON.focus();
      return (false);
    }
    if (theForm.GEB_YEAR.value == "") {
      alert("Insert your date of birth in format dd.mm.yyyy\ne.g. 01.01.1999.\nYour date of birth will not be shown.");
      theForm.GEB_YEAR.focus();
      return (false);
    }
    if (theForm.CITY.value == "") {
      alert("Please insert your city and zip code.");
      theForm.CITY.focus();
      return (false);
    }
    if (theForm.COUNTRY.value == "") {
      alert("Please insert your country.");
      theForm.COUNTRY.focus();
      return (false);
    }
    if (theForm.EMAIL.value == "") {
      alert("Please insert your e-mail address.");
      theForm.EMAIL.focus();
      return (false);
    }
    return (true);
  }
  else if (Lang == "frmSIGN_GER") {
    if (theForm.FIRSTNAME.value == "") {
      alert("Bitte Vorname eingeben.");
      theForm.FIRSTNAME.focus();
      return (false);
    }
    if (theForm.NAME.value == "") {
      alert("Bitte Nachname eingeben.");
      theForm.NAME.focus();
      return (false);
    }
    if (theForm.GEB_DAY.value == "") {
      alert("Bitte geben Sie Ihr Geburtsdatum im Format TT.MM.JJJJ ein,\nz.B. 01.01.1999.\nIhr Geburtsdatum wird nicht öffentlich angezeigt.");
      theForm.GEB_DAY.focus();
      return (false);
    }
    if (theForm.GEB_MON.value == "") {
      alert("Bitte geben Sie Ihr Geburtsdatum im Format TT.MM.JJJJ ein,\nz.B. 01.01.1999.\nIhr Geburtsdatum wird nicht öffentlich angezeigt.");
      theForm.GEB_MON.focus();
      return (false);
    }
    if (theForm.GEB_YEAR.value == "") {
      alert("Bitte geben Sie Ihr Geburtsdatum im Format TT.MM.JJJJ ein,\nz.B. 01.01.1999.\nIhr Geburtsdatum wird nicht öffentlich angezeigt.");
      theForm.GEB_YEAR.focus();
      return (false);
    }
    if (theForm.CITY.value == "") {
      alert("Bitte geben Sie den Ort und die PLZ ein.");
      theForm.CITY.focus();
      return (false);
    }
    if (theForm.COUNTRY.value == "") {
      alert("Bitte Land eingeben.");
      theForm.COUNTRY.focus();
      return (false);
    }
    if (theForm.EMAIL.value == "") {
      alert("Bitte noch die Emailadresse eingeben.");
      theForm.EMAIL.focus();
      return (false);
    }
    return (true);
  }
}


//warn if not filled
function frmKontaktVal(theForm) {
  if (theForm.MESSAGE.value == "") {
    alert("Es wurde keine Nachricht eingegeben...");
    theForm.MESSAGE.focus();
    return (false);
  }
  if (theForm.FIRSTNAME.value == "") {
    alert("Bitte Vorname eingeben.");
    theForm.FIRSTNAME.focus();
    return (false);
  }
  if (theForm.NAME.value == "") {
    alert("Bitte Nachname eingeben.");
    theForm.NAME.focus();
    return (false);
  }
  if (theForm.CITY.value == "") {
    alert("Bitte Ort und PLZ eingeben.");
    theForm.CITY.focus();
    return (false);
  }
  if (theForm.COUNTRY.value == "") {
    alert("Bitte Land eingeben.");
    theForm.COUNTRY.focus();
    return (false);
  }
  if (theForm.EMAIL.value == "") {
    alert("Bitte noch die Emailadresse eingeben.");
    theForm.EMAIL.focus();
    return (false);
  }
  return (true);
}


function VIEWFields(lang) {
  var lang;

  if (lang == "ENG") {
    if (document.frmSIGN_ENG.ORGA_MEMBER.value != "") {
      if (document.frmSIGN_ENG.ORGA_MEMBER.value == "Individual") {
        document.getElementById("OTHER").style.display = "none";
      }
      else {
        document.getElementById("OTHER").style.display = "inline";
      }
    }
  }
  else if (lang == "GER") {
    if (document.frmSIGN_GER.ORGA_MEMBER.value != "") {
      if (document.frmSIGN_GER.ORGA_MEMBER.value == "Privatperson") {
        document.getElementById("OTHER").style.display = "none";
      }
      else {
        document.getElementById("OTHER").style.display = "inline";
      }
    }
  }
}
