function Graph(value1, oTargetElement, oColor) {
	this.value1 = value1;
    this.oTargetElement = oTargetElement;
    this.oColor = oColor;
}

Graph.prototype = 
{	
    write: function() {
    	//var iMaxWidth = 360;  //perfil publico
    	var iMaxWidth = 240;    //respuesta a la 5ta.
    	
    	var iWidth1 = Math.round((this.value1*iMaxWidth)/100);
    	//var iWidth3 = iMaxWidth-iWidth1-iWidth2;
    	
        var oTarget = this.oTargetElement;        
        oTarget.style.visibility = "visible";
        oTarget.style.display = "block";
		
        var oBar = this.oTargetElement;
        //oBar.style.backgroundColor = "#77bbcc";
        oBar.style.backgroundColor =this.oColor;
        oBar.style.visibility = "visible";
        oBar.style.display = "block";    
        oBar.style.width = iWidth1 + "px";           
        
    }
	
};


