function hidediv()
{
	if (document.getelementById)
	{ 	// DOM3 = IE5, NS6
		document.getElementById('selectroomid').style.visibility = 'hidden';
	}
	else
	{
		if (document.layers)
		{ // Netscape 4
			document.selectroomid.visibility = 'hidden';
		}
		else 
		{ // IE 4
			document.getElementById('selectroomid').style.visibility = 'hidden';
		}
	}
}

function showdiv()
{
	if (document.getelementById)
	{ // DOM3 = IE5, NS6
		document.getElementById('selectroomid').style.visibility = 'visible';
	}
	else
	{
		if (document.layers)
		{ // Netscape 4
			document.selectroomid.visibility = 'visible';
		}
		else
		{ // IE 4
			document.getElementById('selectroomid').style.visibility = 'visible';
		}
	}
}

function checkpersons()
{
	var numadults = parseInt(document.getElementById('numberofadults').value);
	var numchild = parseInt(document.getElementById('numberofchild').value);

	var totalpersons = numadults + numchild;
	
	if(totalpersons > 3)
	{
		alert("Total number of persons cannot be more than 3");
		document.getElementById('numberofchild').selectedIndex = 0;
	}	
}