// this gets round an IE bug which prevents onchange events from firing when checkboxes or radiobuttons are clicked.  Use onlick instead with the function below
// half-inched and modified from http://snipplr.com/view.php?codeview&id=2289
function toggleCheckbox(checkboxName,toggleLyr) {

    var lyr = document.getElementById(toggleLyr);
    var checkbox = document.getElementById(checkboxName);
    
    if (checkbox.checked == true) {
        new Effect.Fade(lyr);
    }
    else {
        new Effect.Appear(lyr);
    }
}