Can anyone refer me to a JavaScript phone number validation script that will actually check that a real phone number is being input as it's typed in?

I can only find ones that validate after the form is submitted and that's not what I need.