var colorposter={
targetobj: null,

initialize:function(r,g,b, hexvalue){
this.rvalue=r
this.gvalue=g
this.bvalue=b
this.hexvalue=hexvalue
if (this.targetobj!=null){
this.targetobj.value=this.hexvalue
this.divobj.style.backgroundColor="#"+this.hexvalue
}
},

echocolor:function(inputobj, divobj){
this.targetobj=inputobj
this.divobj=document.getElementById(divobj)
//this.targetobj.style.boderWidth="2px" //set focus
this.targetobj.onblur=function(){
//inputobj.style.backgroundColor="white" //unset focus
document.getElementById(divobj).style.backgroundColor="#"+inputobj.value
}
}


}