        function CheckForEnterClick(e) {
                    e = e || window.event;
                    if (e.keyCode == 13 || e.which == 13) {
                        HandleSubmission();

                    }
                }

                var addEventHandler = function (element, eventType, functionRef) {
                    if (element == null || typeof (element) == 'undefined') {
                        return;
                    }
                    if (element.addEventListener) {
               