<participant>
     <quickSearch><![CDATA[MM_delete]]></quickSearch>
     <insertText location="aboveHTML+20">
<![CDATA[
<%
' *** Delete Record: declare variables

if (CStr(Request("MM_delete")) = "@@formName@@" And CStr(Request("MM_recordId")) <> "") Then

  MM_editConnection = MM_@@cname@@_STRING
  MM_editTable = "@@table@@"
  MM_editColumn = "@@col@@"
  MM_recordId = "@@colQuote@@" + Request.Form("MM_recordId") + "@@colQuote@@"
  MM_editRedirectUrl = "@@redirect__url@@"

  ' append the query string to the redirect URL
  If (MM_editRedirectUrl <> "" And Request.QueryString <> "") Then
    If (InStr(1, MM_editRedirectUrl, "?", vbTextCompare) = 0 And Request.QueryString <> "") Then
      MM_editRedirectUrl = MM_editRedirectUrl & "?" & Request.QueryString
    Else
      MM_editRedirectUrl = MM_editRedirectUrl & "&" & Request.QueryString
    End If
  End If
  
End If
%>
]]>
     </insertText>
     <searchPatterns whereToSearch="directive">
       <searchPattern><![CDATA[/Request\("MM_delete"\)/]]></searchPattern>
       <searchPattern paramNames="formName" isOptional="true"><![CDATA[/CStr\(Request\("MM_delete"\)\)\s*=\s*"([^"]*)"]]></searchPattern>
       <searchPattern paramNames="cname"><![CDATA[/MM_editConnection\s*=\s*MM_(\w+)_STRING/]]></searchPattern>
       <searchPattern paramNames="table"><![CDATA[/MM_editTable\s*=\s*"([^"]*)"/]]></searchPattern>
       <searchPattern paramNames="col"><![CDATA[/MM_editColumn\s*=\s*"([^"]*)"/]]></searchPattern>
       <searchPattern paramNames="colQuote"><![CDATA[/MM_recordId\s*=\s*"([^"]*)"/]]></searchPattern>
       <searchPattern paramNames="redirect__url"><![CDATA[/\sMM_editRedirectUrl\s*=\s*"([^\r\n]*?)"/]]></searchPattern>
     </searchPatterns>
     <updatePatterns>
       <updatePattern paramName="cname"><![CDATA[/(MM_editConnection\s*=\s*MM_)\w+(_STRING)/]]></updatePattern>
       <updatePattern paramName="table"><![CDATA[/(MM_editTable\s*=\s*")[^"]*(")/g]]></updatePattern>
       <updatePattern paramName="col"><![CDATA[/(MM_editColumn\s*=\s*")[^"]*(";)/g]]></updatePattern>
       <updatePattern paramName="colQuote"><![CDATA[/(MM_recordId\s*=\s*")[^"]*(")/g]]></updatePattern>
       <updatePattern paramName="colQuote"><![CDATA[/(Request\.Form\("MM_recordId"\)\s*\+\s*")[^"]*(")/g]]></updatePattern>
       <updatePattern paramName="redirect__url"><![CDATA[/(\sMM_editRedirectUrl\s*=\s*")[^\r\n]*(")/g]]></updatePattern>
       <updatePattern paramName="formName"><![CDATA[/(CStr\(Request\("MM_delete"\)\)\s*=\s*")[^"]*(")/g]]></updatePattern>
     </updatePatterns>
</participant>
