﻿hideThankYouMessageOnValidation = function(oSrouce, args) {
    $('.thankYouMessage').hide();
    args.IsValid = true;
};

howHearDropDownOnChange = function(baseClientID)
{
    var drpDown = $get(baseClientID + '_HowHearDropDown');
    var txtBox = $get(baseClientID + '_HowHearOther');

    var isOther = drpDown.value.startsWith('Other - please');

    txtBox.value = isOther ? "" : drpDown.value;
    txtBox.style.display = isOther ? "inline" : "none";

    if (isOther)
    {
        txtBox.focus();
    }
}
