Hi im having issues with a form submit function, its working perfect in Firefox, but IE is giving a 'Error On Page' in left hand corner and the form doesnt work.

As i am a complete javascript novice its giving me a major headache.

Here is the code, i trimmed it down a little as there was so many input fields

Thankyou in advance for any input.

PHP Code:
<script language="javascript" type="text/javascript">
    function submitbutton(pressbutton) {
        var form = document.adminForm;
        if (pressbutton == 'cancel') {
            submitform( 'viewlink' );

        // do field validation
        if (form.link_name.value == ""){
            alert( "<?php echo $this->_MT_LANG->PLEASE_FILL_IN_LINK_NAME ?>" );
        } else {

<table width="96%" cellpadding="4" cellspacing="0" border="0" align="center">
    <form action="<?php echo sefRelToAbs("index.php"?>" method="post" enctype="multipart/form-data" name="adminForm" id="adminForm">
    <?php echo ( (isset($this->warn_duplicate) && $this->warn_duplicate == 1) ? '<tr><td colspan="2">' $this->_MT_LANG->THERE_IS_ALREADY_A_PENDING_APPROVAL_FOR_MODIFICATION '</td></tr>' '' )?>

        <td valign="top" align="right">Category:</td>
        <td><?php echo $this->catlist ?> <i>Please make sure you select the correct category</i><br /><br /></td>


        <td colspan="2">
            <input type="hidden" name="option" value="<?php echo $this->option ?>" />
            <input type="hidden" name="task" value="savelisting" />
            <input type="hidden" name="Itemid" value="<?php echo $this->Itemid ?>" />            
            <?php if ( $this->link->link_id == ) { ?>
            <input type="hidden" name="cat_id" value="<?php echo $this->cat_id ?>" />
            <?php } else { ?>
            <input type="hidden" name="link_id" value="<?php echo $this->link->link_id ?>" />
            <input type="hidden" name="cat_id" value="<?php echo $this->cat_id ?>" />
            <?php ?>
<br /><br /><center>
            <input type="button" value="<?php echo $this->_MT_LANG->SUBMIT_LISTING ?>" onClick="javascript:submitbutton('savelisting')" class="button" /> <input type="button" value="<?php echo $this->_MT_LANG->CANCEL ?>" onClick="history.back();" class="button" /></center>