Gave an id to textarea
<textarea name="docArticleTitle" id="id1" cols="60" rows="14"></textarea>
And changed
function insert_text(str)
{
window.opener.document.getElementById('id1').value += str;
this.window.focus();
}
And its start appending characters to the textarea.