<?php
$rooms     = '';
$children  = '';
$children2 = '';
$children3 = '';
$children4 = '';

if (isset($_GET['rooms'])) {
    $rooms = intval($_GET['rooms']);
} elseif (isset($_GET['children'])) {
    $children = intval($_GET['children']);
} elseif (isset($_GET['children2'])) {
    $children2 = intval($_GET['children2']);
} elseif (isset($_GET['children3'])) {
    $children3 = intval($_GET['children3']);
} elseif (isset($_GET['children4'])) {
    $children4 = intval($_GET['children4']);
}
?>

<?php if($rooms == 2) { ?>

<div style="position:absolute; left:104px; top: 50px;"><label class="formlabel">ROOM 2</label></div>                          
			
		<div style="position:absolute; left:101px; top: 67px;">	
			<select id="adults2" name="adults2" style="width:50px;">
				<option value="1">1</option>
				<option value="2" selected="selected">2</option>
				<option value="3">3</option>
				<option value="4">4</option>
			</select>
		</div>
	
		<div style="position:absolute; left:101px; top: 99px;">
			<select id="children2" name="children2" onchange="getChildren2(this.value)" style="width:50px;">
				<option value="0" selected="selected">0</option>
				<option value="1">1</option>
				<option value="2">2</option>
				<option value="3">3</option>
			</select>
    	</div>
<?php } ?>

<?php if($rooms == 3) { ?>

<div style="position:absolute; left:104px; top: 50px;"><label class="formlabel">ROOM 2</label></div>                          
			
		<div style="position:absolute; left:101px; top: 67px;">	
			<select id="adults2" name="adults2" style="width:50px;">
				<option value="1">1</option>
				<option value="2" selected="selected">2</option>
				<option value="3">3</option>
				<option value="4">4</option>
			</select>
		</div>
			
		<div style="position:absolute; left:101px; top: 99px;">
			<select id="children2" name="children2" onchange="getChildren2(this.value)" style="width:50px;">
				<option value="0" selected="selected">0</option>
				<option value="1">1</option>
				<option value="2">2</option>
				<option value="3">3</option>
			</select>
    	</div>
		
        <div style="position:absolute; left:156px; top: 50px;"><label class="formlabel">ROOM 3</label></div>
			
		<div style="position:absolute; left:154px; top: 67px;">	
			<select id="adults3" name="adults3" style="width:50px;">
				<option value="1">1</option>
				<option value="2" selected="selected">2</option>
				<option value="3">3</option>
				<option value="4">4</option>
			</select>
		</div>
			
		<div style="position:absolute; left:154px; top: 99px;">	
			<select id="children3" name="children3" onchange="getChildren3(this.value)" style="width:50px;">
				<option value="0" selected="selected">0</option>
				<option value="1">1</option>
				<option value="2">2</option>
				<option value="3">3</option>
			</select>
    	</div>

<?php } ?>

<?php if($rooms == 4) { ?>

<div style="position: absolute; left: 106px; top: 50px;"><label class="formlabel">ROOM 2</label></div>                          
			
		<div style="position: absolute; left: 101px; top: 67px;">	
			<select id="adults2" name="adults2" style="width:50px;">
				<option value="1">1</option>
				<option value="2" selected="selected">2</option>
				<option value="3">3</option>
				<option value="4">4</option>
			</select>
		</div>
			
		<div style="position: absolute; left: 101px; top: 99px;">
			<select id="children2" name="children2" onchange="getChildren2(this.value)" style="width:50px;">
				<option value="0" selected="selected">0</option>
				<option value="1">1</option>
				<option value="2">2</option>
				<option value="3">3</option>
			</select>
    	</div>
		
        <div style="position: absolute; left: 158px; top: 50px;"><label class="formlabel">ROOM 3</label></div>
			
		<div style="position: absolute; left: 154px; top: 67px;">	
			<select id="adults3" name="adults3" style="width:50px;">
				<option value="1">1</option>
				<option value="2" selected="selected">2</option>
				<option value="3">3</option>
				<option value="4">4</option>
			</select>
		</div>
			
		<div style="position: absolute; left: 154px; top: 99px;">	
			<select id="children3" name="children3" onchange="getChildren3(this.value)" style="width:50px;">
				<option value="0" selected="selected">0</option>
				<option value="1">1</option>
				<option value="2">2</option>
				<option value="3">3</option>
			</select>
    	</div>
	
	
	
        <div style="position: absolute; left: 210px; top: 50px; width:50px;"><label class="formlabel">ROOM 4</label></div>                           
			
		<div style="position: absolute; left: 207px; top: 67px;">	
			<select id="adults4" name="adults4" style="width:50px;">
				<option value="1">1</option>
				<option value="2" selected="selected">2</option>
				<option value="3">3</option>
				<option value="4">4</option>
			</select>
		</div>
			
		<div style="position: absolute; left: 207px; top: 99px;">	
			<select id="children4" name="children4" onchange="getChildren4(this.value)" style="width:50px;">
				<option value="0" selected="selected">0</option>
				<option value="1">1</option>
				<option value="2">2</option>
				<option value="3">3</option>
			</select>
    	</div>

<?php } ?>

