function showhide(whichSection) {
	
	var currCheckbox = whichSection;
	var currSection = whichSection + 'Info';

	if (document.getElementById(currCheckbox).checked == true) {
		document.getElementById(currSection).style.display = "block";
	}

	if (document.getElementById(currCheckbox).checked != true) {
		document.getElementById(currSection).style.display = "none";
	}

}

function goChildren(whichSelectList) {

	// first, hide all 'childInfo' divs

	var totalChildInfoDivs = ((whichSelectList.length) - 1);
	//alert (totalChildInfoDivs);
	
	for (var i = 1; i <= totalChildInfoDivs; i++) {
		var hideThisDiv = document.getElementById('child' + i);
		hideThisDiv.style.display = "none";
	}

	var selectedNumKids = whichSelectList.options[whichSelectList.selectedIndex].value;
  
	if (selectedNumKids >= 1) {
		
		for (var y = 1; y <= selectedNumKids; y ++) {
			var showThisDiv = document.getElementById('child' + y);
			showThisDiv.style.display = "block";
		}

/*
		var i = 1;
		while (i <= selectedNumKids) {
			// make the appropriate number of div's visible
			var currDiv = document.getElementById('child' + i);
			currDiv.style.display = "block";
			i++;
		}
*/
	
	}
	
}



//AUTOTAB
function autoTab(element, nextElement) {
if (element.value.length == element.maxLength && nextElement != null) {
element.form.elements[nextElement].focus();
}
}
