//*** This code is copyright 2003 by Gavin Kistner and Refinery Inc., www.refinery.com //*** It is covered under the license viewable at http://phrogz.net/JS/_ReuseLicense.txt //*** Reuse or modification is free provided you abide by the terms of that license. //*** (Including the first two lines above in your source code satisfies the conditions.) var keyTab=9,keyEnter = 13; //Changes every text input on the page so that when the user presses the //enter key, it behaves like they pressed tab (prevents accidentaly form submission) function ChangeInputsEnterToTab(){ if (!document.getElementsByTagName) return; var allInputs = document.getElementsByTagName("INPUT"); for (var i=0,len=allInputs.length;i