document.onkeypress = function(event){control.HandleEvent(event);}
var keyCode = (event.charCode) ? event.charCode : event.keyCode;