I've already tried that, and it doesn't work.
Perhaps it's how I'm calling it - see below.
var textaone
{
textaone = strReplaceAll(document.form1.tasks.value,",","");
}
var textatwo
{
textatwo = strReplaceAll(textaone,"\n","");
}...