Index: branches/htmlform/cgi-bin/main.cgi
===================================================================
--- branches/htmlform/cgi-bin/main.cgi	(revision 473)
+++ branches/htmlform/cgi-bin/main.cgi	(revision 474)
@@ -1160,10 +1160,4 @@
   }
 
-  #show confirm screen.
-  open HTML, "../confirmRemove.html"
-	or croak "Could not open confirmRemove.html :$!";
-  my $html = join('', <HTML>);
-  close HTML;
-
   # Serves'em right for getting here...
   if (!defined($webvar{block})) {
@@ -1189,6 +1183,8 @@
     $desc = "N/A";
     $notes = "N/A";
+    $privdata = "N/A";
 
   } elsif ($webvar{alloctype} eq 'mm') {
+
     $cidr = $webvar{block};
     $city = "N/A";
@@ -1198,4 +1194,6 @@
     $desc = "N/A";
     $notes = "N/A";
+    $privdata = "N/A";
+
   } elsif ($webvar{alloctype} =~ /^.i$/) { # done with alloctype=[rm]m
 
@@ -1222,38 +1220,17 @@
   } # end cases for different alloctypes
 
-  # Munge everything into HTML
-  $html =~ s|Please confirm|Please confirm <b>removal</b> of|;
-  $html =~ s|\$\$BLOCK\$\$|$cidr|g;
-  $html =~ s|\$\$TYPEFULL\$\$|$disp_alloctypes{$alloctype}|g;
-  $html =~ s|\$\$ALLOCTYPE\$\$|$alloctype|g;
-  $html =~ s|\$\$CITY\$\$|$city|g;
-  $html =~ s|\$\$CUSTID\$\$|$custid|g;
-  $html =~ s|\$\$CIRCID\$\$|$circid|g;
-  $html =~ s|\$\$DESC\$\$|$desc|g;
-  $html =~ s|\$\$NOTES\$\$|$notes|g;
-
-  $html =~ s|\$\$ACTION\$\$|finaldelete|g;
-
-  # Set the warning text.
-  if ($alloctype =~ /^.[pd]$/) {
-    $html =~ s|<!--warn-->|<tr bgcolor="black"><td colspan="2"><div class="red">Warning: clicking confirm will remove this record entirely.<br>Any IPs allocated from this pool will also be removed!</div></td></tr>|;
-  } else {
-    $html =~ s|<!--warn-->|<tr bgcolor="black"><td colspan="2"><div class="red">Warning: clicking confirm will remove this record entirely.</div></td></tr>|;
-  }
-
-  my $i = 1;
-  # Check to see if user is allowed to do anything with sensitive data
-  if ($IPDBacl{$authuser} =~ /s/) {
-    $privdata = qq(<tr class="color).($i%2).qq("><td>Restricted data:</td>).
-	qq(<td class=regular>$privdata</td></tr>\n);
-    $i++;
-  }
-  $html =~ s/\$\$PRIVDATA\$\$/$privdata/g;
-
-  $i = ++$i % 2;
-  $html =~ s/\$\$BUTTONROWCOLOUR\$\$/color$i/;
-
-  print $html;
-} # end edit()
+  $page->param(block => $cidr);
+  $page->param(disptype => $disp_alloctypes{$alloctype});
+  $page->param(type => $alloctype);
+  $page->param(city => $city);
+  $page->param(custid => $custid);
+  $page->param(circid => $circid);
+  $page->param(desc => $desc);
+  $page->param(notes => $notes);
+  $privdata = '&nbsp;' if $privdata eq '';
+  $page->param(privdata => $privdata) if $IPDBacl{$authuser} =~ /s/;
+  $page->param(delpool => $alloctype =~ /^.[pd]$/);
+
+} # end remove()
 
 
