<script language="JavaScript" type="text/javascript">
<!--
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('Skriv en fråga.');
 return false;
}