<?php if($children == 1) { ?>

<div style="position:absolute; left:1px; top: 135px;" class="formlabel">Age 1</div>
		
		<div style="position:absolute; left:50px; top: 131px;">	
			<select id="age" name="age" style="width:50px;">
				<option value="" selected="selected">-</option>
				<option value="0"><1</option>
				<option value="1">1</option>
				<option value="2">2</option>
				<option value="3">3</option>
				<option value="4">4</option>
				<option value="5">5</option>
				<option value="6">6</option>
				<option value="7">7</option>
				<option value="8">8</option>
				<option value="9">9</option>
				<option value="10">10</option>
				<option value="11">11</option>
				<option value="12">12</option>
				<option value="13">13</option>
				<option value="14">14</option>
				<option value="15">15</option>
				<option value="16">16</option>
				<option value="17">17</option>
				<option value="18">18</option>
			</select>
		</div>
<?php } ?>

<?php if($children == 2) { ?>

<div style="position:absolute; left:1px; top: 135px;" class="formlabel">Age 1</div>
		
		<div style="position:absolute; left:50px; top: 131px;">	
			<select id="age" name="age">
				<option value="" selected="selected">-</option>
				<option value="0"><1</option>
				<option value="1">1</option>
				<option value="2">2</option>
				<option value="3">3</option>
				<option value="4">4</option>
				<option value="5">5</option>
				<option value="6">6</option>
				<option value="7">7</option>
				<option value="8">8</option>
				<option value="9">9</option>
				<option value="10">10</option>
				<option value="11">11</option>
				<option value="12">12</option>
				<option value="13">13</option>
				<option value="14">14</option>
				<option value="15">15</option>
				<option value="16">16</option>
				<option value="17">17</option>
				<option value="18">18</option>
			</select>
		</div>
		
	<div style="height:30px;">        
		<div style="position:absolute; left:1px; top: 167px;" class="formlabel">Age 2</div>
		
		<div style="position:absolute; left:50px; top: 163px;">	
			<select id="age2" name="age2">
				<option value="" selected="selected">-</option>
				<option value="0"><1</option>
				<option value="1">1</option>
				<option value="2">2</option>
				<option value="3">3</option>
				<option value="4">4</option>
				<option value="5">5</option>
				<option value="6">6</option>
				<option value="7">7</option>
				<option value="8">8</option>
				<option value="9">9</option>
				<option value="10">10</option>
				<option value="11">11</option>
				<option value="12">12</option>
				<option value="13">13</option>
				<option value="14">14</option>
				<option value="15">15</option>
				<option value="16">16</option>
				<option value="17">17</option>
				<option value="18">18</option>
			</select>
		</div>
	</div>

<?php } ?>

