parentNodeは誤動作する場合があるから、あまり使わない方がいい。

inputTag.parentNodeをdocument.getElementById("PAGEBODY")に変えれば動くはず。