//
// MOD: 'Checkbox Text Clicker' by  AbelaJohnB
//

function toggleCheckbox(thisCheckbox) {
    thisCheckbox.checked = !(thisCheckbox.checked);
}

function toggleRadioButton(radioArray, radioValue) {
    var found = 0;
    for (i = 0; radioArray[i]; i++) {
        if (radioArray[i].value == radioValue) {
            radioArray[i].checked = true;
            found = 1;
            break;
        }
    }
    if (found == 0) {
        alert("Error: Could not locate " +
                thisValue + " in " + thisSelect + ".");
    }
}