<?php if($children == 3) { ?>

<div style="position:absolute; left:1px; top: 135px;" class="formlabel">Age 1</div>
		
		<div style="position: absolute; left: 48px; top: 131px;">	
			<select id="age" name="age">
				<option value="" selected="selected">-</option>
				<option value="0"><1</option>
				<option value="1">1</option>
				<option value="2">2</option>
				<option value="3">3</option>
				<option value="4">4</option>
				<option value="5">5</option>
				<option value="6">6</option>
				<option value="7">7</option>
				<option value="8">8</option>
				<option value="9">9</option>
				<option value="10">10</option>
				<option value="11">11</option>
				<option value="12">12</option>
				<option value="13">13</option>
				<option value="14">14</option>
				<option value="15">15</option>
				<option value="16">16</option>
				<option value="17">17</option>
				<option value="18">18</option>
			</select>
		</div>

	<div style="height:60px;">		
	  <div style="position:absolute; left:1px; top: 167px;" class="formlabel">Age 2</div>
		
		<div style="position: absolute; left: 48px; top: 163px;">	
			<select id="age2" name="age2">
				<option value="" selected="selected">-</option>
				<option value="0"><1</option>
				<option value="1">1</option>
				<option value="2">2</option>
				<option value="3">3</option>
				<option value="4">4</option>
				<option value="5">5</option>
				<option value="6">6</option>
				<option value="7">7</option>
				<option value="8">8</option>
				<option value="9">9</option>
				<option value="10">10</option>
				<option value="11">11</option>
				<option value="12">12</option>
				<option value="13">13</option>
				<option value="14">14</option>
				<option value="15">15</option>
				<option value="16">16</option>
				<option value="17">17</option>
				<option value="18">18</option>
			</select>
		</div>
 		
		<div style="position:absolute; left:1px; top: 199px;" class="formlabel">Age 3</div>
		
		<div style="position: absolute; left: 48px; top: 195px;">	
			<select id="age3" name="age3">
				<option value="" selected="selected">-</option>
				<option value="0"><1</option>
				<option value="1">1</option>
				<option value="2">2</option>
				<option value="3">3</option>
				<option value="4">4</option>
				<option value="5">5</option>
				<option value="6">6</option>
				<option value="7">7</option>
				<option value="8">8</option>
				<option value="9">9</option>
				<option value="10">10</option>
				<option value="11">11</option>
				<option value="12">12</option>
				<option value="13">13</option>
				<option value="14">14</option>
				<option value="15">15</option>
				<option value="16">16</option>
				<option value="17">17</option>
				<option value="18">18</option>
			</select>
		</div>
	</div>
<?php } ?>


<?php //Data Children 2 dropdown ---------------------------------------------------------------------------- ?>

<?php if($children2 == 1) { ?>

<div style="position:absolute; left:101px; top: 131px;">	
			<select id="age2_1" name="age2_1">
				<option value="" selected="selected">-</option>
				<option value="0"><1</option>
				<option value="1">1</option>
				<option value="2">2</option>
				<option value="3">3</option>
				<option value="4">4</option>
				<option value="5">5</option>
				<option value="6">6</option>
				<option value="7">7</option>
				<option value="8">8</option>
				<option value="9">9</option>
				<option value="10">10</option>
				<option value="11">11</option>
				<option value="12">12</option>
				<option value="13">13</option>
				<option value="14">14</option>
				<option value="15">15</option>
				<option value="16">16</option>
				<option value="17">17</option>
				<option value="18">18</option>
			</select>
		</div>
        
<?php } ?>

<?php if($children2 == 2) { ?>

<div style="position:absolute; left:101px; top: 131px;">	
			<select id="age2_1" name="age2_1">
				<option value="" selected="selected">-</option>
				<option value="0"><1</option>
				<option value="1">1</option>
				<option value="2">2</option>
				<option value="3">3</option>
				<option value="4">4</option>
				<option value="5">5</option>
				<option value="6">6</option>
				<option value="7">7</option>
				<option value="8">8</option>
				<option value="9">9</option>
				<option value="10">10</option>
				<option value="11">11</option>
				<option value="12">12</option>
				<option value="13">13</option>
				<option value="14">14</option>
				<option value="15">15</option>
				<option value="16">16</option>
				<option value="17">17</option>
				<option value="18">18</option>
			</select>
		</div>

	<div style="height:30px;">        
        <div style="position:absolute; left:101px; top: 163px;">	
			<select id="age2_2" name="age2_2">
				<option value="" selected="selected">-</option>
				<option value="0"><1</option>
				<option value="1">1</option>
				<option value="2">2</option>
				<option value="3">3</option>
				<option value="4">4</option>
				<option value="5">5</option>
				<option value="6">6</option>
				<option value="7">7</option>
				<option value="8">8</option>
				<option value="9">9</option>
				<option value="10">10</option>
				<option value="11">11</option>
				<option value="12">12</option>
				<option value="13">13</option>
				<option value="14">14</option>
				<option value="15">15</option>
				<option value="16">16</option>
				<option value="17">17</option>
				<option value="18">18</option>
			</select>
		</div>
	</div>
<?php } ?>

