/*** (C)Scripterlatve.com Info: www.scripterlative.com?radbtn These instructions may be removed but not the above text. Please notify any suspected errors in this text or code, however minor. Installation ~~~~~~~~~~~~ Save this text/file as 'radbtn.js'. In any document that uses the script, add the following in the section: Configuration ~~~~~~~~~~~~~ None. Usage ~~~~~ Please note that all these functions can be used equally with single or grouped checkbox elements. RadBtn.functionName(parameters); Meaning of Parameters Used ~~~~~~~~~~~~~~~~~~~~~~~~~~ rb - An absolute reference to a single radio button, e.g document.forms.myForm.radioGroup[2]. rbSet - An absolute reference to a set of radio buttons, e.g document.forms.myForm.radioGroup. rbValue - The value to be assigned to a radio button. idx - The 0-based index of a button in a set. flag - A boolean value: true/false. GratuityWare ~~~~~~~~~~~~ This code is free, however if you wish to make a donation to encourage further development of scripts, you may do so at www.scripterlative.com. *** DO NOT EDIT BELOW THIS LINE **/ var RadBtn=/*2843295374657068656E204368616C6D657273*/ { enable:function(rbSet, idx, flag) /* Enable/disable button idx in rbSet. true flag==enable */ { if(rbSet.length) rbSet[idx].disabled=!flag else rbSet.disabled=!flag; }, enableAll:function(rbSet, flag) /* Enable/disable all buttons in rbSet. true flag==enable */ { if(!rbSet.length) rbSet.disabled=!flag; else for(var i=0; i idx) rbSet[idx].checked=true; }, deselect:function( rbSet ) /* Deselect rbSet */ { if(!rbSet.length) rbSet.checked=false; else for(var i=0; i