Thanks Lee - it worked a treat
here's the full code for anyone interested :
<script>
function whichButton() {
var group1Checked;
var myString = "155,12,3,22,18,19,55"; // set the option IDs that need checking
var mySplitResult = myString.split(","); // Split the Option IDs into variables...