handleKeyPress = function(e,button){ var key=e.keyCode || e.which; if (key==13){ button.onclick(); } return false; } document.write('