anchor.diff:  		var posTran=${process.posTran};
   
   		//Calculating times when the injection speed changes
  -		var speed=[process.injectionSpeed_1,process.injectionSpeed_2,process.injectionSpeed_3,process.injectionSpeed_4,process.injectionSpeed_5,process.injectionSpeed_6];
  -		var position=[startPosition,process.injSpeedPosition_1,process.injSpeedPosition_2,process.injSpeedPosition_3,process.injSpeedPosition_4,process.injSpeedPosition_5,process.injSpeedPosition_6];
  +		var speed=[
  +		   		${process.injectionSpeed_1},
  +		   		${process.injectionSpeed_2},
  +		   		${process.injectionSpeed_3},
  +		   		${process.injectionSpeed_4},
  +		   		${process.injectionSpeed_5},
  +		   		${process.injectionSpeed_6}
  +		   		];
  +		var position=[
  +		      		startPosition,
  +		      		${process.injSpeedPosition_1},
  +		      		${process.injSpeedPosition_2},
  +		      		${process.injSpeedPosition_3},
  +		      		${process.injSpeedPosition_4},
  +		      		${process.injSpeedPosition_5},
  +		      		${process.injSpeedPosition_6}
  +		      		];
   
   		var pointer=0;
   		var timeSpeed=[];
  +		var previousTime=0;
   
   		while(pointer<speed.length)
   		{
   			if(position[pointer+1]!=0)
   			{
  -				timeSpeed[pointer]=(position[pointer]-position[pointer+1])/speed[pointer];
  +				timeSpeed[pointer]=(position[pointer]-position[pointer+1])/speed[pointer]+previousTime;
  +				previousTime=timeSpeed[pointer];
   			}
   			else
   			{
  -				timeSpeed[pointer]=(position[pointer+1]-posTran)/speed[pointer];
  +				timeSpeed[pointer]=(position[pointer]-posTran)/speed[pointer]+previousTime;
  +				previousTime=timeSpeed[pointer];
   				break;
   			}
   			pointer++;
   		}		
   		
  -        var data = google.visualization.arrayToDataTable([
  +		var dataRow=
  +          [
             ['Time','Pressure'],
             [ times[0],injectionPressure],
             [  times[1],injectionPressure],
  
positive.code:     function drawChart() {
          var startPosition=${process.shotSize + process.posTran};
          var injectionTime=${process.shotSize / process.injectionSpeed_1}; // Needs to an average
          var times=[0,injectionTime];
          times[2]=times[1]+${process.holdingTime_1};
          times[3]=times[2]+${process.holdingTime_2};
  
negative.code: </DIV>
  <DIV   id="processChart">
  </DIV>
  <DIV   id="processChart2">
  </DIV>
  
  </body>
  </html>