	function fnSiteSearchCheck(pForm){

        var form_obj = 'document.SearchForm';
        var blHasErrors = false;
        var errorMsg="";
        var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890-- .@#$%&*() _+=!\\{}`?/,:";
        var s = form_obj.request.value;
        var checkStr = s;


		if (s=='' ){
			errorMsg += "Please enter your search text.\nTo search all documents enter '\?\' .\n";
			blHasErrors = true;
			 }
        else{

              for (i = 0;  i < checkStr.length;  i++)
              {
                ch = checkStr.charAt(i);
                for (j = 0;  j < checkOK.length;  j++)
                  if (ch == checkOK.charAt(j))
                    break;
                if (j == checkOK.length)
                {
                 	blHasErrors = true;
                  break;
                }
              }
 
              if (blHasErrors == true)
              {
        			errorMsg += "Please enter only letter, whitespace and \"'-\" characters in the \"Search\" field..\n";

              }
          }

		if (blHasErrors == true){
			alert(errorMsg);
            return (false);
		}
		else
		{
            form_obj.submit();
            return (true);
		}
	}


