function cmSwitch(id){
	if (aElem.style.display=='block'){
		aElem.style.display='none';
	} else {
		aElem.style.display='block';
	}
}

function cmInitialize(expanded, id) {
    if(!document.getElementsByTagName)return; // reject non-compliant browsers
    var aElem = document.getElementById(id);
    var imgID = "img_" + id;
    if (expanded) {
        aElem.style.display='block';
        document[imgID].src = _imgTrue.src;
    }else{
        aElem.style.display='none';
        document[imgID].src = _imgFalse.src;
    }
}

function openRewardWindow(id){
   cmSwitch(id);
}

function enableOtherAnswer(fan){
    if (!fan) {
        document.getElementById("otherAnswer").value=''; document.getElementById("otherAnswer").readOnly = 'readOnly';
    }else{
        document.getElementById("otherAnswer").readOnly = '';
    }
}

