function PatternAgent(id){this.init(id);this.value=null;this.update=AgentPCB.update;this.getObj=function(){return $(this.id);};this.getValue=function(){return this.getObj().value;};this.isStable=function(){return true;};this.onBlur=function(){this.update();};this.onFocus=function(){this.verifiedLabel=this.getValue();this.listener_update();};this.listener_update=function(){if(this.hasFocus()){if(this.value!=this.getValue()){this.update();this.value=this.getValue();}setTimeout('Manager.getAgentWithId("'+this.id+'").listener_update()',500);}};this.toString=function(){return"PatternAgent: {id: "+this.id+"; fieldRef: "+this.fieldRef+"}";};}PatternAgent.prototype=new Agent();