var choiceDisableFlags=new Array();  //choice Error
choiceDisableFlags[1]=false;
choiceDisableFlags[2]=false;
choiceDisableFlags[3]=false;
choiceDisableFlags[4]=false;
choiceDisableFlags[5]=false;
choiceDisableFlags[6]=false;
choiceDisableFlags[7]=false;
choiceDisableFlags[8]=false;
choiceDisableFlags[9]=false;
choiceDisableFlags[10]=false;
choiceDisableFlags[11]=false;

function updateOtherOption (a){
	if(document.getElementById("Q_"+a).value=="Other"){
		document.getElementById("O_"+a).innerHTML = '<textarea name="F_'+a+'" cols="45" rows="5" id="F_'+a+'" onkeyup ="validateAlphaNumeric('+a+');">Type your idea here.</textarea><br />';
		document.getElementById("E_"+a).innerHTML = '';
		document.getElementById("O_"+a).style.display = 'block';
		document.getElementById("E_"+a).style.display = 'none';
		choiceDisableFlags[a]=true;
		addSubmitButton();
	}else if(document.getElementById("Q_"+a).value=="---"){
		document.getElementById("E_"+a).innerHTML = '<span style="color:red">Make a selection.</span>';
		document.getElementById("O_"+a).innerHTML = '';
		document.getElementById("O_"+a).style.display = 'none';
		document.getElementById("E_"+a).style.display = 'block';
		choiceDisableFlags[a]=false;
		document.getElementById("SubmitArea").innerHTML = '';
	}else{	
		//document.getElementById("O_"+a).options[document.getElementById("O_"+a).selectedIndex.value;
		document.getElementById("O_"+a).innerHTML = '3';
		document.getElementById("E_"+a).innerHTML = '3';
		document.getElementById("O_"+a).style.display = 'none';
		document.getElementById("E_"+a).style.display = 'none';
		
		choiceDisableFlags[a]=true;
		addSubmitButton();
	}
}


/*
select name='colors' id='colorsselect'

An often-seen method to retrieve the value of the selected item:


document.write(dropdownValue);
*/
