LOL.... Running the line before the element exists is not good.
Try placing your line in an onload function:
onload=function(){document.getElementById('P4').in nerHTML=""};
But, if you want to put it in there when the page loads, why don't you just directly add it?
<P></P>
HTH,
Snib
<><