// <![CDATA[

function blocktoggle( i )
{
	if ( document.getElementById )
	{
		var block = document.getElementById( 'blocktoggle' + i );
		if ( block !== null && block.style )
		{
			shown[i] = shown[i] ? false : true;
			currentdisplay = shown[i] ? 'block' : 'none';
			document.getElementById( 'blocktoggle' + i ).style.display = currentdisplay;
		}
	}
}

function blockdisplay( i )
{
	if ( document.getElementById )
	{
		if ( document.getElementById( "blockdisplay" + i ) )
		{
			for ( j = 1; j < 1000; j++ )
			{
				if ( document.getElementById( 'blockdisplay' + j ) )
				{
					document.getElementById( 'blockdisplay' + j ).style.display = 'none';
				}
				else
				{
					j = 1000;
				}
			}
			if ( i )
			{
				document.getElementById( "blockdisplay" + i ).style.display = 'block';
			}
		}
	}
}
// ]]>



// <![CDATA[
  
    blockdisplay(1);

    // TODO validate script
    function validate(nr) {
      if ( document.getElementById ) {
        var currForm = document.roomsForm;
        var errDiv = document.getElementById('errorNoRoomSelected');

        if ( nr == 2 ) {
          currForm = document.roomsForm2;
          errDiv = document.getElementById('errorNoRoomSelected2');
        }

        
          if ( true  ) {
            errDiv.style.display="block";
            return false;
          } else {
            return true;
          }
        

      } else {
        return true;
      }
    }

  

  
// ]]>