#!/usr/local/bin/perl -w

print "Content-type:text/html\n\n";

@values = split(/_/,$ENV{'QUERY_STRING'});


$filename = $values[0] . "." . $values[1];
open(INF, "lab46.dat");
$title = <INF>;


print "<html><head><title>";
print "<center><b>";
print $title;
print "</b></center>";
print "</title></head><body background=background.gif vlink=blue link=blue alink=blue>\n";
print "<table background=color.gif><tr><td><b>";
print $title;
print "</b><br>";
while ($line = <INF>) {
	if ($line ne "eoo\n") {
		print $line;	
	}
	if ($line eq "eoo\n") {
		print "</td></tr></table><br><br>";
		print "<table width=* background=background.gif><tr><td>";
	}
}
close(INF);
print "</td></tr></table>";
print "</body></html>";