i think i made small mistake in the following code
but i dont know what it is exactly:

<script language="JavaScript">
function doType(id,typewhat)
    var doc=document.getElementById(id);
    doc.innerHTMl = typewhat;

could u plz help??

Simply you need to correct the line 5. You have to type the following instead:

doc.innerHTML = typewhat;

Just capitalize the letter "L" in innerHTML.

Also the script tag should be written as...

<script type="text/javascript"> ... </script>

The attribute language has been deprecated a while now.

Yes. Thanks for the note.