LumpenOrganon.UI.Utility=new Object();LumpenOrganon.UI.Utility.writeMethods={writeTableStart:function(d,c){var e=null;var a=null;var b=null;if(d){a=d}else{a="100%"}if(c){b=c}e="<table";if(a){e+=' width="'+a+'"'}if(b){e+=' style="'+b+'"'}e+=">";return e},writeRowStart:function(d,c){var e=null;var a=null;var b=null;if(d){a=d}if(c){b=c}e="<tr";if(a){e+=' width="'+a+'"'}if(b){e+=' style="'+b+'"'}e+=">";return e},writeCellStart:function(d,g){var f=null;var c=null;var b=null;if(d){c=d}if(g){b=g}f="<td";if(c){var e=null;e=this.writeStyleString(c);f+=e}if(b){f+=' align="'+b+'"'}f+=">";return f},writeTableEnd:function(){sz="</table>";return sz},writeRowEnd:function(){sz="</tr>";return sz},writeCellEnd:function(){sz="</td>";return sz},writeStyleAttribute:function(a,c){var d=document.getElementById(a);if(!d||typeof(d)=="undefined"){return}if(!c||c.length==0){return}var e="";for(var b=0;b<c.length;b++){e+=c[b].name;e+=":";e+=c[b].value;e+=";"}d.setAttribute("style",e)},writeStyleString:function(b){var c=' style="';for(var a=0;a<b.length;a++){c+=b[a].name;c+=":";c+=b[a].value;c+=";"}c+='"';return c},writeImage:function(a){if(!a){return}sz='<img src="'+a+'" border="no" />';return sz},writeBreak:function(c){var d=0;var b="";if(!c){return"<br />"}else{d=c;for(var a=0;a<d;a++){b+="<br />"}}return b},startSpan:function(a){var c="<span";var b=null;if(a){b=this.writeStyleString(a);c+=b}c+=">";return c},endSpan:function(){return"</span>"},startAnchor:function(a){var b="<a";if(a){b+=' name="'+a+'"'}b+=">";return b},endAnchor:function(){return"</a>"},startDiv:function(a){var c="<div";var b=null;if(a){b=this.writeStyleString(a);c+=b}c+=">";return c},endDiv:function(){return"</div>"},startItalic:function(){return"<em>"},endItalic:function(){return"</em>"},writeSpace:function(a){if(!a){return"&nbsp;"}var c="";for(var b=0;b<a;b++){c+="&nbsp;"}return c},el:function(a){var b=null;if(typeof(a)=="string"){b=document.getElementById(a)}else{b=a}return b},linkSubstring:function(i,h,g,a,f,c){var e=null;var d=i;var b=false;if(h){b=d.indexOf(h)!=-1}if(b){d=h}var e=this.writeLinkStart(g,a,f,c);e+=d;e+=this.writeLinkEnd();if(b){d=i.replace(h,e)}else{d=e}return d},writeLinkStart:function(c,b,d,f){var e="";if(!f){e+='<a href="'+c+'"'}else{e+='<a onclick="'+c+'"'}if(b){e+=' target="_blank"'}if(d){var a=d;e+=this.writeStyleString(a)}e+=" >";return e},writeLinkEnd:function(){var a="";a+="</a>";return a},show:function(b){var a=this.el(b);if(!a){return}a.style.display="inline";return},showing:function(b){var a=this.el(b);if(!a||!a.style){return}return(!(a.style.display=="none"||a.style.visible==false))},hide:function(b){var a=this.el(b);if(!a){return}a.style.display="none";return},toggleDisplay:function(b){var a=this.el(b);if(!a||!a.style){return}if(this.showing(a)){this.hide(a)}else{this.show(a)}}};