function checkEnter(e){ var key; if (window.event) key = window.event.keyCode; else if (e) key = e.which; var ret = ((key) != 13); return ret; }