/*
	Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved.
	Available via Academic Free License >= 2.1 OR the modified BSD license.
	see: http://dojotoolkit.org/license for details
*/


window[esri._dojoScopeName||"dojo"]._xdResourceLoaded(function(_1,_2,_3){return {depends:[["provide","dijit.form.SimpleTextarea"],["require","dijit.form.TextBox"]],defineResource:function(_4,_5,_6){if(!_4._hasResource["dijit.form.SimpleTextarea"]){_4._hasResource["dijit.form.SimpleTextarea"]=true;_4.provide("dijit.form.SimpleTextarea");_4.require("dijit.form.TextBox");_4.declare("dijit.form.SimpleTextarea",_5.form.TextBox,{baseClass:"dijitTextBox dijitTextArea",attributeMap:_4.delegate(_5.form._FormValueWidget.prototype.attributeMap,{rows:"textbox",cols:"textbox"}),rows:"3",cols:"20",templateString:"<textarea ${!nameAttrSetting} dojoAttachPoint='focusNode,containerNode,textbox' autocomplete='off'></textarea>",postMixInProperties:function(){if(!this.value&&this.srcNodeRef){this.value=this.srcNodeRef.value;}this.inherited(arguments);},buildRendering:function(){this.inherited(arguments);if(_4.isIE&&this.cols){_4.addClass(this.textbox,"dijitTextAreaCols");}},filter:function(_7){if(_7){_7=_7.replace(/\r/g,"");}return this.inherited(arguments);},_previousValue:"",_onInput:function(e){if(this.maxLength){var _8=parseInt(this.maxLength);var _9=this.textbox.value.replace(/\r/g,"");var _a=_9.length-_8;if(_a>0){if(e){_4.stopEvent(e);}var _b=this.textbox;if(_b.selectionStart){var _c=_b.selectionStart;var cr=0;if(_4.isOpera){cr=(this.textbox.value.substring(0,_c).match(/\r/g)||[]).length;}this.textbox.value=_9.substring(0,_c-_a-cr)+_9.substring(_c-cr);_b.setSelectionRange(_c-_a,_c-_a);}else{if(_4.doc.selection){_b.focus();var _d=_4.doc.selection.createRange();_d.moveStart("character",-_a);_d.text="";_d.select();}}}this._previousValue=this.textbox.value;}this.inherited(arguments);}});}}};});