TinyMCE - inserting hidden INPUT tag
===

Really need some help here...I have the following code:


    <a href="javascript:;" onmousedown="addMailMergeItem()">[Insert Item]</a>
    
    
    <script type="text/javascript">
    function addMailMergeItem(){
      tinymce.execCommand('mceInsertContent',false,'<input type=\'hidden\' name=\'a\' value=\'1\'/>');
    }
    </script>

However on clicking [Insert Item] the HTML added is: 
<P><INPUT value=1 type=hidden name=a></P> - which makes the input field visible as the 'hidden' type is not recognised!

How can I amend the execCommand() line to achieve what I am after..?

Tamim.

