function validateFeedbackmanagement( $array )
{
   var i = 0;
   var msg = '';
   for (i;i<$array.length;++i)
   {
     xname = $array[i]
     if (xname == 'Beschreibung') {msg += 'Bitte Problemdarstellung/Beschreibung ausfüllen.\n';}
     if (xname == 'Vorschlag') {msg += 'Bitte Verbesserungsvorschlag ausfüllen.\n';}
     if (xname == 'Name') {msg += 'Bitte Vorname, Nachname/Wer hat gelobt?/Wer hat sich beschwerd? ausfüllen.\n';}
     if (xname == 'Abteilung') {msg += 'Bitte Abteilung ausfüllen.\n';}
   }
   alert(msg);
}

function validateVorschlagswesen ( $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 == 'Problemdarstellung') {msg += 'Bitte Problemdarstellung ausfüllen.\n';}
     if (xname == 'Verbesserungsvorschlag') {msg += 'Bitte Verbesserungsvorschlag ausfüllen.\n';}
   }
   alert(msg);
}

function validateOrderPatientenzeitung ( $array )
{
   var i = 0;
   var msg = '';
   for (i;i<$array.length;++i)
   {
     xname = $array[i]
     if (xname == 'Anrede') {msg += 'Bitte Anrede ausfüllen.\n';}
     if (xname == 'Versand') {msg += 'Bitte Versand ausfüllen.\n';}
   }
   alert(msg);
}

function checkCheckboxes(formular){
  var cansend = false;

  for(var i=0; i<formular.elements.length; i++) {
    if (formular.elements[i].checked && formular.elements[i].type=='checkbox') cansend = true;
  }

  if (cansend==true) {
    return true;
  } else {
    alert('Bitte wählen Sie eine Veranstaltung aus.');
    return false;
  }
}

function validateAnaesthesietag ( $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 == 'KrankenhausInstitution') {msg += 'Bitte Krankenhaus/Institution ausfüllen.\n';}
     if (xname == 'EMail') {msg += 'Bitte E-Mail ausfüllen.\n';}
   }
   alert(msg);
}
/*
  
*/

function validatePresse ( $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 validatePublication ( $array )
{
   var i = 0;
   var msg = '';
   for (i;i<$array.length;++i)
   {
     xname = $array[i]
     if (xname == 'author_lastname') {msg += 'Bitte Nachname ausfüllen.\n';}
     if (xname == 'author_firstname') {msg += 'Bitte Vorname ausfüllen.\n';}
     if (xname == 'publish_title') {msg += 'Bitte Titel ausfüllen.\n';}
     if (xname == 'publish_location') {msg += 'Bitte Ort ausfüllen.\n';}
     if (xname == 'publish_media') {msg += 'Bitte "Veröffentlicht in"/Veranstaltung/Kongress ausfüllen.\n';}
     if (xname == 'publish_label') {msg += 'Bitte Verlag ausfüllen.\n';}
     if (xname == 'publish_month') {msg += 'Bitte Monat ausfüllen.\n';}
     if (xname == 'publish_year') {msg += 'Bitte Jahr ausfüllen.\n';}
     if (xname == 'publish_isbn') {msg += 'Bitte ISBN-Nummer ausfüllen.\n';}
     if (xname == 'publish_pages') {msg += 'Bitte "Auf den Seiten" ausfüllen.\n';}
     if (xname == 'publish_authors') {msg += 'Bitte Autoren ausfüllen.\n';}
   }
   alert(msg);
}