<?php if($children2 == 3) { ?>

<div style="position: absolute; left: 101px; top: 131px;">	
			<select id="age2_1" name="age2_1">
				<option value="" selected="selected">-</option>
				<option value="0"><1</option>
				<option value="1">1</option>
				<option value="2">2</option>
				<option value="3">3</option>
				<option value="4">4</option>
				<option value="5">5</option>
				<option value="6">6</option>
				<option value="7">7</option>
				<option value="8">8</option>
				<option value="9">9</option>
				<option value="10">10</option>
				<option value="11">11</option>
				<option value="12">12</option>
				<option value="13">13</option>
				<option value="14">14</option>
				<option value="15">15</option>
				<option value="16">16</option>
				<option value="17">17</option>
				<option value="18">18</option>
			</select>
		</div>

	<div style="height:60px;">        
        <div style="position: absolute; left: 101px; top: 163px;">	
			<select id="age2_2" name="age2_2">
				<option value="" selected="selected">-</option>
				<option value="0"><1</option>
				<option value="1">1</option>
				<option value="2">2</option>
				<option value="3">3</option>
				<option value="4">4</option>
				<option value="5">5</option>
				<option value="6">6</option>
				<option value="7">7</option>
				<option value="8">8</option>
				<option value="9">9</option>
				<option value="10">10</option>
				<option value="11">11</option>
				<option value="12">12</option>
				<option value="13">13</option>
				<option value="14">14</option>
				<option value="15">15</option>
				<option value="16">16</option>
				<option value="17">17</option>
				<option value="18">18</option>
			</select>
		</div>
        
		<div style="position: absolute; left: 101px; top: 195px;">	
			<select id="age2_3" name="age2_3">
				<option value="" selected="selected">-</option>
				<option value="0"><1</option>
				<option value="1">1</option>
				<option value="2">2</option>
				<option value="3">3</option>
				<option value="4">4</option>
				<option value="5">5</option>
				<option value="6">6</option>
				<option value="7">7</option>
				<option value="8">8</option>
				<option value="9">9</option>
				<option value="10">10</option>
				<option value="11">11</option>
				<option value="12">12</option>
				<option value="13">13</option>
				<option value="14">14</option>
				<option value="15">15</option>
				<option value="16">16</option>
				<option value="17">17</option>
				<option value="18">18</option>
			</select>
		</div>
	</div>
<?php } ?>


<?php //Data Children 3 dropdown ---------------------------------------------------------------------------- ?>

<?php if($children3 == 1) { ?>

<div style="position:absolute; left:154px; top: 131px;">	
			<select id="age3_1" name="age3_1">
				<option value="" selected="selected">-</option>
				<option value="0"><1</option>
				<option value="1">1</option>
				<option value="2">2</option>
				<option value="3">3</option>
				<option value="4">4</option>
				<option value="5">5</option>
				<option value="6">6</option>
				<option value="7">7</option>
				<option value="8">8</option>
				<option value="9">9</option>
				<option value="10">10</option>
				<option value="11">11</option>
				<option value="12">12</option>
				<option value="13">13</option>
				<option value="14">14</option>
				<option value="15">15</option>
				<option value="16">16</option>
				<option value="17">17</option>
				<option value="18">18</option>
			</select>
		</div>
        
<?php } ?>

