anchor.diff:   */
   function showEntryDiv(element,divName)
   {
  -	var div=document.getElementById(divName);
  +	var name="#"+divName;
  +	var div=$(name);
   	if(div!=null)
   	{
  -		div.style.visibility="visible";
  +		div.show();
  +	}	
  +}
  +
  +/*
  + * Makes the element hidden
  + */
  +function hideEntryDiv(element,divName)
  +{
  +	var name="#"+divName;
  +	var div=$(name);
  +	if(div!=null)
  +	{
  +		div.hide();
  +	}	
  +}
  +
  +/*
  + * Clears the value attribute of element
  + */
  +
  +function clearValueOfElementId(idOfElement)
  +{	
  +	var name="#"+idOfElement;
  +	var element=$(name);
  +	if(element!=null)
  +	{
  +		element.removeAttr("value");
   	}
   }
   
   /*
  - * Makes the element hidden
  - */
  -function hideEntryDiv(element,divName)
  -{
  -	var div=document.getElementById(divName);
  -	if(div!=null)
  -	{
  -		div.style.visibility="hidden";
  -	}
  -}
  -
  -/*
  - * Clears the value attribute of element
  - */
  -
  -function clearValueOfElementId(idOfElement)
  -{
  -	var element=document.getElementById(idOfElement);
  -	if(element!=null)
  -	{
  -		element.value="";
  -	}	
  -}
  -
  -/*
    * Copies values from the html table to the <div> used for entry and edit
    */
   function populateForm(divName)
   {
  -	var table=document.getElementById("dimensionsList");
  -	var rows=table.getElementsByTagName("input");
  -	var rowSelected;
  -	var check=false;
  -	for(var i=0,rlen=rows.length;i<rlen;i++)
  -	{
  -			if(rows[i].getAttribute("name")=="edit")
  -			{
  -				if(rows[i].checked==true)
  -				{
  -					rowSelected=rows[i].parentNode.parentNode;
  -					check=true;
  -					break;				
  -				}
  -			}
  -	}
  -	if(check)
  -	{
  -		var div=document.getElementById(divName);
  -		var values=rowSelected.getElementsByTagName("td");
  -		if(values!=null && div!=null)
  -		{
  -			var inputs=div.getElementsByTagName("input");
  -			for(var i=1,j=0;i<inputs.length;i++,j++)
  -			{
  -				var input=inputs[i];
  -				if(input.type=="checkbox")
  -				{
  -					input.checked=values[j].childNodes[0].data;	
  -				}
  -				if(input.type=="submit")
  -				{
  -					j--;	
  -				}
  -				else
  -				{
  -					input.value=values[j].childNodes[0].data;	
  -				}
  -					
  -			}
  -		}	
  +	var row=$("tr[style*='background-color: red']");
  +	if(row!=null)
  +	{
  +		row.css("background-color","blue");
  +		var div=$("#"+divName);
  +		var values=[];
  +
  +		row.children("td").each(
  +				function(){
  +					values.push($(this).text());
  +					console.log($(this).text());
  +		});
  +
  +		$('#DimensionId').attr("value",values[0]);
  +		$('#dimension').attr("value",values[1]);
  +		$('#nominal').attr("value",values[2]);
  +		$('#upperLimit').attr("value",values[3]);
  +		$('#lowerLimit').attr("value",values[4]);
  +		$('#noOfMeasurements').attr("value",values[5]);
  +		$('#active').attr("checked",values[6]);
  +		$('#tableId').attr("value",values[7]);
   	}
   }
   /*
  
positive.code: 	left: 29%;
  	font-size: xx-large;
  	padding: 5px;
  	visibility:hidden;
  }
  
  #dimensionEntry table 
  
negative.code: 	visibility:hidden;
  }
  </STYLE>
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
  <script src="${pageContext.request.contextPath}/js/SearchPage.js"></script>
  <script src="${pageContext.request.contextPath}/js/TablesSort.js"></script>
  <script src="${pageContext.request.contextPath}/js/InputFocus.js"></script>
  