//*** This code is copyright 2003 by Gavin Kistner, gavin@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.) /******************************************************************************* * This library keeps track of which radio button is selected in a set, via * var radioButton = myForm.selectedRadio.radioSetName; * * NOTE: This will not be updated if you change the selected button using code: * myForm.radioSetName[3].checked=true; * * NOTE: This destroys other onclick handlers for the radio buttons. * To preserve them, but screw Safari users, comment out the * "r.onclick=" line and uncomment the "AttachEvent(r,'click',...)" line * * v1.0 20030815 Initial Release * v1.0.1 20030819 Safari fix put in. ***************************************************/ AttachEvent(window,'load',function(){ var radios = document.getElementsByTagName('input'); for (var i=0,len=radios.length;i