<?php if($children3 == 2) { ?>

<div style="position:absolute; left:154px; top: 131px;">	
			<select id="age3_1" name="age3_1">
				<option value="" selected="selected">-</option>
				<option value="0"><1</option>
				<option value="1">1</option>
				<option value="2">2</option>
				<option value="3">3</option>
				<option value="4">4</option>
				<option value="5">5</option>
				<option value="6">6</option>
				<option value="7">7</option>
				<option value="8">8</option>
				<option value="9">9</option>
				<option value="10">10</option>
				<option value="11">11</option>
				<option value="12">12</option>
				<option value="13">13</option>
				<option value="14">14</option>
				<option value="15">15</option>
				<option value="16">16</option>
				<option value="17">17</option>
				<option value="18">18</option>
			</select>
		</div>

	<div style="height:30px;">        
        <div style="position:absolute; left:154px; top: 163px;">	
			<select id="age3_2" name="age3_2">
				<option value="" selected="selected">-</option>
				<option value="0"><1</option>
				<option value="1">1</option>
				<option value="2">2</option>
				<option value="3">3</option>
				<option value="4">4</option>
				<option value="5">5</option>
				<option value="6">6</option>
				<option value="7">7</option>
				<option value="8">8</option>
				<option value="9">9</option>
				<option value="10">10</option>
				<option value="11">11</option>
				<option value="12">12</option>
				<option value="13">13</option>
				<option value="14">14</option>
				<option value="15">15</option>
				<option value="16">16</option>
				<option value="17">17</option>
				<option value="18">18</option>
			</select>
		</div>
	</div>
<?php } ?>

<?php if($children3 == 3) { ?>

<div style="position: absolute; left: 154px; top: 131px;">	
			<select id="age3_1" name="age3_1">
				<option value="" selected="selected">-</option>
				<option value="0"><1</option>
				<option value="1">1</option>
				<option value="2">2</option>
				<option value="3">3</option>
				<option value="4">4</option>
				<option value="5">5</option>
				<option value="6">6</option>
				<option value="7">7</option>
				<option value="8">8</option>
				<option value="9">9</option>
				<option value="10">10</option>
				<option value="11">11</option>
				<option value="12">12</option>
				<option value="13">13</option>
				<option value="14">14</option>
				<option value="15">15</option>
				<option value="16">16</option>
				<option value="17">17</option>
				<option value="18">18</option>
			</select>
		</div>

	<div style="height:60px;">        
        <div style="position: absolute; left: 154px; top: 163px;">	
			<select id="age3_2" name="age3_2">
				<option value="" selected="selected">-</option>
				<option value="0"><1</option>
				<option value="1">1</option>
				<option value="2">2</option>
				<option value="3">3</option>
				<option value="4">4</option>
				<option value="5">5</option>
				<option value="6">6</option>
				<option value="7">7</option>
				<option value="8">8</option>
				<option value="9">9</option>
				<option value="10">10</option>
				<option value="11">11</option>
				<option value="12">12</option>
				<option value="13">13</option>
				<option value="14">14</option>
				<option value="15">15</option>
				<option value="16">16</option>
				<option value="17">17</option>
				<option value="18">18</option>
			</select>
		</div>
        
        <div style="position: absolute; left: 154px; top: 195px;">	
			<select id="age3_3" name="age3_3">
				<option value="" selected="selected">-</option>
				<option value="0"><1</option>
				<option value="1">1</option>
				<option value="2">2</option>
				<option value="3">3</option>
				<option value="4">4</option>
				<option value="5">5</option>
				<option value="6">6</option>
				<option value="7">7</option>
				<option value="8">8</option>
				<option value="9">9</option>
				<option value="10">10</option>
				<option value="11">11</option>
				<option value="12">12</option>
				<option value="13">13</option>
				<option value="14">14</option>
				<option value="15">15</option>
				<option value="16">16</option>
				<option value="17">17</option>
				<option value="18">18</option>
			</select>
		</div>
	</div>
<?php } ?>


<?php //Data Children 3 dropdown ---------------------------------------------------------------------------- ?>

<?php if($children4 == 1) { ?>

<div style="position:absolute; left:207px; top: 131px;">	
			<select id="age4_1" name="age4_1">
				<option value="" selected="selected">-</option>
				<option value="0"><1</option>
				<option value="1">1</option>
				<option value="2">2</option>
				<option value="3">3</option>
				<option value="4">4</option>
				<option value="5">5</option>
				<option value="6">6</option>
				<option value="7">7</option>
				<option value="8">8</option>
				<option value="9">9</option>
				<option value="10">10</option>
				<option value="11">11</option>
				<option value="12">12</option>
				<option value="13">13</option>
				<option value="14">14</option>
				<option value="15">15</option>
				<option value="16">16</option>
				<option value="17">17</option>
				<option value="18">18</option>
			</select>
		</div>
        
<?php } ?>

