﻿function validateCallback ( $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 == 'Adresse') {msg += 'Bitte Adresse ausfÃ¼llen.\n';}
     if (xname == 'PLZ') {msg += 'Bitte PLZ ausfÃ¼llen.\n';}
     if (xname == 'Rueckrufnummer') {msg += 'Bitte RÃ¼ckrufnummer ausfÃ¼llen.\n';}
   }
   alert(msg);
}

function validateReservierung ( $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 ausfÃ¼llen.\n';}
     if (xname == 'HNr') {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 == 'EMail') {msg += 'Bitte E-Mail ausfÃ¼llen.\n';}
   }
   alert(msg);
}
