function validateBabysitter ( $array )
{
   var i = 0;
   var msg = '';
   for (i;i<$array.length;++i)
   {
     xname = $array[i]
     if (xname == 'Geschlecht') {msg += 'Bitte Geschlecht auswählen.\n';}
     if (xname == 'Vorname') {msg += 'Bitte Vorname ausfüllen.\n';}
     if (xname == 'Nachname') {msg += 'Bitte Nachname ausfüllen.\n';}
     if (xname == 'Strasse') {msg += 'Bitte Straße ausfüllen.\n';}
     if (xname == 'Hausnummer') {msg += 'Bitte HNr. ausfüllen.\n';}
     if (xname == 'PLZ') {msg += 'Bitte PLZ ausfüllen.\n';}
     if (xname == 'Ort') {msg += 'Bitte Ort ausfüllen.\n';}
     if (xname == 'Bundesland') {msg += 'Bitte Bundesland auswählen.\n';}
     if (xname == 'Telefon') {msg += 'Bitte Telefon ausfüllen.\n';}
     if (xname == 'EMail') {msg += 'Bitte E-Mail ausfüllen.\n';}

     if (xname == 'Kurs_Babyfit_Bei') {msg += 'Bitte "Babyfit-Kurs bei" auswählen.\n';}
     if (xname == 'Kurs_Babyfit_Datum_date_d') {msg += 'Bitte "Babyfit-Kurs am: Tag" auswählen.\n';}
     if (xname == 'Kurs_Babyfit_Datum_date_m') {msg += 'Bitte "Babyfit-Kurs am: Monat" auswählen.\n';}
     if (xname == 'Kurs_Babyfit_Datum_date_y') {msg += 'Bitte "Babyfit-Kurs am: Jahr" auswählen.\n';}
     if (xname == 'Kurs_Babyfit_Ort') {msg += 'Bitte "Babyfit-Kurs Ort" ausfüllen.\n';}
     if (xname == 'Kurs_Babyfit_Bundesland') {msg += 'Bitte "Babyfit-Kurs Bundesland" auswählen.\n';}

     if (xname == 'Kurs_ErsteHilfe_Stunden') {msg += 'Bitte "Erste-Hilfe-Kurs Stunden" ausfüllen.\n';}
     if (xname == 'Kurs_ErsteHilfe_Bei') {msg += 'Bitte "Erste-Hilfe-Kurs bei" auswählen.\n';}
     if (xname == 'Kurs_ErsteHilfe_Datum_date_d') {msg += 'Bitte "Erste-Hilfe-Kurs am: Tag" auswählen.\n';}
     if (xname == 'Kurs_ErsteHilfe_Datum_date_m') {msg += 'Bitte "Erste-Hilfe-Kurs am: Monat" auswählen.\n';}
     if (xname == 'Kurs_ErsteHilfe_Datum_date_y') {msg += 'Bitte "Erste-Hilfe-Kurs am: Jahr" auswählen.\n';}
     if (xname == 'Kurs_ErsteHilfe_Ort') {msg += 'Bitte "Erste-Hilfe-Kurs Ort" ausfüllen.\n';}
     if (xname == 'Kurs_ErsteHilfe_Bundesland') {msg += 'Bitte "Erste-Hilfe-Kurs Bundesland" auswählen.\n';}

     if (xname == 'Kurs_Kindernotfall_Stunden') {msg += 'Bitte "Kindernotfall-Kurs Stunden" ausfüllen.\n';}
     if (xname == 'Kurs_Kindernotfall_Bei') {msg += 'Bitte "Kindernotfall-Kurs bei" auswählen.\n';}
     if (xname == 'Kurs_Kindernotfall_Datum_date_d') {msg += 'Bitte "Kindernotfall-Kurs am: Tag" auswählen.\n';}
     if (xname == 'Kurs_Kindernotfall_Datum_date_m') {msg += 'Bitte "Kindernotfall-Kurs am: Monat" auswählen.\n';}
     if (xname == 'Kurs_Kindernotfall_Datum_date_y') {msg += 'Bitte "Kindernotfall-Kurs am: Jahr" auswählen.\n';}
     if (xname == 'Kurs_Kindernotfall_Ort') {msg += 'Bitte "Kindernotfall-Kurs Ort" ausfüllen.\n';}
     if (xname == 'Kurs_Kindernotfall_Bundesland') {msg += 'Bitte "Kindernotfall-Kurs Bundesland" auswählen.\n';}
   }
   alert(msg);
}

