function fillDropdown(dropdown, from, to) {

	for (i=from; i<=to; i++) {
		
	   var elOptNew = document.createElement('option');
       elOptNew.text = i;
       elOptNew.value = i;
	     
       try {
         dropdown.add(elOptNew, null); // standards compliant; doesn't work in IE
       }
       catch(ex) {
    	   dropdown.add(elOptNew); // IE only
       }
	}
}

function setChildAges(dropdown, childrenfieldname) {
	document.getElementById(childrenfieldname).value=dropdown.value;
	if (dropdown.value>0) 
		document.getElementById('ChildrenAgedLabel').style.display='';
	else document.getElementById('ChildrenAgedLabel').style.display='none';

	for (i=1; i<=20; i++) {
		if (i<=dropdown.value)
		document.getElementById('cha'+i+'drop').style.display='';
		else document.getElementById('cha'+i+'drop').style.display='none';
	}
}