$.fn.extend(
{ 
reset: function() {
  return this.each(
    function() {
      $(this).is('form') && this.reset();
    } 
  )
  }
}
);

$(document).ready(
  function(){
    $('a.clear').click(
      function(event){
        event.preventDefault(); 
        clrerr();
        //document.getElementById('inquiry').reset();
        $('#inquiry').reset();
      }
    );
  }
);
