// emptyString -- Tests a string to see if it is "blank"
//
// Returns true if the string is null or contains only whitespace
//
// Arguments:
//            theStr - the string to be tested
//
// V1.0   17 Nov 99   Initial release
//
// William K. Walker
// wkwalker@nvdi.com
//
function emptyString(theStr)
{
  var checkOK = " \t\r\n\f";

  if (theStr == "") return true;

  for (i = 0;  i < theStr.length;  i++)
  {
    ch = theStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j)) break;
    if (j == checkOK.length) return false;
  }

  return true;
}