function validateGespraechsprotokoll ( $array )
{
   var i = 0;
   var msg = '';
   for (i;i<$array.length;++i)
   {
     xname = $array[i];
     if (xname == 'Datum') {msg += 'Bitte Datum ausfüllen.\n';}
     if (xname == 'Deinet4fRufnummer') {msg += 'Bitte Deine t4f-Rufnummer ausfüllen.\n';}
     if (xname == 'GeschlechtdesAnrufers') {msg += 'Bitte Geschlecht des Anrufers auswählen.\n';}
     if (xname == 'AlterdesAnrufers') {msg += 'Bitte Alter des Anrufers auswählen.\n';}
     if (xname == 'Thema') {msg += 'Bitte Thema ausfüllen.\n';}
     if (xname == 'Kurzbeschreibung') {msg += 'Bitte Kurzbeschreibung ausfüllen.\n';}
     if (xname == 'DauerinMinuten') {msg += 'Bitte Dauer in Minuten ausfüllen.\n';}
     if (xname == 'WeiterleitungzuRataufDraht') {msg += 'Bitte Weiterleitung zu "Rat auf Draht" auswählen.\n';}
     if (xname == 'Nichtmelder') {msg += 'Bitte Nichtmelder auswählen.\n';}
     if (xname == 'Spassanrufer') {msg += 'Bitte Spaßanrufer auswählen.\n';}
     if (xname == 'Sonstiges') {msg += 'Bitte Sonstiges ausfüllen.\n';}
   }
   alert(msg);
}

function addXfrmRecipient(formular, emailfield) {
    var email = document.getElementById(emailfield).value;
    document.getElementById(formular).xfrm_recipient.value = document.getElementById(formular).xfrm_recipient0.value + ';' + email;
}

function validationBestellungWeihnachten2008Unternehmen( $array )
{
   var i = 0;
   var msg = '';
   for (i;i<$array.length;++i)
   {
     xname = $array[i]
     if (xname == 'MotivWeihnachtskarte4stlBNr') {msg += 'Bitte Motiv Weihnachtskarte (4-stellige Bestellnummer) ausfüllen.\n';}
     if (xname == 'MotivWeihnachtsbrief3stlBNr') {msg += 'Bitte Motiv Weihnachtsbrief (3-stellige Bestellnummer) ausfüllen.\n';}
     if (xname == 'Anzahl') {msg += 'Bitte Anzahl ausfüllen.\n';}
     if (xname == 'EindruckFirmenlogo') {msg += 'Bitte Eindruck Firmenlogo auswählen.\n';}
     if (xname == 'FarbwahlEindruckFirmenlogo') {msg += 'Bitte Farbwahl Eindruck Firmenlogo auswählen.\n';}
     if (xname == 'EindruckText') {msg += 'Bitte Eindruck Text auswählen.\n';}
     if (xname == 'Textnummer') {msg += 'Bitte Textnummer ausfüllen.\n';}
     if (xname == 'Schriftnummer') {msg += 'Bitte Schriftnummer ausfüllen.\n';}
     if (xname == 'FarbwahlEindruckText') {msg += 'Bitte Farbwahl Eindruck Text auswählen.\n';}
     if (xname == 'EindruckHandschriftlicheSignatur') {msg += 'Bitte Eindruck handschriftliche Signatur auswählen.\n';}
     if (xname == 'FarbwahlHandschriftlicheSignatur') {msg += 'Bitte Farbwahl handschriftliche Signatur auswählen.\n';}
     if (xname == 'Firma') {msg += 'Bitte Firma ausfüllen.\n';}
     if (xname == 'StrasseHNr') {msg += 'Bitte Strasse / HNr. ausfüllen.\n';}
     if (xname == 'PLZ') {msg += 'Bitte PLZ ausfüllen.\n';}
     if (xname == 'Ort') {msg += 'Bitte Ort ausfüllen.\n';}
     if (xname == 'Ansprechpartner') {msg += 'Bitte Ansprechpartner ausfüllen.\n';}
     if (xname == 'Tel') {msg += 'Bitte Tel. ausfüllen.\n';}
     if (xname == 'Fax') {msg += 'Bitte Fax ausfüllen.\n';}
     if (xname == 'EMail') {msg += 'Bitte E-Mail ausfüllen.\n';}
   }
   alert(msg);
}

function validateLesezeichen ( $array )
{
   var i = 0;
   var msg = '';
   for (i;i<$array.length;++i)
   {
     xname = $array[i]
     if (xname == 'Anzahl') {msg += 'Bitte Anzahl der Lesezeichen ausfüllen.\n';}
     if (xname == 'Schulkennzahl') {msg += 'Bitte Schulkennzahl ausfüllen.\n';}
     if (xname == 'Schule') {msg += 'Bitte Schule ausfüllen.\n';}
     if (xname == 'Ansprechpartner') {msg += 'Bitte Ansprechpartner ausfüllen.\n';}
     if (xname == 'Strasse') {msg += 'Bitte Straße ausfüllen.\n';}
     if (xname == 'PLZOrt') {msg += 'Bitte PLZ, Ort ausfüllen.\n';}
   }
   alert(msg);
}

