function Validator(theForm)
{
  theForm=document.WebFrm;
  var checkOK = "ABCDEFGHIJKLMNOPQRSUVTWYZXabcdefghijklmnopqrstuvwxyz/0123456789-_";
  var allValid = true;
  var allNum = "";

//-------------------Name-----------------------------


  if (theForm.FileNo.value == "")
  {
    alert("File / Inward Number cannot be blank");
    theForm.FileNo.focus();
    return (false);
  }

 for (i = 0;  i < theForm.FileNo.value.length;  i++)
  {
    ch = theForm.FileNo.value.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
    allNum += ch;
  }
  if (!allValid)
  {
    alert("Invalid  File / Inward Number");
    theForm.FileNo.focus();
    return (false);
  }

 
return true;
}