function checkTR() {
  $.ajaxSetup({async: false});
  $("tr").each( function(i) {
    if (/^chk([0-9]*)_([^_]*)/i.test(this.id)) {
      oTR = this;
      $.get(
      	"/wolf/check4Documents.asp?id="+RegExp.$1+"&pr="+RegExp.$2,
      	function(s) {
      	  if (/empty/.test(jQuery.trim(s))) {
      	    $(oTR).css("display","none");
      	    $(oTR.attr("id")+"_br").css("display","none");
      	  }
      	}
      );
    }
  });
  $.ajaxSetup({async: true});
}
