/*
  
*/

function validateOrder ( $array )
{
   var i = 0;
   var msg = '';
   for (i;i<$array.length;++i)
   {
     xname = $array[i]
     if (xname == 'firstname') {msg += 'Bitte Vorname ausfüllen.\n';}
     if (xname == 'lastname') {msg += 'Bitte Nachname ausfüllen.\n';}
     if (xname == 'street') {msg += 'Bitte Straße ausfüllen.\n';}
     if (xname == 'street_nr') {msg += 'Bitte Nr. ausfüllen.\n';}
     if (xname == 'zip') {msg += 'Bitte PLZ ausfüllen.\n';}
     if (xname == 'city') {msg += 'Bitte Ort ausfüllen.\n';}
     if (xname == 'phone') {msg += 'Bitte Telefon ausfüllen.\n';}
     if (xname == 'email') {msg += 'Bitte E-Mail ausfüllen.\n';}
     if (xname == 'per_nachnahme') {msg += 'Bitte "Per Nachnahme" akzeptieren.\n';}
     if (xname == 'payment') {msg += 'Bitte Zahlungsweise auswählen.\n';}
     if (xname == 'agb') {msg += 'Bitte AGB akzeptieren.\n';}
   }
   alert(msg);
   return false;
}

function validateOrderCatalog ( $array )
{
   var i = 0;
   var msg = '';
   for (i;i<$array.length;++i)
   {
     xname = $array[i]
     if (xname == 'firstname') {msg += 'Bitte Vorname ausfüllen.\n';}
     if (xname == 'lastname') {msg += 'Bitte Nachname ausfüllen.\n';}
     if (xname == 'street') {msg += 'Bitte Straße ausfüllen.\n';}
     if (xname == 'street_nr') {msg += 'Bitte Nr. ausfüllen.\n';}
     if (xname == 'zip') {msg += 'Bitte PLZ ausfüllen.\n';}
     if (xname == 'city') {msg += 'Bitte Ort ausfüllen.\n';}
     if (xname == 'phone') {msg += 'Bitte Telefon ausfüllen.\n';}
   }
   alert(msg);
   return false;
}

