anchor.diff:  		});
   	}
   	
  -	function changeStatus(availability){ 
  -		if (availability == false){
  -			$("#distribute").val("true");
  -			$("#distribute").text("Start");
  -			$("#distribute").attr({"title" : "Start distributing tickets"});
  -		}
  -		else{
  -			$("#distribute").val("false");
  -			$("#distribute").text("Stop");
  -			$("#distribute").attr({"title" : "Stop distributing tickets"});
  -		}
  -	}
  -	
  -	var date = new Date();
  -	function toTime(timestamp){
  -		date.setTime(timestamp);
  -		return ("00" + date.getHours()).slice(-2) + ":" + ("00" + date.getMinutes()).slice(-2);
  +	function modifyRestaurant(){
  +		alert(name);
   	}
   	
   	$(document).ready(function() {
  
positive.code: 			clearTimeout(refresh);
  		});
  		
  		$("#add").hover(function(){
  		    $("#add option:first-child").text("Select Size");
  		}, function(){
  		    $("#add option:first-child").text("Add Ticket");
  		});
  		
  		$("#add").change(function(){
  			$.ajax({
  				url : "http://<%=request.getServerName()%>:7001/rms/ticket/create",
  				data: {id: id, type: type, size: $("#add").val()},
  				cache: false,
  				success: function(data) {
  					showTickets();
  				}
  			});
  			$("#add")[0].selectedIndex = 0;
  		});
  		
  		$("#call").click(function(){
  			$.ajax({
  				url : "http://<%=request.getServerName()%>:7001/rms/ticket/call",
  				data: {id: id, type: type},
  				cache: false,
  				success: function(data) {
  					showTickets();
  				}
  			});
  		});
  		
  		$("#tickettable").on("click", ".remove", function(){
  			number = $(this).val();
  			$.ajax({
  				url : "http://<%=request.getServerName()%>:7001/rms/ticket/remove",
  				data: {id: id, type:type, number:number},
  				cache: false,
  				success: function(data) {
  					showTickets();
  				}
  			});
  		});
  	});
  </script>
  </head>
  
negative.code: 				<tbody id="tickettable"></tbody>
  			</table>
  		</div>
  		<div class="content" id="restaurant"><form action="modifyRestaurant()">
  			<div class="fieldname">Name</div>
  			<input type="text" class="field" id="name" name="name"><br><br>
  			<div class="fieldname">Phone Number</div>
  			<input type="text" class="field" id="phoneNo" name="phoneNo"><br><br>
  			<div class="fieldname">Opening Hours</div>
  			<input type="text" class="field" id="openingHours" name="openingHours"><br><br>
  			<div class="fieldname">District</div>
  			<select class="shortfield" id="area" name="areaId"></select>&nbsp;&nbsp;
  			<select class="shortfield" id="district" name="districtId"></select><br><br>
  			<div class="fieldname">Address</div>
  			<input type="text" class="longfield" id="address" name="address"><br><br>
  			<div class="fieldname">Description</div>
  			<input type="text" class="longfield" id="description" name="description"><br><br>
  			<input type="submit" value="Save Changes">
  		</form></div>
  		<div class="content" id="account">Account Details</div>
  	</div>
  