Newbie: javascript code doesnt seem to function well

The function of this code is to append new entry in a field with the previous saved entry. Just need an idea, why this code deletes the previous entry in a field and only the current entry is left on the field?

temphistory = f.DateToday.value + " " + f.TimeNow.value + " - " + Status + " - " + f.Editor.value + " - " + f.Remarks.value;

f.History.value = temphistory + “\n” + " - - - - - - - " + “\n” + f.History.value;

return true;

Subject: Newbie: javascript code doesnt seem to function well…

what kind of field are you using?

add the two alerts below

alert(f.History.value);

temphistory = f.DateToday.value + " " + f.TimeNow.value + " - " + Status + " - " + f.Editor.value + " - " + f.Remarks.value;

f.History.value = temphistory + “\n” + " - - - - - - - " + “\n” + f.History.value;

alert(f.History.value);

return true;

Subject: RE: Newbie: javascript code doesnt seem to function well…

Well I’m using text fields named History and Remarks…

Subject: RE: Newbie: javascript code doesnt seem to function well…

what do the alert boxes show