function validateGruppenmeldung ( $array )
{
   var i = 0;
   var msg = '';
   for (i;i<$array.length;++i)
   {
     xname = $array[i]
     if (xname == 'Bundesland') {msg += 'Bitte Bundesland ausfüllen.\n';}
     if (xname == 'Arbeitsjahr') {msg += 'Bitte Arbeitsjahr ausfüllen.\n';}
     if (xname == 'EMail') {msg += 'Bitte E-Mail ausfüllen.\n';}
   }
   alert(msg);
}

function validateJubilaeum ( $array )
{
   var i = 0;
   var msg = '';
   for (i;i<$array.length;++i)
   {
     xname = $array[i]
     if (xname == 'Name') {msg += 'Bitte Name ausfüllen.\n';}
     if (xname == 'EMail') {msg += 'Bitte E-Mail ausfüllen.\n';}
   }
   alert(msg);
}

function validateShopOrder ( $array )
{
   var i = 0;
   var msg = '';
   for (i;i<$array.length;++i)
   {
     xname = $array[i]
     if (xname == 'Vorname') {msg += 'Bitte Vorname ausfüllen.\n';}
     if (xname == 'Nachname') {msg += 'Bitte Nachname ausfüllen.\n';}
     if (xname == 'Strasse') {msg += 'Bitte Straße/Nr. ausfüllen.\n';}
     if (xname == 'PLZ') {msg += 'Bitte PLZ ausfüllen.\n';}
     if (xname == 'Ort') {msg += 'Bitte Ort ausfüllen.\n';}
     if (xname == 'Telefon') {msg += 'Bitte Telefon ausfüllen.\n';}
   }
   alert(msg);
}

function validateGesundheitsbuch ( $array )
{
   var i = 0;
   var msg = '';
   for (i;i<$array.length;++i)
   {
     xname = $array[i]
     if (xname == 'Schulkennzahl') {msg += 'Bitte Schulkennzahl ausfüllen.\n';}
     if (xname == 'Schule') {msg += 'Bitte Schule ausfüllen.\n';}
     if (xname == 'Ansprechpartner') {msg += 'Bitte Ansprechpartner ausfüllen.\n';}
     if (xname == 'Strasse') {msg += 'Bitte Straße ausfüllen.\n';}
     if (xname == 'PLZOrt') {msg += 'Bitte PLZ, Ort ausfüllen.\n';}
   }
   alert(msg);
}

function validateWeihnachtskarten1 ()
{
   document.f_weihnachtskarten.xfrm_recipient.value = document.f_weihnachtskarten['Bundesland'].options[document.f_weihnachtskarten['Bundesland'].selectedIndex].value
   //document.f_weihnachtskarten.xfrm_recipient.value = 'm.weiss@ctm.at'
   if (document.f_weihnachtskarten.email.value != '') {
     document.f_weihnachtskarten['xfrm_recipient'].value += ';'+document.f_weihnachtskarten.email.value
   }
}

function validateWeihnachtskarten ( $array )
{
   var i = 0;
   var msg = '';
   for (i;i<$array.length;++i)
   {
     xname = $array[i]
     if (xname == 'Ansprechpartner') {msg += 'Bitte Ansprechpartner ausfüllen.\n';}
     if (xname == 'Strasse') {msg += 'Bitte Straße ausfüllen.\n';}
     if (xname == 'PLZ_Ort') {msg += 'Bitte PLZ, Ort ausfüllen.\n';}
     if (xname == 'Bundesland') {msg += 'Bitte Bundesland auswählen.\n';}
   }
   alert(msg);
}

function validateGlueckwunschkarten1 ()
{
   document.f_glueckwunschkarten.xfrm_recipient.value = document.f_glueckwunschkarten['Bundesland'].options[document.f_glueckwunschkarten['Bundesland'].selectedIndex].value
   if (document.f_glueckwunschkarten.email.value != '') {
     document.f_glueckwunschkarten['xfrm_recipient'].value += ';'+document.f_glueckwunschkarten.email.value
   }
}

function validateGlueckwunschkarten ( $array )
{
   var i = 0;
   var msg = '';
   for (i;i<$array.length;++i)
   {
     xname = $array[i]
     if (xname == 'Ansprechpartner') {msg += 'Bitte Ansprechpartner ausfüllen.\n';}
     if (xname == 'Strasse') {msg += 'Bitte Straße ausfüllen.\n';}
     if (xname == 'PLZ_Ort') {msg += 'Bitte PLZ, Ort ausfüllen.\n';}
     if (xname == 'Bundesland') {msg += 'Bitte Bundesland auswählen.\n';}
   }
   alert(msg);
}

function validateMessageFront ( $array )
{
   var i = 0;
   var msg = '';
   for (i;i<$array.length;++i)
   {
     xname = $array[i]
     if (xname == 'sender') {msg += 'Bitte Name eingeben.\n';}
     if (xname == 'sender_email') {msg += 'Bitte E-Mail eingeben.\n';}
     if (xname == 'message') {msg += 'Bitte Nachricht eingeben.\n';}
   }
   alert(msg);
}