function showRooms(theId)
{
  var max = theId.value
  for (var i=1 ; i<=4 ; i++)
  {
    if (i <= max)
      document.getElementById("room" + i).style.display = "block"
    else
    {
      document.getElementById("room" + i).style.display = "none"
      document.getElementById("Room-" + i + "-Adt").value = 0
      document.getElementById("Room-" + i + "-Chd").value = 0
    }
  }
  showAges()
}
