<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2995" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><SPAN class=881341516-29122006><FONT face=Arial size=2>All, 
</FONT></SPAN></DIV>
<DIV><SPAN class=881341516-29122006><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=881341516-29122006><FONT face=Arial size=2>I'm very new to js, 
please forgive if this is a n00b question. </FONT></SPAN></DIV>
<DIV><SPAN class=881341516-29122006><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=881341516-29122006><FONT face=Arial size=2>I have a script that 
takes user input from a textarea and dumps it into a &lt;pre&gt; element&nbsp;in 
a&nbsp;new table cell. The problem is if you type in a long sentance with no 
breaks, the &lt;pre&gt; will not allow it to wrap, and it'll make the table 
super wide. I'm wondering if there's a javascript function that will allow me to 
insert a \n every 80 characters? </FONT></SPAN></DIV>
<DIV><SPAN class=881341516-29122006><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=881341516-29122006><FONT face=Arial size=2>alternatively, I can 
dump the text in to just the table cell, but then carriage returns aren't 
recognized at all, even though the text will wrap. Is there a javascript version 
of str_replace()? </FONT></SPAN></DIV>
<DIV><SPAN class=881341516-29122006><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=881341516-29122006><FONT face=Arial size=2>Is there somewhere I 
can go to look up javascript functions?</FONT></SPAN></DIV>
<DIV><SPAN class=881341516-29122006><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=881341516-29122006><FONT face=Arial size=2>Thanks in 
advance,</FONT></SPAN></DIV>
<DIV><SPAN class=881341516-29122006><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=881341516-29122006><FONT face=Arial 
size=2>Matt</FONT></SPAN></DIV></BODY></HTML>