replaceWith method for

replaceWith method for

Hi Guys I have this form:

  1. <form name="summary" method="post" action="https://edgeoftheworld.securetill.com/index.html?v3rYm4dVaR5=c57d1fafd44a333bf1e9de02eb123052&url=www.edgeoftheworld.co.uk" onsubmit="submitGift(); disableSubmitSmry();">
  2.     <input type="hidden" name="action" value="payment">
  3.     <td align="center" class="column_main">
  4.         <br><!----></td>
  5. </tr>
  6. <tr>
  7.     <td align="center" class="column_main">
  8.        <input type="submit" name="submit" value="Submit"  class="buttonstyle" onmouseover="this.className='buttonstyle btnhov'" onmouseout="hov(this,'buttonstyle')"></td>
  9.        <input type='hidden' name='giftreceipt' value=''></input>      
  10.     </form>
I need to replace it with this as a form:

  1. <form name="summary" method="post" action="https://edgeoftheworld.securetill.com/index.html?v3rYm4dVaR5=c57d1fafd44a333bf1e9de02eb123052&url=www.edgeoftheworld.co.uk" onsubmit="submitGift(); disableSubmitSmry(); javascript:pageTracker._linkByPost(this)">
  2.     <input type="hidden" name="action" value="payment">
  3.     <td align="center" class="column_main">
  4.         <br><!----></td>
  5. </tr>
  6. <tr>
  7.     <td align="center" class="column_main">
  8.        <input type="submit" name="submit" value="Submit"  class="buttonstyle" onmouseover="this.className='buttonstyle btnhov'" onmouseout="hov(this,'buttonstyle')"></td>
  9.        <input type='hidden' name='giftreceipt' value=''></input>      
  10.     </form>
So I'm adding the value javascript:pageTracker._linkByPost(this) to the onsubmit of the form.

I know I have the code below for replacing a form but when I add the other form to the quotes it errors the javascript. Also how to I specifically make the form I'm replacing to be that particular form?

$("form").replaceWith( "" );

Thanks

Kaz