function showrooms(whichLayer)
{
var totalrooms=2;
for(i=1;i<=totalrooms;i++)
{
//alert(whichLayer+'<'+i)	
  if(whichLayer>i)
  { 	
	if (document.getElementById)
	{
		// this is the way the standards work
		//alert('1');
		var style2 = document.getElementById('ROOMAC'+i).style;
		if(document.getElementById('ROOMAC'+i))
		style2.display = "block";
	}
	else if (document.all)
	{
		// this is the way old msie versions work
		//alert('2');
		var style2 = document.all['ROOMAC'+i].style;
		style2.display = "block";
	}
	else if (document.layers)
	{
		// this is the way nn4 works
		//alert('3');
		var style2 = document.layers['ROOMAC'+i].style;
		style2.display = "block";
	}
  }
  else
  {
	if (document.getElementById)
	{
		// this is the way the standards work
		//alert('4');
		var style2 = document.getElementById('ROOMAC'+i).style;
		if(document.getElementById('ROOMAC'+i))
		document.getElementById('childno'+i).selectedIndex = 0;
		style2.display = "none";
		
		if(whichLayer+1>totalrooms)
		{
		j=i+1
		var style2 = document.getElementById('CHILDAGE'+j+'1').style;
		style2.display = "none";
		var style2 = document.getElementById('CHILDAGE'+j+'2').style;
		style2.display = "none";
		}
	}
	else if (document.all)
	{
		// this is the way old msie versions work
		//alert('5');
		var style2 = document.all['ROOMAC'+i].style;
		style2.display = "none";
	}
	else if (document.layers)
	{
		//alert('6');
		// this is the way nn4 works
		var style2 = document.layers['ROOMAC'+i].style;
		style2.display = "none";
	}
  }
    
  }	
}
function showage(ageobj)
{
var totalages=2;
switch(ageobj.name)
{
case 'child':
	for(i=1;i<=totalages;i++)
	{
		if(ageobj.value>=i)
		{
			if (document.getElementById)
			{
			// this is the way the standards work
			var style2 = document.getElementById('CHILDAGE1'+i).style;
			style2.display = "block";
			}
			else if (document.all)
			{
			// this is the way old msie versions work
			var style2 = document.all['CHILDAGE1'+i].style;
			style2.display = "block";
			}
			else if (document.layers)
			{
			// this is the way nn4 works
			var style2 = document.layers['CHILDAGE1'+i].style;
			style2.display = "block";
			}
		}
		else
		{
			if (document.getElementById)
			{
			// this is the way the standards work
			var style2 = document.getElementById('CHILDAGE1'+i).style;
			style2.display = "none";
			}
			else if (document.all)
			{
			// this is the way old msie versions work
			var style2 = document.all['CHILDAGE1'+i].style;
			style2.display = "none";
			}
			else if (document.layers)
			{
			// this is the way nn4 works
			var style2 = document.layers['CHILDAGE1'+i].style;
			style2.display = "none";
			}
		}
	}
	break;
case 'childno1':
	for(i=1;i<=totalages;i++)
	{
		if(ageobj.value>=i)
		{
			if (document.getElementById)
			{
			// this is the way the standards work
			var style2 = document.getElementById('CHILDAGE2'+i).style;
			style2.display = "block";
			}
			else if (document.all)
			{
			// this is the way old msie versions work
			var style2 = document.all['CHILDAGE2'+i].style;
			style2.display = "block";
			}
			else if (document.layers)
			{
			// this is the way nn4 works
			var style2 = document.layers['CHILDAGE2'+i].style;
			style2.display = "block";
			}
		}
		else
		{
			if (document.getElementById)
			{
			// this is the way the standards work
			var style2 = document.getElementById('CHILDAGE2'+i).style;
			style2.display = "none";
			}
			else if (document.all)
			{
			// this is the way old msie versions work
			var style2 = document.all['CHILDAGE2'+i].style;
			style2.display = "none";
			}
			else if (document.layers)
			{
			// this is the way nn4 works
			var style2 = document.layers['CHILDAGE2'+i].style;
			style2.display = "none";
			}
		}
	}

	break;
case 'childno2':
	for(i=1;i<=totalages;i++)
	{
		if(ageobj.value>=i)
		{
			if (document.getElementById)
			{
			// this is the way the standards work
			var style2 = document.getElementById('CHILDAGE3'+i).style;
			style2.display = "block";
			}
			else if (document.all)
			{
			// this is the way old msie versions work
			var style2 = document.all['CHILDAGE3'+i].style;
			style2.display = "block";
			}
			else if (document.layers)
			{
			// this is the way nn4 works
			var style2 = document.layers['CHILDAGE3'+i].style;
			style2.display = "block";
			}
		}
		else
		{
			if (document.getElementById)
			{
			// this is the way the standards work
			var style2 = document.getElementById('CHILDAGE3'+i).style;
			style2.display = "none";
			}
			else if (document.all)
			{
			// this is the way old msie versions work
			var style2 = document.all['CHILDAGE3'+i].style;
			style2.display = "none";
			}
			else if (document.layers)
			{
			// this is the way nn4 works
			var style2 = document.layers['CHILDAGE3'+i].style;
			style2.display = "none";
			}
		}
	}
	break;
}
}

