anchor.diff:  			  newDate.setDate(newDate.getDate() + days);
   			  return newDate;
   		}
  +	/*	function generateColours() {
  +			var colours = [];
  +			while (colours.length < 100) {
  +			    do {
  +			        var colour = Math.floor((Math.random()*1000000)+1);
  +			    } while (colours.indexOf(colour) >= 0);
  +			    colours.push("#" + ("000000" + colour.toString(16)).slice(-6));
  +			}
  +			return colours;
  +		}*/
   		function convertDateIntToString(dateInt) {
   			switch (dateInt) {
   				case 1:
  
positive.code: 		var baseG = 0;
  		var baseB = 0;
  		var table = document.getElementById("dateTable");
  		for (i in responseTimes) {
  			var tableCell = document.getElementById(i.toString());
  			if (responseTimes[i] === "0") {
  				tableCell.style.backgroundColor = "rgb(255,255,255)";
  			} else {
  				var bValue = baseB + (responseTimes[i] * 70);
  				tableCell.style.backgroundColor = "rgb(" + baseR.toString() + "," + baseG.toString() + "," + bValue.toString() + ")";	
  			}
  		}
  	
  		/* get difference between two dates
  
negative.code:    int startHour = 8;//(int)request.getAttribute("startHour");
     String startTimeOfDay = "am";//(String)request.getAttribute("startTimeOfDay");
     int noOfHours = 3;//(int)request.getAttribute("noOfHours");
     String responsesSoFar =  "Gautam,Byron,MuYao,PeiXuan,Matthew";//(String)request.getAttribute("responsesSoFar");
     String responseTimes = "1,2,3,2,2,2,0,1,4";//(String)request.getAttribute("responseTimes"); %>
  <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  <html>
  