%headcmd <STYLE>@import url(../../problems.css);</STYLE>

\catcode`\@=11
\def\ps@custom{
  \def\@oddhead{Page: \arabic{page}\hfill Example: _FILE_}% Heading.
  \def\@evenhead{Page: \arabic{page}\hfill Example: _FILE_}% Heading.
  }
\catcode`\@=12
\pagestyle{custom}

\newcommand{\DynastServer}{http://virtual.cvut.cz}

\newcommand{\DataSection}[1]{
\begin{htmlonly}
\Section{#1}
\begin{rawhtml}
<table align=center>
<tr>
<td>
<form method="POST" target="_blank"
action="\end{rawhtml}\DynastServer\begin{rawhtml}/cgi-bin/dynast.cgi">
<textarea name="Source" COLS=60 ROWS=12>
_DATA_WITH_MACROS_
</textarea>
</tr>
<tr><td>
<div align="center">
<input align="left" type="submit" value="Submit to DYNAST">
<input align="right" type="Reset" align="center" value="Reset data">
</div>
</tr>
</form>
<tr><td>_MODELS_USED_</td></tr>
</table>
\end{rawhtml}
\end{htmlonly}
}

\newcommand{\Solution}{
	\par\bigskip\noindent{\Large\sc Solution\ \hrulefill}\par
}

\begin{htmlonly}
\newcommand{\Solution}{
	\begin{rawhtml}<H2>Solution</H2>\end{rawhtml}
}
\end{htmlonly}

\begin{document}

\begin{latexonly}
\section*{_TITLE_}
%
\vspace{-2mm}
\hrule
\bigskip
\end{latexonly}
%
\begin{rawhtml}
<table CLASS=heading width="100%">
<tr>
<td>Example: _FILE_
<td align=right>_CONTACT_
<tr>
<td colspan=2 align=center>
<H1>_TITLE_</H1>
</table>
\end{rawhtml}
