if(dwr==null){var dwr={}}if(dwr.util==null){dwr.util={}}if(DWRUtil==null){var DWRUtil=dwr.util}dwr.util._escapeHtml=true;dwr.util.setEscapeHtml=function(a){dwr.util._escapeHtml=a};dwr.util._shouldEscapeHtml=function(a){if(a&&a.escapeHtml!=null){return a.escapeHtml}return dwr.util._escapeHtml};dwr.util.escapeHtml=function(a){var c=document.createElement("div");var b=document.createTextNode(a);c.appendChild(b);return c.innerHTML};dwr.util.unescapeHtml=function(a){var b=document.createElement("div");b.innerHTML=a.replace(/<\/?[^>]+>/gi,"");return b.childNodes[0]?b.childNodes[0].nodeValue:""};dwr.util.replaceXmlCharacters=function(a){a=a.replace("&","+");a=a.replace("<","\u2039");a=a.replace(">","\u203A");a=a.replace("'","\u2018");a=a.replace('"',"\u201C");return a};dwr.util.containsXssRiskyCharacters=function(a){return(a.indexOf("&")!=-1||a.indexOf("<")!=-1||a.indexOf(">")!=-1||a.indexOf("'")!=-1||a.indexOf('"')!=-1)};dwr.util.onReturn=function(a,b){if(!a){a=window.event}if(a&&a.keyCode&&a.keyCode==13){b()}};dwr.util.selectRange=function(c,d,a){c=dwr.util._getElementById(c,"selectRange()");if(c==null){return}if(c.setSelectionRange){c.setSelectionRange(d,a)}else{if(c.createTextRange){var b=c.createTextRange();b.moveStart("character",d);b.moveEnd("character",a-c.value.length);b.select()}}c.focus()};if(document.getElementById){dwr.util.byId=function(){var c=new Array();for(var b=0;b<arguments.length;b++){var a=arguments[b];if(typeof a=="string"){a=document.getElementById(a)}if(arguments.length==1){return a}c.push(a)}return c}}else{if(document.all){dwr.util.byId=function(){var c=new Array();for(var b=0;b<arguments.length;b++){var a=arguments[b];if(typeof a=="string"){a=document.all[a]}if(arguments.length==1){return a}c.push(a)}return c}}}var $;if(!$){$=dwr.util.byId}dwr.util.toDescriptiveString=function(f,a,j){if(a===undefined){a=1}var c={};if(dwr.util._isObject(j)){c=j}var h={escapeHtml:false,baseIndent:"",childIndent:"\u00A0\u00A0",lineTerminator:"\n",oneLineMaxItems:5,shortStringMaxLength:13,propertyNameMaxLength:30};for(var b in h){if(!(b in c)){c[b]=h[b]}}if(typeof j=="number"){var g=j;c.baseIndent=dwr.util._indent2(g,c)}var i={document:true,ownerDocument:true,all:true,parentElement:true,parentNode:true,offsetParent:true,children:true,firstChild:true,lastChild:true,previousSibling:true,nextSibling:true,innerHTML:true,outerHTML:true,innerText:true,outerText:true,textContent:true,attributes:true,style:true,currentStyle:true,runtimeStyle:true,parentTextEdit:true};function e(q,k,m,x){var n="";try{if(typeof q=="string"){var t=q;if(k==0&&t.length>x.shortStringMaxLength){t=t.substring(0,x.shortStringMaxLength-3)+"..."}if(x.escapeHtml){var y=t.split("\n");for(var r=0;r<y.length;r++){y[r]=dwr.util.escapeHtml(y[r])}t=y.join("\n")}if(k==0){t=t.replace(/\n|\r|\t/g,function(z){switch(z){case"\n":return"\\n";case"\r":return"";case"\t":return"\\t"}})}else{t=t.replace(/\n|\r|\t/g,function(z){switch(z){case"\n":return x.lineTerminator+d(m+1,x);case"\r":return"";case"\t":return"\\t"}})}n='"'+t+'"'}else{if(typeof q=="function"){n="function"}else{if(dwr.util._isArray(q)){if(k==0){if(q.length>0){n="[...]"}else{n="[]"}}else{var w=[];w.push("[");var s=0;for(var r=0;r<q.length;r++){if(!(r in q)){continue}var u=q[r];if(s>0){w.push(", ")}if(k==1){if(s==x.oneLineMaxItems){w.push("...");break}}else{w.push(x.lineTerminator+d(m+1,x))}if(r!=s){w.push(r);w.push(":")}w.push(e(u,k-1,m+1,x));s++}if(k>1){w.push(x.lineTerminator+d(m,x))}w.push("]");n=w.join("")}}else{if(dwr.util._isObject(q)&&!dwr.util._isDate(q)){if(k==0){n=dwr.util._detailedTypeOf(q)}else{var w=[];if(dwr.util._detailedTypeOf(q)!="Object"){w.push(dwr.util._detailedTypeOf(q));if(typeof q.valueOf()!="object"){w.push(":");w.push(e(q.valueOf(),1,m,x))}w.push(" ")}w.push("{");var v=dwr.util._isHTMLElement(q);var s=0;for(var l in q){var p=q[l];if(v){if(!p){continue}if(typeof p=="function"){continue}if(i[l]){continue}if(l.toUpperCase()==l){continue}}if(s>0){w.push(", ")}if(k==1){if(s==x.oneLineMaxItems){w.push("...");break}}else{w.push(x.lineTerminator+d(m+1,x))}w.push(l.length>x.propertyNameMaxLength?l.substring(0,x.propertyNameMaxLength-3)+"...":l);w.push(":");w.push(e(p,k-1,m+1,x));s++}if(k>1&&s>0){w.push(x.lineTerminator+d(m,x))}w.push("}");n=w.join("")}}else{n=""+q}}}}return n}catch(o){return(o.message?o.message:""+o)}}function d(m,k){var n=[];n.push(k.baseIndent);for(var l=0;l<m;l++){n.push(k.childIndent)}return n.join("")}return e(f,a,0,c)};dwr.util.useLoadingMessage=function(a){var b;if(a){b=a}else{b="Loading"}dwr.engine.setPreHook(function(){var d=dwr.util.byId("disabledZone");if(!d){d=document.createElement("div");d.setAttribute("id","disabledZone");d.style.position="absolute";d.style.zIndex="1000";d.style.left="0px";d.style.top="0px";d.style.width="100%";d.style.height="100%";document.body.appendChild(d);var c=document.createElement("div");c.setAttribute("id","messageZone");c.style.position="absolute";c.style.top="0px";c.style.right="0px";c.style.background="red";c.style.color="white";c.style.fontFamily="Arial,Helvetica,sans-serif";c.style.padding="4px";d.appendChild(c);var e=document.createTextNode(b);c.appendChild(e);dwr.util._disabledZoneUseCount=1}else{dwr.util.byId("messageZone").innerHTML=b;d.style.visibility="visible";dwr.util._disabledZoneUseCount++}});dwr.engine.setPostHook(function(){dwr.util._disabledZoneUseCount--;if(dwr.util._disabledZoneUseCount==0){dwr.util.byId("disabledZone").style.visibility="hidden"}})};dwr.util.setHighlightHandler=function(a){dwr.util._highlightHandler=a};dwr.util.yellowFadeHighlightHandler=function(a){dwr.util._yellowFadeProcess(a,0)};dwr.util._yellowFadeSteps=["d0","b0","a0","90","98","a0","a8","b0","b8","c0","c8","d0","d8","e0","e8","f0","f8"];dwr.util._yellowFadeProcess=function(a,b){a=dwr.util.byId(a);if(b<dwr.util._yellowFadeSteps.length){a.style.backgroundColor="#ffff"+dwr.util._yellowFadeSteps[b];setTimeout("dwr.util._yellowFadeProcess('"+a.id+"',"+(b+1)+")",200)}else{a.style.backgroundColor="transparent"}};dwr.util.borderFadeHighlightHandler=function(a){a.style.borderWidth="2px";a.style.borderStyle="solid";dwr.util._borderFadeProcess(a,0)};dwr.util._borderFadeSteps=["d0","b0","a0","90","98","a0","a8","b0","b8","c0","c8","d0","d8","e0","e8","f0","f8"];dwr.util._borderFadeProcess=function(a,b){a=dwr.util.byId(a);if(b<dwr.util._borderFadeSteps.length){a.style.borderColor="#ff"+dwr.util._borderFadeSteps[b]+dwr.util._borderFadeSteps[b];setTimeout("dwr.util._borderFadeProcess('"+a.id+"',"+(b+1)+")",200)}else{a.style.backgroundColor="transparent"}};dwr.util.focusHighlightHandler=function(b){try{b.focus()}catch(a){}};dwr.util._highlightHandler=null;dwr.util.highlight=function(b,a){if(a&&a.highlightHandler){a.highlightHandler(dwr.util.byId(b))}else{if(dwr.util._highlightHandler!=null){dwr.util._highlightHandler(dwr.util.byId(b))}}};dwr.util.setValue=function(f,g,c){if(g==null){g=""}if(c==null){c={}}if(dwr.util._shouldEscapeHtml(c)&&typeof(g)=="string"){g=dwr.util.escapeHtml(g)}var h=f;if(typeof f=="string"){f=dwr.util.byId(f);if(f&&f.id!=h){f=null}}var a=null;if(f==null){a=document.getElementsByName(h);if(a.length>=1){f=a.item(0)}}if(f==null){dwr.util._debug("setValue() can't find an element with id/name: "+h+".");return}dwr.util.highlight(f,c);if(dwr.util._isHTMLElement(f,"select")){if(f.type=="select-multiple"&&dwr.util._isArray(g)){dwr.util._selectListItems(f,g)}else{dwr.util._selectListItem(f,g)}return}if(dwr.util._isHTMLElement(f,"input")){if(f.type=="radio"||f.type=="checkbox"){if(a&&a.length>=1){for(var d=0;d<a.length;d++){var e=a.item(d);if(e.type!=f.type){continue}if(dwr.util._isArray(g)){e.checked=false;for(var b=0;b<g.length;b++){if(g[d]==e.value){e.checked=true}}}else{e.checked=(e.value==g)}}}else{f.checked=(g==true)}}else{f.value=g}return}if(dwr.util._isHTMLElement(f,"textarea")){f.value=g;return}if(g.nodeType){if(g.nodeType==9){g=g.documentElement}g=dwr.util._importNode(f.ownerDocument,g,true);f.appendChild(g);return}f.innerHTML=g};dwr.util._selectListItems=function(d,e){var c=false;var b;var a;for(b=0;b<d.options.length;b++){d.options[b].selected=false;for(a=0;a<e.length;a++){if(d.options[b].value==e[a]){d.options[b].selected=true}}}if(c){return}for(b=0;b<d.options.length;b++){for(a=0;a<e.length;a++){if(d.options[b].text==e[a]){d.options[b].selected=true}}}};dwr.util._selectListItem=function(c,d){var b=false;var a;for(a=0;a<c.options.length;a++){if(c.options[a].value==d){c.options[a].selected=true;b=true}else{c.options[a].selected=false}}if(b){return}for(a=0;a<c.options.length;a++){if(c.options[a].text==d){c.options[a].selected=true}else{c.options[a].selected=false}}};dwr.util.getValue=function(j,k){if(k==null){k={}}var g=j;if(typeof j=="string"){j=dwr.util.byId(j);if(j&&j.id!=g){j=null}}var a=null;if(j==null){a=document.getElementsByName(g);if(a.length>=1){j=a.item(0)}}if(j==null){dwr.util._debug("getValue() can't find an element with id/name: "+g+".");return""}if(dwr.util._isHTMLElement(j,"select")){if(j.type=="select-multiple"){var d=new Array();for(var f=0;f<j.options.length;f++){var h=j.options[f];if(h.selected){var e=h.getAttributeNode("value");if(e&&e.specified){d.push(h.value)}else{d.push(h.text)}}}return d}else{var b=j.selectedIndex;if(b!=-1){var h=j.options[b];var e=h.getAttributeNode("value");if(e&&e.specified){return h.value}return h.text}else{return""}}}if(dwr.util._isHTMLElement(j,"input")){if(j.type=="radio"){if(a&&a.length>=1){for(var f=0;f<a.length;f++){var c=a.item(f);if(c.type==j.type){if(c.checked){return c.value}}}}return j.checked}if(j.type=="checkbox"){if(a&&a.length>=1){var d=[];for(var f=0;f<a.length;f++){var c=a.item(f);if(c.type==j.type){if(c.checked){d.push(c.value)}}}return d}return j.checked}return j.value}if(dwr.util._isHTMLElement(j,"textarea")){return j.value}if(dwr.util._shouldEscapeHtml(k)){if(j.textContent){return j.textContent}else{if(j.innerText){return j.innerText}}}return j.innerHTML};dwr.util.getText=function(b){b=dwr.util._getElementById(b,"getText()");if(b==null){return null}if(!dwr.util._isHTMLElement(b,"select")){dwr.util._debug("getText() can only be used with select elements. Attempt to use: "+dwr.util._detailedTypeOf(b)+" from  id: "+orig+".");return""}var a=b.selectedIndex;if(a!=-1){return b.options[a].text}else{return""}};dwr.util.setValues=function(c,a){var b="";if(a&&a.prefix){b=a.prefix}if(a&&a.idPrefix){b=a.idPrefix}dwr.util._setValuesRecursive(c,b)};dwr.util._setValuesRecursive=function(c,e){if(dwr.util._isArray(c)&&c.length>0&&dwr.util._isObject(c[0])){for(var b=0;b<c.length;b++){dwr.util._setValuesRecursive(c[b],e+"["+b+"]")}}else{if(dwr.util._isObject(c)&&!dwr.util._isArray(c)){for(var d in c){var a=e?e+"."+d:d;if(dwr.util._isObject(c[d])&&!dwr.util._isArray(c[d])||dwr.util._isArray(c[d])&&c[d].length>0&&dwr.util._isObject(c[d][0])){dwr.util._setValuesRecursive(c[d],a)}else{if(typeof c[d]=="function"){}else{if(dwr.util.byId(a)!=null||document.getElementsByName(a).length>=1){dwr.util.setValue(a,c[d])}}}}}}};dwr.util.getValues=function(c,a){if(typeof c=="string"||dwr.util._isHTMLElement(c)){return dwr.util.getFormValues(c)}else{var b="";if(a!=null&&a.prefix){b=a.prefix}if(a!=null&&a.idPrefix){b=a.idPrefix}dwr.util._getValuesRecursive(c,b);return c}};dwr.util.getFormValues=function(a){var f=null;if(typeof a=="string"){f=document.forms[a];if(f==null){f=dwr.util.byId(a)}}else{if(dwr.util._isHTMLElement(a)){f=a}}if(f!=null){if(f.elements==null){alert("getFormValues() requires an object or reference to a form element.");return null}var d={};var b;var e;for(var c=0;c<f.elements.length;c++){if(f[c].type in {button:0,submit:0,reset:0,image:0,file:0}){continue}if(f[c].name){b=f[c].name;e=dwr.util.getValue(b)}else{if(f[c].id){b=f[c].id}else{b="element"+c}e=dwr.util.getValue(f[c])}d[b]=e}return d}};dwr.util._getValuesRecursive=function(c,e){if(dwr.util._isArray(c)&&c.length>0&&dwr.util._isObject(c[0])){for(var b=0;b<c.length;b++){dwr.util._getValuesRecursive(c[b],e+"["+b+"]")}}else{if(dwr.util._isObject(c)&&!dwr.util._isArray(c)){for(var d in c){var a=e?e+"."+d:d;if(dwr.util._isObject(c[d])&&!dwr.util._isArray(c[d])||dwr.util._isArray(c[d])&&c[d].length>0&&dwr.util._isObject(c[d][0])){dwr.util._getValuesRecursive(c[d],a)}else{if(typeof c[d]=="function"){}else{if(dwr.util.byId(a)!=null||document.getElementsByName(a).length>=1){c[d]=dwr.util.getValue(a)}}}}}}};dwr.util.addOptions=function(o,f){o=dwr.util._getElementById(o,"addOptions()");if(o==null){return}var c=dwr.util._isHTMLElement(o,"select");var j=dwr.util._isHTMLElement(o,["ul","ol"]);if(!c&&!j){dwr.util._debug("addOptions() can only be used with select/ul/ol elements. Attempt to use: "+dwr.util._detailedTypeOf(o));return}if(f==null){return}var h=arguments.length;var p={};var n=arguments[h-1];if(h>2&&dwr.util._isObject(n)){p=n;h--}var g=null;if(h>=3){g=arguments[2]}var d=null;if(h>=4){d=arguments[3]}if(!p.optionCreator&&c){p.optionCreator=dwr.util._defaultOptionCreator}if(!p.optionCreator&&j){p.optionCreator=dwr.util._defaultListItemCreator}var m,k,l;if(dwr.util._isArray(f)){for(var e=0;e<f.length;e++){p.data=f[e];p.text=null;p.value=null;if(c){if(g!=null){if(d!=null){p.text=dwr.util._getValueFrom(f[e],d);p.value=dwr.util._getValueFrom(f[e],g)}else{p.text=p.value=dwr.util._getValueFrom(f[e],g)}}else{p.text=p.value=dwr.util._getValueFrom(f[e])}if(p.text!=null||p.value){var b=p.optionCreator(p);b.text=p.text;b.value=p.value;o.options[o.options.length]=b}}else{p.value=dwr.util._getValueFrom(f[e],g);if(p.value!=null){l=p.optionCreator(p);if(dwr.util._shouldEscapeHtml(p)){p.value=dwr.util.escapeHtml(p.value)}l.innerHTML=p.value;o.appendChild(l)}}}}else{if(d!=null){if(!c){alert("dwr.util.addOptions can only create select lists from objects.");return}for(var a in f){p.data=f[a];p.value=dwr.util._getValueFrom(f[a],g);p.text=dwr.util._getValueFrom(f[a],d);if(p.text!=null||p.value){var b=p.optionCreator(p);b.text=p.text;b.value=p.value;o.options[o.options.length]=b}}}else{if(!c){dwr.util._debug("dwr.util.addOptions can only create select lists from objects.");return}for(var a in f){p.data=f[a];if(!g){p.value=a;p.text=f[a]}else{p.value=f[a];p.text=a}if(p.text!=null||p.value){var b=p.optionCreator(p);b.text=p.text;b.value=p.value;o.options[o.options.length]=b}}}}dwr.util.highlight(o,p)};dwr.util._getValueFrom=function(a,b){if(b==null){return a}else{if(typeof b=="function"){return b(a)}else{return a[b]}}};dwr.util._defaultOptionCreator=function(a){return new Option()};dwr.util._defaultListItemCreator=function(a){return document.createElement("li")};dwr.util.removeAllOptions=function(b){b=dwr.util._getElementById(b,"removeAllOptions()");if(b==null){return}var a=dwr.util._isHTMLElement(b,"select");var c=dwr.util._isHTMLElement(b,["ul","ol"]);if(!a&&!c){dwr.util._debug("removeAllOptions() can only be used with select, ol and ul elements. Attempt to use: "+dwr.util._detailedTypeOf(b));return}if(a){b.options.length=0}else{while(b.childNodes.length>0){b.removeChild(b.firstChild)}}};dwr.util.addRows=function(e,d,a,b){e=dwr.util._getElementById(e,"addRows()");if(e==null){return}if(!dwr.util._isHTMLElement(e,["table","tbody","thead","tfoot"])){dwr.util._debug("addRows() can only be used with table, tbody, thead and tfoot elements. Attempt to use: "+dwr.util._detailedTypeOf(e));return}if(!b){b={}}if(!b.rowCreator){b.rowCreator=dwr.util._defaultRowCreator}if(!b.cellCreator){b.cellCreator=dwr.util._defaultCellCreator}var c,f;if(dwr.util._isArray(d)){for(f=0;f<d.length;f++){b.rowData=d[f];b.rowIndex=f;b.rowNum=f;b.data=null;b.cellNum=-1;c=dwr.util._addRowInner(a,b);if(c!=null){e.appendChild(c)}}}else{if(typeof d=="object"){f=0;for(var g in d){b.rowData=d[g];b.rowIndex=g;b.rowNum=f;b.data=null;b.cellNum=-1;c=dwr.util._addRowInner(a,b);if(c!=null){e.appendChild(c)}f++}}}dwr.util.highlight(e,b)};dwr.util._addRowInner=function(a,b){var d=b.rowCreator(b);if(d==null){return null}for(var e=0;e<a.length;e++){var c=a[e];if(typeof c=="function"){b.data=c(b.rowData,b)}else{b.data=c||""}b.cellNum=e;var f=b.cellCreator(b);if(f!=null){if(b.data!=null){if(dwr.util._isHTMLElement(b.data)){f.appendChild(b.data)}else{if(dwr.util._shouldEscapeHtml(b)&&typeof(b.data)=="string"){f.innerHTML=dwr.util.escapeHtml(b.data)}else{f.innerHTML=b.data}}}d.appendChild(f)}}return d};dwr.util._defaultRowCreator=function(a){return document.createElement("tr")};dwr.util._defaultCellCreator=function(a){return document.createElement("td")};dwr.util.removeAllRows=function(c,a){c=dwr.util._getElementById(c,"removeAllRows()");if(c==null){return}if(!a){a={}}if(!a.filter){a.filter=function(){return true}}if(!dwr.util._isHTMLElement(c,["table","tbody","thead","tfoot"])){dwr.util._debug("removeAllRows() can only be used with table, tbody, thead and tfoot elements. Attempt to use: "+dwr.util._detailedTypeOf(c));return}var d=c.firstChild;var b;while(d!=null){b=d.nextSibling;if(a.filter(d)){c.removeChild(d)}d=b}};dwr.util.setClassName=function(b,a){b=dwr.util._getElementById(b,"setClassName()");if(b==null){return}b.className=a};dwr.util.addClassName=function(b,a){b=dwr.util._getElementById(b,"addClassName()");if(b==null){return}b.className+=" "+a};dwr.util.removeClassName=function(c,a){c=dwr.util._getElementById(c,"removeClassName()");if(c==null){return}var b=new RegExp("(^|\\s)"+a+"(\\s|$)","g");c.className=c.className.replace(b,"")};dwr.util.toggleClassName=function(c,a){c=dwr.util._getElementById(c,"toggleClassName()");if(c==null){return}var b=new RegExp("(^|\\s)"+a+"(\\s|$)");if(b.test(c.className)){c.className=c.className.replace(b,"")}else{c.className+=" "+a}};dwr.util.cloneNode=function(b,a){b=dwr.util._getElementById(b,"cloneNode()");if(b==null){return null}if(a==null){a={}}var c=b.cloneNode(true);if(a.idPrefix||a.idSuffix){dwr.util._updateIds(c,a)}else{dwr.util._removeIds(c)}b.parentNode.insertBefore(c,b);return c};dwr.util._updateIds=function(d,a){if(a==null){a={}}if(d.id){d.setAttribute("id",(a.idPrefix||"")+d.id+(a.idSuffix||""))}var c=d.childNodes;for(var b=0;b<c.length;b++){var e=c.item(b);if(e.nodeType==1){dwr.util._updateIds(e,a)}}};dwr.util._removeIds=function(c){if(c.id){c.removeAttribute("id")}var b=c.childNodes;for(var a=0;a<b.length;a++){var d=b.item(a);if(d.nodeType==1){dwr.util._removeIds(d)}}};dwr.util.cloneNodeForValues=function(a,c,b){a=dwr.util._getElementById(a,"cloneNodeForValues()");if(a==null){return null}if(b==null){b={}}var d;if(b.idPrefix!=null){d=b.idPrefix}else{d=a.id||""}return dwr.util._cloneNodeForValuesRecursive(a,c,d,b)};dwr.util._cloneNodeForValuesRecursive=function(a,c,e,j){if(dwr.util._isArray(c)){var g=[];for(var d=0;d<c.length;d++){var h=c[d];var f=dwr.util._cloneNodeForValuesRecursive(a,h,e+"["+d+"]",j);g.push(f)}return g}else{if(dwr.util._isObject(c)&&!dwr.util._isArray(c)){var f=a.cloneNode(true);if(j.updateCloneStyle&&f.style){for(var b in j.updateCloneStyle){f.style[b]=j.updateCloneStyle[b]}}dwr.util._replaceIds(f,a.id,e);a.parentNode.insertBefore(f,a);dwr.util._cloneSubArrays(c,e,j);return f}}return null};dwr.util._replaceIds=function(f,h,c){if(f.id){var b=null;if(f.id==h){b=c}else{if(f.id.length>h.length){if(f.id.substr(0,h.length)==h){var a=f.id.charAt(h.length);if(a=="."||a=="["){b=c+f.id.substr(h.length)}}}}if(b){f.setAttribute("id",b)}else{f.removeAttribute("id")}}var e=f.childNodes;for(var d=0;d<e.length;d++){var g=e.item(d);if(g.nodeType==1){dwr.util._replaceIds(g,h,c)}}};dwr.util._cloneSubArrays=function(c,f,a){for(prop in c){var b=c[prop];if(dwr.util._isArray(b)){if(b.length>0&&dwr.util._isObject(b[0])){var e=f+"."+prop;var d=dwr.util.byId(e);if(d!=null){dwr.util._cloneNodeForValuesRecursive(d,b,e,a)}}}else{if(dwr.util._isObject(b)){dwr.util._cloneSubArrays(b,f+"."+prop,a)}}}};dwr.util._getElementById=function(b,a){var c=b;b=dwr.util.byId(b);if(b==null){dwr.util._debug(a+" can't find an element with id: "+c+".")}return b};dwr.util._isHTMLElement=function(c,e){if(c==null||typeof c!="object"||c.nodeName==null){return false}if(e!=null){var d=c.nodeName.toLowerCase();if(typeof e=="string"){return d==e.toLowerCase()}if(dwr.util._isArray(e)){var a=false;for(var b=0;b<e.length&&!a;b++){if(d==e[b].toLowerCase()){a=true}}return a}dwr.util._debug("dwr.util._isHTMLElement was passed test node name that is neither a string or array of strings");return false}return true};dwr.util._detailedTypeOf=function(a){var b=typeof a;if(b=="object"){b=Object.prototype.toString.apply(a);b=b.substring(8,b.length-1)}return b};dwr.util._isObject=function(a){return(a&&typeof a=="object")};dwr.util._isArray=function(a){return(a&&a.join)};dwr.util._isDate=function(a){return(a&&a.toUTCString)?true:false};dwr.util._importNode=function(f,e,b){var d;if(e.nodeType==1){d=f.createElement(e.nodeName);for(var c=0;c<e.attributes.length;c++){var a=e.attributes[c];if(a.nodeValue!=null&&a.nodeValue!=""){d.setAttribute(a.name,a.nodeValue)}}if(typeof e.style!="undefined"){d.style.cssText=e.style.cssText}}else{if(e.nodeType==3){d=f.createTextNode(e.nodeValue)}}if(b&&e.hasChildNodes()){for(c=0;c<e.childNodes.length;c++){d.appendChild(dwr.util._importNode(f,e.childNodes[c],true))}}return d};dwr.util._debug=function(f,d){var a=false;try{if(window.console){if(d&&window.console.trace){window.console.trace()}window.console.log(f);a=true}else{if(window.opera&&window.opera.postError){window.opera.postError(f);a=true}}}catch(c){}if(!a){var b=document.getElementById("dwr-debug");if(b){var e=f+"<br/>"+b.innerHTML;if(e.length>2048){e=e.substring(0,2048)}b.innerHTML=e}}};
