// Gaia Ajax Widgets Copyright (C) 2007 - 2008 Gaiaware AS. details at http://ajaxwidgets.com/
Gaia.LinkButton=Class.create();Object.extend(Gaia.LinkButton.prototype,Gaia.WebControl.prototype);Object.extend(Gaia.LinkButton.prototype,{initialize:function(element,options){this.initializeLinkButton(element,options);},initializeLinkButton:function(element,options){this.initializeWebControl(element,options);this.element.href='javascript:';},setText:function(value){this.element.innerHTML=value;return this;},setPostBackUrl:function(value){this.options.url=value;return this;},setOnClientClick:function(value){Element.observe(this.element,'click',value.bindAsEventListener(this));return this;},setEnabled:function(value){if(value)
this.element.disabled=false;else
this.element.disabled=true;this.options.enabled=!this.element.disabled;return this;},_onEvent:function(evt,evtName,bubbleUp){if(evtName=='click'&&this.options.enabled==false){Event.stop(evt);return;}
try{this._onEventImpl(evt,evtName);}catch(err){alert('Gaia Error: _onEvent/Gaia - Control.js fire\n\nError Message:\n\n'+err);}
if(!bubbleUp)
Event.stop(evt);},setTabIndex:function(value){this.element.tabIndex=value;return this;},_getElementPostValue:function(){return'';},_getElementPostValueEvent:function(){return'&__EVENTARGUMENT=&__EVENTTARGET='+this.getCallbackName();}});Gaia.LinkButton.browserFinishedLoading=true;