function isDelimiter(c)
{
  var _delims = " ,;.:!?()-";
  return _delims.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('Skriv en fråga.');
 return false;
}

