function punctmenu(punct, plink, vidpunct)
{
	document.write ("<td align=center>");
	if (punct!=vidpunct)
	{
		document.write ("<font size='2' FACE='Arial'><b><a class='menu' href='" + plink + "'>" + punct + "</a></b></font>");
	}
	else
	{
		document.write ("<font size='2' FACE='Arial' color='blue'><b>" + punct + "</b></font>");
	}
	document.write ("</td>");
}
function ProvLogin()
{
	var oshib="";
	var colosh=0;
	if (document.frmlogin.txtLogin.value == "") {
		colosh=colosh+1;
		oshib=oshib+colosh+") Не заполнено обязательное поле: \"Логин\"\n";
	}
	if (document.frmlogin.txtParol.value == "") {
		colosh=colosh+1;
		oshib=oshib+colosh+") Не заполнено обязательное поле: \"Пароль\"\n";
	}
	if (oshib=="") {
		document.frmlogin.txtUrlPage.value=window.location;
		return true;
	}
	else
	{
		window.alert(oshib);
		return false;
	}
}
function gmenu(punct) {
	document.write ("<META HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=windows-1251'></HEAD>");
	document.write ("<BODY bgColor=#ffffff background='http://www.veloway.ru/Bg1.jpg'>");
	document.write ("<table border=0 align=center width='100%' cellpadding='0' cellspacing='0'>");
	document.write ("<tr>");
	document.write ("<td>");
	document.write ("&nbsp;&nbsp;&nbsp;<img style='BORDER-BOTTOM: 0px outset; BORDER-LEFT: 0px outset; BORDER-RIGHT: 0px outset; BORDER-TOP: 0px outset' src='http://www.veloway.ru/path.gif'> ");
	document.write ("</td>");
	document.write ("<td align='center' valign=center width=100%>");
	//document.write ("<b><i><font size=6 FACE='Arial'>Велопутешествия как образ жизни</font></i></b>");
	document.write ("<b><font size=6 FACE='Arial'>Конкурс велосипедных походов 'Путь'</font><br><font size=3 FACE='Arial'><i>велопутешествия как образ жизни</i></font></b>");
	//document.write ("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0' width='700' height='80' id='500_100_RASPRODAZHA' align='middle'><param name='allowScriptAccess' value='sameDomain' /><param name='movie' value='500_100_RASPRODAZHA.swf' /><param name='quality' value='high' /><param name='bgcolor' value='#ff6600' /><embed src='500_100_RASPRODAZHA.swf' quality='high' bgcolor='#ff6600' width='769' height='115' name='500_100_RASPRODAZHA' align='middle' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' /></object><br><font face=Arial size=1><b>Генеральный спонсор конкурса \"Путь 2006\"</b></font>");
	document.write ("</td>");
	document.write ("</tr>");
	document.write ("<tr bgcolor='#C7C7AB'>");
	document.write ("<td colspan=2>");
	document.write ("<table border=0 align=center width=100% cellpadding='0' cellspacing='0'>");
	document.write ("<tr>");
	document.write ("<td width=20>");
	document.write ("&nbsp;");
	document.write ("</td>");
	punctmenu("Новости", "http://www.veloway.ru/index.asp", punct);
	punctmenu("Положение", "http://www.veloway.ru/polog.htm", punct);
	//punctmenu("Организаторы", "http://www.veloway.ru/organiz.htm", punct);
	punctmenu("Судьи", "http://www.veloway.ru/sud.htm", punct);
	punctmenu("Заявки", "http://www.veloway.ru/zayav.asp", punct);
	//punctmenu("Участники", "http://www.veloway.ru/gmnotch.asp", punct);
	punctmenu("Итоги", "http://www.veloway.ru/path2009i.asp", punct);
	punctmenu("История конкурса 'Путь'", "http://www.veloway.ru/historypath.htm", punct);
	punctmenu("Статьи", "http://www.veloway.ru/atikl.htm", punct);
	punctmenu("Библиотека отчетов", "http://www.veloway.ru/biblio/poxods.asp", punct);
	punctmenu("Форум", "http://www.veloway.ru/ftalk/ftalk.asp", punct);
	document.write ("</tr>");
	document.write ("</table>");
	document.write ("</td>");
	document.write ("</tr>");
	document.write ("</table>");
}
function vmenu (vhod)
{
	document.write ("<TABLE borderColor=#000000 cellSpacing=0 cellPadding=0 width=100% align=center border=0>");
	document.write ("<TR height=400>");
	document.write ("<TD width=1 bgColor=#c7c7ab></TD>");
	document.write ("<TD vAlign=top align=middle width=165>");
	document.write ("<TABLE borderColor=#000000 cellSpacing=0 cellPadding=0 width='100%' align=center border=0>");
        document.write ("<TR><TD vAlign=top align=middle>");
	document.write ("<BR>");
	document.write ("<font face='arial'><b><a href='http://www.veloway.ru/disk.htm'>Диски с фильмами победителей конкурсов</a></b></font>");
	document.write ("<BR>");
	document.write ("</TD></TR>");
	document.write ("<tr><td>");
	if (vhod!="0")
	{
		document.write (vhod);
		//document.write ("<br><table width='140' HEIGHT='100' border=0 cellpadding='0' cellspacing='0' align=center>");
		//document.write ("<tr HEIGHT='1' bgcolor='000000'><td width='1'></td><td></td></tr><tr>");
		//document.write ("<td bgcolor='000000'><img src='http://www.veloway.ru/img/pusto.gif'></td>");
		//document.write ("<td>");
		//document.write ("<table border='0' width=100% cellpadding='4'><tr><td>");
		//document.write ("<table border='0' width=100% cellpadding='0'>");
		//document.write ("<tr height=20>");
		//document.write ("<td colspan=2 align=left valign=top><font size=1 face=arial><a href='registruser.asp'>Зарегистрироваться</a></font></td>");
		//document.write ("</tr>");
		//document.write ("<tr>");
		//document.write ("<td><font face='arial' size=2>Логин</font></td><td> <input type=Text size=10 name=txtLogin></td>");
		//document.write ("</tr>");
		//document.write ("<tr>");
		//document.write ("<td><font face='arial' size=2>Пароль&nbsp;&nbsp;</font></td><td> <input size=10 name=txtParol type='password'></td>");
		//document.write ("</tr>");
		//document.write ("<tr>");
		//document.write ("<td align='right' colspan=2 HEIGHT='27' valign='bottom'><input type=Submit name=btnSend value='Войти' OnClick='return ProvLogin()'></td>");
		//document.write ("</tr>");
		//document.write ("</table>");
		//document.write ("</td></tr></table>");
		//document.write ("</td>");
		//document.write ("<td bgcolor='000000'><img src='http://www.veloway.ru/img/pusto.gif'></td>");
		//document.write ("</tr>");
		//document.write ("<tr HEIGHT='1' bgcolor='000000'><td></td><td></td></tr>");
		//document.write ("</table>");
	}
	document.write ("</td></tr>");
        document.write ("<TR><TD vAlign=top align=middle>");
	document.write ("<BR>");
	document.write ("<A href='http://velopiter.spb.ru/'><IMG height=31 alt=ВелоПитер src='http://www.veloway.ru/vp.gif' width=88 border=0></A> <BR><BR>");
	document.write ("<A href='http://www.3x9.ru/'><IMG alt='Клуб 3x9' src='http://www.veloway.ru/3x9.gif' border=0></A><BR><BR>");
	document.write ("</TD></TR>");
        document.write ("<TR bgColor=#c7c7ab><TD align=middle><B><FONT face=Arial size=2>Спонсоры</FONT></B></TD></TR>");
        document.write ("<TR><TD vAlign=top align=middle>");
	document.write ("<BR>");
	document.write ("<A href='http://www.pk99.spb.ru/'><IMG alt='Пик 99' src='http://www.veloway.ru/pik99.gif' border=0></A> <BR>");
	document.write ("<A href='http://www.ebike.ru'><IMG alt='eBike' src='http://www.veloway.ru/ebike_88_31.gif' border=0></A> <BR>");
	document.write ("<A href='http://www.equip.ru'><IMG alt='Снаряжение' src='http://www.veloway.ru/equip.gif' border=0></A> <BR><BR>");
	document.write ("</TD></TR>");
        document.write ("<TR bgColor=#c7c7ab><TD align=middle><B><FONT face=Arial size=2>Информационные спонсоры</FONT></B></TD></TR>");
        document.write ("<TR><TD vAlign=top align=middle>");
	document.write ("<BR>");
	document.write ("<A href='http://www.turizm.ru/veter/'><IMG alt='Газета Вольный ветер' src='http://www.veloway.ru/vv.gif' border=0></A> <BR>");
	document.write ("<a href='http://www.velo.ucoz.ru/'><img border='0' src='http://www.velo.ucoz.ru/BannersMy/Bann-8831_velo2.gif' width='88' height='31' alt='Velo.ucoz.ru - Сайт о велосипедах и велосипедистах'></a> <BR>");
	document.write ("<a href='http://www.nedoma.ru/'><img border='0' src='http://www.veloway.ru/nedoma.jpg' width='88' height='31' alt='Веломания'></a><BR><BR>");
	document.write ("</TD></TR>");
        document.write ("<TR bgColor=#c7c7ab><TD align=middle><B><FONT face=Arial size=2>Единомышленники</FONT></B></TD></TR>");
        document.write ("<TR><TD vAlign=top align=middle>");
	document.write ("<BR>");
	document.write ("<A href='http://www.mountain.ru/index.php/'><IMG alt=mountain.ru src='http://www.veloway.ru/mountinru.gif' border=0></A> <BR>");
	document.write ("<A href='http://www.velo.penza.ru/'><IMG height=31 alt='ВелоПенза - сайт пензенского велодвижения' src='http://www.veloway.ru/button.gif' width=88 border=0></A> <BR>");
	document.write ("<A href='http://www.vgvozdev.narod.ru/index.html'><IMG alt='Велотуризм на vgvozdev.narod.ru' src='http://www.veloway.ru/gvozdev.gif' border=0></A> <BR>");
	document.write ("<A href='http://velosamara.ru/'><IMG height=33 alt=ВелоСамара src='http://www.veloway.ru/velo_banner.gif' width=88 border=0></A> <BR>");
	document.write ("<A href='http://bike4u.ru/'><IMG height=31 alt=www.Bike4u.ru src='http://www.veloway.ru/bike4u_baner_old.gif' width=88 border=0></A> <BR><BR>");
	document.write ("</TD></TR></TABLE>");
 	document.write ("<TD width=1 bgColor=#c7c7ab></TD>");
}

