function stripPhone(n){if(n!=null&&n.length>10){var t=n.replace("(","");t+=t.replace(")","");t+=t.replace("-","")}return t}function formatPhone(n){return n!=null&&n.length==10?n="("+n.substring(0,3)+") "+n.substring(3,6)+"-"+n.substring(6,10):n!=null&&n.length==7&&(n=n.substring(0,3)+"-"+n.substring(3,7)),n}function initializeMasks(){$(".phone").mask("1 (999) 999-9999");$(".ssn").mask("999-99-9999");$(".date").mask("99/99/9999");$(".maskedField").click(function(){var n=$(this).val();n=n.replace(/[\(\)\-\/\_]/g,"");n&&n.trim()!=""||(this.blur(),this.focus())})}function clearFields(){$("#ContactForm_FirstName").val("");$("#ContactForm_LastName").val("");$("#ContactForm_Phone").val("");$("#ContactForm_Email").val("");$("#ContactForm_Message").val("");$("#ContactForm_ProviderName").length&&$("#ContactForm_ProviderName").val("");$("#ContactForm_ClinicLocation").length&&$("#ContactForm_ClinicLocation").val("")}function clearProviderFeedbackFields(){$("#ProviderFeedbackForm_ProviderName").val("");$("#ProviderFeedbackForm_ClinicLocation").val("");$("#ProviderFeedbackForm_RemainAnonymous").checked(!1);$("#ProviderFeedbackForm_PatientFirstName").val("");$("#ProviderFeedbackForm_PatientLastName").val("");$("#ProviderFeedbackForm_Phone").val("");$("#ProviderFeedbackForm_Email").val("");$("#ProviderFeedbackForm_Feedback").val("")}