#!/bin/csh -f
echo "Content-type: text/html"
echo ""
source build-opt-env

set tmp="`${OPTHOME}/bin/trigram_util 
setenv OBJ $tmp:r
setenv FULLOBJ $OBJ
setenv QS ""
unsetenv PATH_INFO

if ( "$QUERY_STRING" != "" ) then
  setenv QS "`${OPTHOME}/bin/htmlesc '$QUERY_STRING'`"
  setenv FULLOBJ "$OBJ($QS)"
endif

cat << XXSTUFFXX 
<html><head><title>Error on input to Math Operations form</title></head>
<body>
<h2>Error on input from Mathematical operations</h1>
<b>Current object is:  $OBJ</b></br>
<hr noshade>
<p>
Please complete at least formula one.
<p>
<a href="/jg/math-form$tmp">Return to Math Operations form</a>
XXSTUFFXX
echo "</b></body></html>"