function finalpart ()
{
 	document.write ("<TD width=1 bgColor=#c7c7ab></TD></TR></TBODY></TABLE>");
 	document.write ("<TABLE borderColor=#000000 cellSpacing=0 cellPadding=0 width=100% align=center border=0>");
 	document.write ("<TBODY>");
 	document.write ("<TR bgColor=#c7c7ab height=1>");
 	document.write ("<TD></TD></TR></TBODY></TABLE>");
 	document.write ("<P align=right>Дата последнего изменения <script language='javascript'>var a;a=document.lastModified;document.write(a.substr(3,2)+'.'+a.substr(0,2)+'.'+a.substr(6,4));</script></p>");
 	document.write ("<P align=center><!-- SpyLOG v2 f:0211 -->");
 	document.write ("<SCRIPT language=javascript> ");
 	document.write ("u=\"u351.76.spylog.com\";d=document;nv=navigator;na=nv.appName;p=1; ");
 	document.write ("bv=Math.round(parseFloat(nv.appVersion)*100); ");
 	document.write ("n=(na.substring(0,2)==\"Mi\")?0:1;rn=Math.random(); z=\"p=\"+p+\"&rn=\"+rn;y=\"\"; ");
 	document.write ("y+=\"<a href='http://\"+u+\"/cnt?f=3&p=\"+p+\"&rn=\"+rn+\"' target=_blank>\"; ");
 	document.write ("y+=\"<img src='http://\"+u+\"/cnt?\"+z+ ");
 	document.write ("\"&r=\"+escape(d.referrer)+ \"&pg=\"+escape(window.location.href)+\"' border=0 width=88 height=31 alt='SpyLOG'>\"; ");
 	document.write ("y+=\"</a>\"; d.write(y); if(!n) { d.write(\"<\"+\"!--\"); } //--></SCRIPT>");
 	document.write ("<NOSCRIPT><A href=\"http://u351.76.spylog.com/cnt?f=3&amp;p=1\" target=_blank><IMG ");
 	document.write ("height=31 alt=SpyLOG src=\"cnt.gif\" width=88 border=0> ");
 	document.write ("</A></NOSCRIPT>");
 	document.write ("<SCRIPT language=javascript1.2><!-- ");
 	document.write ("if(!n) { d.write(\"--\"+\">\"); }//--></SCRIPT>");
 	document.write ("<!-- SpyLOG --></P>");
}