         element.addEventListener(eventType, functionRef, false);
                    } else if (element.attachEvent) {
                        element.attachEvent("on" + eventType, functionRef);
                    } else {
                        element["on" + eventType] = functionRef;
                    }
                };

                addEventHandler(window, "keydown", CheckForEnterClick);
            </script>

</body>

</html>