

	function updateBarGraphs(one, two, three, four, five, six, projectId) { 
		//var projects = projectList[0].getElementsByTagName("project"); 
		//alert('one, two, three, four, five, six, projectId');
		var additionality 	= 0;
		var demValue 		= 0;
		var health 			= 0;
		var innovation 		= 0;
		var transparency 	= 0;
		var total 			= 15;
		//	additionality = parseInt(projects[i].getAttribute("donors")); 
		additionality = one
		demValue = two; 
		health = three; 
		innovation = four; 
		transparency = five; 
		total = six; 
		var graph1bar1 = document.getElementById("graph1bar1"+projectId); 
		var graph1bar2 = document.getElementById("graph1bar2"+projectId); 
		var graph1bar3 = document.getElementById("graph1bar3"+projectId); 
		var graph1bar4 = document.getElementById("graph1bar4"+projectId); 
		var graph1bar5 = document.getElementById("graph1bar5"+projectId); 
		var graph1bar6 = document.getElementById("graph1bar6"+projectId);
		var bar1 = document.getElementById("bar1"+projectId);  

		var baseFromLeft = 15;
		graph1bar1.style.width =  baseFromLeft * additionality + 'px';
		graph1bar2.style.width =  baseFromLeft * demValue 	    + 'px';
		graph1bar3.style.width =  baseFromLeft * health 		+ 'px';
		graph1bar4.style.width =  baseFromLeft * innovation 	+ 'px';
		graph1bar5.style.width =  baseFromLeft * transparency  + 'px';
		graph1bar6.style.width =  baseFromLeft * total 		+ 'px';
		bar1.style.width =  baseFromLeft * total 		+ 'px';

	} 
	function toggleLayer( whichLayer, layer2 )
	{
	  var elem, vis;
	  if( document.getElementById ) // this is the way the standards work
	    elem = document.getElementById( whichLayer );
	  else if( document.all ) // this is the way old msie versions work
	      elem = document.all[whichLayer];
	  else if( document.layers ) // this is the way nn4 works
	    elem = document.layers[whichLayer];
	  vis = elem.style;
	  // if the style.display value is blank we try to figure it out here
	  if(vis.display==''&&elem.offsetWidth!=undefined&&elem.offsetHeight!=undefined)
	    vis.display = (elem.offsetWidth!=0&&elem.offsetHeight!=0)?'block':'none';
	  vis.display = (vis.display==''||vis.display=='block')?'none':'block';
	
	if( document.getElementById ) // this is the way the standards work
	    elem = document.getElementById( layer2 );
	  else if( document.all ) // this is the way old msie versions work
	      elem = document.all[layer2];
	  else if( document.layers ) // this is the way nn4 works
	    elem = document.layers[layer2];
	  vis = elem.style;
	  // if the style.display value is blank we try to figure it out here
	  if(vis.display==''&&elem.offsetWidth!=undefined&&elem.offsetHeight!=undefined)
	    vis.display = (elem.offsetWidth!=0&&elem.offsetHeight!=0)?'block':'none';
	  vis.display = (vis.display==''||vis.display=='block')?'none':'block';
	}
	function jsonEscape(string)
	{
	    return string.replace(/\\/g, "\\\\").replace(/\n/g, "\\n").replace(/\r/g, "\\r" ).replace(/"/g, '\\"');
	}