Javascript disable hidden .net validators

A quick javascript function to disable hidden .net validators involves iterating through all validators in the page, and enabling/disabling them based on whether or not they are visible. This snippet has come in handy for me many times. Define the function below and call DisableHiddenValidators() on document.ready().