function updateBox(elem){
	ref = elem.getAttribute("ref");
	elem2 = document.getElementById(ref);

	if(elem.checked)
		elem2.style.display = "block";
	else
		elem2.style.display = "none";
}

function updateBoxes(){
	updateBox(document.getElementById("box1"));
	updateBox(document.getElementById("box2"));
	
}

function other1(elem){
	if(elem.value == 'Other')
		elem.checked = true;
	else
		elem.checked = false;
	updateBox(elem);
}
