	
	//## Checks that the number off people booked for are allowed for the number of rooms and types booked for
	function check_ppl_p_room ( )
	{
		var ppl_room;
		var adults;
		var children;
		var booked_for_ppl;
		var no_rooms;
		var ppl_allowed;
		var total_allowed;

		// calculate the number off ppl trying to squeeze into the selected number of rooms 
		
		ppl_room = $("#booker select#rooms_type").val();
		adults = parseInt ( $("#booker select#adults").val() );
		children = parseInt ( $("#booker select#children").val() );
		booked_for_ppl = ( adults + children ); 
		no_rooms = parseInt ( $("#booker select#rooms").val() );
		ppl_allowed = parseInt ( ppl_room.slice ( ppl_room.indexOf( '_' )+1 ) );
		total_allowed = ( no_rooms * ppl_allowed );

		if ( booked_for_ppl > total_allowed )
		{
			alert ( 'This room cannot accommodate that number of people. Please select another room or change the number of people.' );
			$("#booker select#rooms_type").focus();
			return false;
		}	
		
		return true;
	}