#!/usr/bin/perl
print "Content-type:text/html\n Cache-control:no-cache\n\n";
$file=counter1;
open (s0,"<$file")||die "No such file counter";
while (<s0>)
{
$c=$_;
}
close (s0);
$c=$c+1;
#print $c=$c+1,"\n";

open (s0,">$file")||die "No such file counter";
print s0 $c;
close(s0);
print "<html>\n"; 
print "<head>\n"; 
print "<META http-equiv=\"Content-Type\" content=\"text/html; charset=Windows-1251\"> \n"; 
print "<META name=\"Author\" content=\"Max Yemets (http://www.macloue.com/myem) \"> \n";
print "<link rel=\"stylesheet\" href=\"/ysc/ysc.css\" type=\"text/css\">";
print "<title>Ñ÷¸ò÷èê</title>\n"; 
print "</head>\n"; 
print "\n"; 
print "<body style=\"text-align: center; background-color: #6699FF;\">\n"; 
print "<div class=\"menutext\" style=\"text-align: center\" >\n"; 
print "\n"; 
print "$c\n"; 
print "</div>\n"; 
print "</body>\n"; 
print "</html>\n"; 
