#!/usr/bin/perl
#
  do "acqPATHs.pl";
  $str = $ENV{"QUERY_STRING"};
  ($Prog, $Qidno) = split(/\+/, $str);
  print "Content-type: text/html; charset=iso-8859-1\n\n";
#
  $htmlbody =<<EOM;
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" type="text/css" href="/AMXS/amxs.css">
<title>AMXS complete</title>
<script type="text/javascript">
<!--
function start() {
  parent.Frun.location.replace("/AMXS/forms/nothing.html");
}
//-->
</script>
</head>
<body bgcolor="cyan" style="margin: 4px 7px;" onload="start();">
<hr>
<big>Prog. <b>__PROG__</b> (QID: __QIDNO__) completed.</big><br><br>
Confirm output from the program execution in above frame,<br>
then <b>press <span style="background-color: white">&nbsp;OK&nbsp;</span>
 button</b> (at the bottom <b>in above frame</b>) to continue.<br><br>
EOM
#-------
  $htmlbody =~ s/__PROG__/$Prog/;
  $htmlbody =~ s/__QIDNO__/$Qidno/;
  print $htmlbody;
#
  unless (unlink("$HTMLPATH/fout/out.$Qidno"))
    { print "out.$Qidno file remove fail<br>\n"; }
  unless (unlink("$HTMLPATH/fout/pin.$Qidno"))
    { print STDERR "pin.$Qidno file remove fail\n"; }
#
  print "</body>\n</html>\n";
  exit(0);
