
function turnOn(idList) {
	// breakout idList into array
	var idArray = idList.split(':');
	// for each element in the array, prefix the "q", get the elementById, set the display value
	for (var $i=0; $i<idArray.length; $i++) {
		theID = "q" + idArray[$i];
		theObj = document.getElementById(theID);
		theObj.style.display = "list-item";
	}
}

function turnOff(idList) {
	// breakout idList into array
	var idArray = idList.split(':');
	// for each element in the array, prefix the "q", get the elementById, set the display value
	for (var $i=0; $i<idArray.length; $i++) {
		theID = "q" + idArray[$i];
		theObj = document.getElementById(theID);
		theObj.style.display = "none";
	}
	//theID = "q" + idList;
	//theObj = document.getElementById(theID);
	//theObj.style.display = "none";
}

function adjustQuestions(idListOn, idListOff, responseObj ) {
	// get the response object and determine whether it has just been checked or unchecked
	// call appropriate - checked call turnOn and Off, unchecked swap them
	//for now to test just call turnOn
	turnOff(idListOff);
	turnOn(idListOn);
	
}

