// Unpublished Work. ©Financial Industry Regulatory Authority, Inc.

 function clearDateControl(dateControl) {
            if (dateControl.value == 'mm/dd/yyyy') { dateControl.value = ''; }
        }

 function AutoSubmitOnTextBox(ctlSubmitBtnID, e) {

            var ctlSubmitBtnName;

            var key;
            {
                if (window.event)
                    key = window.event.keyCode;     //IE
                else
                    key = e.which;     //firefox
            }
            if (key == 13) {
                //Get the button the user wants to have clicked
                ctlSubmitBtnName = document.getElementById(ctlSubmitBtnID).name;
                if (ctlSubmitBtnName != null) { //If we find the button click it
                    document.getElementById(ctlSubmitBtnID).click();
                    event.keyCode = 0
                }
            }
        }


