Hi, I am new at java script. What I am trying to do is when you check a check box called CTExam, I need 2 radio buttons to become visible on the page. I have been working on this for some time now and cannot get it to work, so all help is very much appreciated.


function ContrastEnable()
{
if (document.Radiology.CTExam.checked == true) {
document.Radiology.txtContrast.style.visibility = 'visible';
document.getElementById('ContMediaLabel').innerHTML= '<font color="#000000" size="2" face="Arial, Helvetica, sans-serif">Previous Reaction to Contrast Media</font>';
document.Radiology.rContMedia.style = 'visibility:visible;';
} else {
document.Radiology.txtContrast.style.visibility = 'hidden';
document.getElementById('ContMediaLabel').innerHTML= '<font color="#000000" size="2" face="Arial, Helvetica, sans-serif"></font>';
document.Radiology.rContMedia.style = 'visibility:hidden;';
}
}

<td width="2%">
<input type="checkbox" name="CTExam" value="1" OnClick="ContrastEnable()">
</td>

<td width="14%" id="ContMediaLabel">&nbsp;</td>
<td width="76%" name="contmedia">
<input title="No" id="rContMedia" type="radio" name="rContMedia" value="No" checked style="visibility: hidden;" ContMediaN=""><font size="2" face="Arial"><b>No</font></b>
<input type="radio" id="rContMedia" name="rContMedia" value="Yes" style="visibility: hidden;" ContMediaY=""> <font size="2" face="Arial"><b>Yes&nbsp;&nbsp;</b></font>
</td>


Thanks
Sam