<?php if($children4 == 2) { ?>

<div style="position:absolute; left:207px; top: 131px;">	
			<select id="age4_1" name="age4_1">
				<option value="" selected="selected">-</option>
				<option value="0"><1</option>
				<option value="1">1</option>
				<option value="2">2</option>
				<option value="3">3</option>
				<option value="4">4</option>
				<option value="5">5</option>
				<option value="6">6</option>
				<option value="7">7</option>
				<option value="8">8</option>
				<option value="9">9</option>
				<option value="10">10</option>
				<option value="11">11</option>
				<option value="12">12</option>
				<option value="13">13</option>
				<option value="14">14</option>
				<option value="15">15</option>
				<option value="16">16</option>
				<option value="17">17</option>
				<option value="18">18</option>
			</select>
		</div>

	<div style="height:30px;">        
        <div style="position:absolute; left:207px; top: 163px;">	
			<select id="age4_2" name="age4_2">
				<option value="" selected="selected">-</option>
				<option value="0"><1</option>
				<option value="1">1</option>
				<option value="2">2</option>
				<option value="3">3</option>
				<option value="4">4</option>
				<option value="5">5</option>
				<option value="6">6</option>
				<option value="7">7</option>
				<option value="8">8</option>
				<option value="9">9</option>
				<option value="10">10</option>
				<option value="11">11</option>
				<option value="12">12</option>
				<option value="13">13</option>
				<option value="14">14</option>
				<option value="15">15</option>
				<option value="16">16</option>
				<option value="17">17</option>
				<option value="18">18</option>
			</select>
		</div>
	</div>
<?php } ?>

<?php if($children4 == 3) { ?>

<div style="position: absolute; left: 207px; top: 131px;">	
			<select id="age4_1" name="age4_1">
				<option value="" selected="selected">-</option>
				<option value="0"><1</option>
				<option value="1">1</option>
				<option value="2">2</option>
				<option value="3">3</option>
				<option value="4">4</option>
				<option value="5">5</option>
				<option value="6">6</option>
				<option value="7">7</option>
				<option value="8">8</option>
				<option value="9">9</option>
				<option value="10">10</option>
				<option value="11">11</option>
				<option value="12">12</option>
				<option value="13">13</option>
				<option value="14">14</option>
				<option value="15">15</option>
				<option value="16">16</option>
				<option value="17">17</option>
				<option value="18">18</option>
			</select>
		</div>

	<div style="height:60px;">
        <div style="position: absolute; left: 207px; top: 163px;">	
			<select id="age4_2" name="age4_2">
				<option value="" selected="selected">-</option>
				<option value="0"><1</option>
				<option value="1">1</option>
				<option value="2">2</option>
				<option value="3">3</option>
				<option value="4">4</option>
				<option value="5">5</option>
				<option value="6">6</option>
				<option value="7">7</option>
				<option value="8">8</option>
				<option value="9">9</option>
				<option value="10">10</option>
				<option value="11">11</option>
				<option value="12">12</option>
				<option value="13">13</option>
				<option value="14">14</option>
				<option value="15">15</option>
				<option value="16">16</option>
				<option value="17">17</option>
				<option value="18">18</option>
			</select>
		</div>
        
        <div style="position: absolute; left: 207px; top: 195px;">	
			<select id="age4_3" name="age4_3">
				<option value="" selected="selected">-</option>
				<option value="0"><1</option>
				<option value="1">1</option>
				<option value="2">2</option>
				<option value="3">3</option>
				<option value="4">4</option>
				<option value="5">5</option>
				<option value="6">6</option>
				<option value="7">7</option>
				<option value="8">8</option>
				<option value="9">9</option>
				<option value="10">10</option>
				<option value="11">11</option>
				<option value="12">12</option>
				<option value="13">13</option>
				<option value="14">14</option>
				<option value="15">15</option>
				<option value="16">16</option>
				<option value="17">17</option>
				<option value="18">18</option>
			</select>
		</div>
	</div>
<?php } ?>