function isDelimiter(c) {
  return " ,;.:!?()-".indexOf(c) >= 0;
}
 
function validateInquiry(text) {
  var len = text.length;
  var j = 0;
  while (j < len) { // find the non-space
    while ((j < len) && isDelimiter(text.charAt(j))) { j++; }
    // question with non-empty string?
    if (j < len)
      return true;
  }
  alert('Bitte, eine Arzt Frage zur Gesundheit stellen.');
  return false;
}

