function checkSurvey()
{
    errorMsg = "";
    for (i=1 ; i<=11 ; i++) {
        if (i != 7) {
            formElt = document.getElementById("question_" + i);
            
            if (formElt.value == "") {
                errorMsg += " - You must select an answer for Question " + i + "\n";
                
                formElt.style.backgroundColor = "#FFAAAA";
            }
            else {
                formElt.style.backgroundColor = "#FFFFFF";
            }
        }
        else {
            optionSelected = false;
            for (j=1 ; j<=8 ; j++) {
                formElt = document.getElementById("question_7_" + j);
                
                if (formElt.checked) {
                    optionSelected = true;
                    break;
                }
            }
            
            if (!optionSelected) {
                errorMsg += " - You must select at least 1 option for Question 7\n";
            }
        }
    }
    
    if (errorMsg != "") {
        errorMsg = "Please correct the following problems before submitting the survey:\n\n" + errorMsg;
        alert(errorMsg);
        
        return false;
    }
    else {
        return true;
    }
}

function checkSec(csVar)
{
  formElt = document.getElementById("question_7_" + csVar);
  formElt.checked = !formElt.checked;
}

