var theForm;

function showObj(idItem) {
	document.getElementById(idItem).style.display = '';
}

function hideObj(idItem) {
	document.getElementById(idItem).style.display = 'none';
}

function ShowChildAges(val) {
	if (val == 0 || val == null) {
		hideObj('childages');
	} else {
		showObj('childages');
	}
	for(i=1;i<7;i++) {
		if (i <= val){
			showObj('tdChild'+ i);
			//document.getElementById('child'+ i).selectedIndex=0;
		} else {
			hideObj('tdChild'+ i);
			document.getElementById('child'+ i).selectedIndex=0;
		}
	}
}

