document.write('<div class="javascript" style="font-family: monospace;"><br />');
document.write('<br />');
document.write('<span style="color: #003366; font-weight: bold;">function</span> removeNL<span style="color: #66cc66;">&#40;</span>s<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span><br />');
document.write('<span style="color: #009900; font-style: italic;">/*<br />');
document.write('** NewLine, CarriageReturn and Tab characters from a String will be removed<br />');
document.write('** and will return the new string<br />');
document.write('*/</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; r = <span style="color: #3366CC;">&quot;&quot;</span>;<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">for</span> <span style="color: #66cc66;">&#40;</span>i=<span style="color: #CC0000;">0</span>; i &lt; s.<span style="color: #006600;">length</span>; i++<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #66cc66;">&#40;</span>s.<span style="color: #006600;">charAt</span><span style="color: #66cc66;">&#40;</span>i<span style="color: #66cc66;">&#41;</span> != <span style="color: #3366CC;">\'<span style="color: #000099; font-weight: bold;">\n</span>\'</span> &amp; s.<span style="color: #006600;">charAt</span><span style="color: #66cc66;">&#40;</span>i<span style="color: #66cc66;">&#41;</span> != <span style="color: #3366CC;">\'<span style="color: #000099; font-weight: bold;">\r</span>\'</span> &amp; s.<span style="color: #006600;">charAt</span><span style="color: #66cc66;">&#40;</span>i<span style="color: #66cc66;">&#41;</span> != <span style="color: #3366CC;">\'<span style="color: #000099; font-weight: bold;">\t</span>\'</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; r += s.<span style="color: #006600;">charAt</span><span style="color: #66cc66;">&#40;</span>i<span style="color: #66cc66;">&#41;</span>;<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">return</span> r;<br />');
document.write('<span style="color: #66cc66;">&#125;</span><br />');
document.write('&nbsp;</div>');
document.write('<br />&nbsp;<br /><div style="font-size: 12px">Brought to you by the community at <a href="http://www.bytemycode.com/snippets/snippet/282/1/" target="_blank">byteMyCode</a>.</div>');
