Thanks for that ,

One other question.
if I have 3 radio buttons , how would I - when I click on any of them I want to call a function and assign the radio button value to a variable.

I have no problem calling the function with the onClick event, but I cant seem to distinguish between the 3 buttons.

Was trying RadioGroup1[RadioGroup1.checked].value but it doesnt seem to work.

Any ideas appreciated.

Thanks