// goodName -- Tests a name string for presence of invalid characters
//
// Returns true if the string contains no invalid characters; false otherwise
//
// Arguments:
//            namStr - the string to be tested
//
// V1.0   11 Oct 99   Initial release
//
// William K. Walker
// wkwalker@nvdi.com
//
function goodName(namStr)
{

  var testOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzƒŠŒŽšœžŸÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ.-'` ";

  for (i = 0;  i < namStr.length;  i++)
  {
    ch = namStr.charAt(i);
    for (j = 0;  j < testOK.length;  j++)
     if (ch == testOK.charAt(j)) break;
    if (j == testOK.length) return false;
  }

  return true;
}

