//var aBASE = "file:\\\e:\\KLIENT\\SOLANDR\\INTERNET\\FN_BMSTU_RU\\fn_2004\\html\\";
//var aBASE = "file:\\\e:\\KLIENT\\SOLANDR\\INTERNET\\FN_BMSTU_RU\\fn_2002\\home\\www\\html\\";
//var aBASE = "/";
//var aBASE = "http://127.0.0.1/";
//var aBASE = "http://195.19.55.214/";
//var aBASE = "file:\\\I|bin\\Apache_Group\\Apache\\htdocs\\";
var aBASE ="http://fn.bmstu.ru/";
//var aBASE = "file:\\\E:\\KLIENT\\SOLANDR_VLASIHA\\INTERNET\\FN\\htdocs\\";

function theBase()
{
  document.write(' <base href="' + aBASE + '"> ');
  document.write('  <META content="text/html; charset=windows-1251" http-equiv=Content-Type>\
                    <META NAME="language" CONTENT="russian">');
}

rName = new Array();
rRef =  new Array();

function go1( k )
{
  if(k==1) kuda =  document.fo1.se1.options[document.fo1.se1.selectedIndex].value
  if(k==2) kuda =  document.fo2.se2.options[document.fo2.se2.selectedIndex].value
  if(k==3) kuda =  document.fo3.se3.options[document.fo3.se3.selectedIndex].value
  if(k==4) kuda =  document.fo4.se4.options[document.fo4.se4.selectedIndex].value
  if(k==5) kuda =  document.fo5.se5.options[document.fo5.se5.selectedIndex].value
  if(k==6) kuda =  document.fo6.se6.options[document.fo6.se6.selectedIndex].value
  if(k==7) kuda =  document.fo7.se7.options[document.fo7.se7.selectedIndex].value
  if(k==8) kuda =  document.fo8.se8.options[document.fo8.se8.selectedIndex].value
  if(k==9) kuda =  document.fo9.se9.options[document.fo9.se9.selectedIndex].value
  if(k==10) kuda =  document.fo10.se10.options[document.fo10.se10.selectedIndex].value
  if(k==11) kuda =  document.fo11.se11.options[document.fo11.se11.selectedIndex].value
  if(k==12) kuda =  document.fo12.se12.options[document.fo12.se12.selectedIndex].value
  if(k==13) kuda =  document.fo13.se13.options[document.fo13.se13.selectedIndex].value
  
  if (kuda != "none") 
  {
    location = kuda;
  }
}

function kud( k )
{
document.write('<br><small>Научная конференция &mdash; &laquo;<a href="phys/nov/nppt/index.shtml"><font color="#FF0000">Необратимые процессы в природе и технике</font></a>&raquo;</small>')
document.write('<br><small>Научная конференция &mdash;  &laquo;<a href="http://fn.bmstu.ru/phys/nov/konf/pirt2009/pirt2009_ru.html"><font color="#FF0000">Физические интерпретации теории относительности 2009</font></a>&raquo;</small><br>')
document.write('<FORM NAME="web" METHOD="get" ACTION="http://www.yandex.ru:8081/yandsearch"><BR><INPUT TYPE="text" NAME="text" SIZE=48 VALUE="" MAXLENGTH=160><br><br><INPUT TYPE=SUBMIT VALUE="Найти на fn.bmstu.ru!"><INPUT TYPE="hidden" NAME="serverurl" VALUE="fn.bmstu.ru"><INPUT TYPE="hidden" NAME="server_name" VALUE="FN_BMSTU_RU"><INPUT TYPE="hidden" NAME="referrer1" VALUE="http://fn.bmstu.ru"><INPUT TYPE="hidden" NAME="referrer2" VALUE="Факультет Фундаментальные науки"></FORM><br>')



  if(k==1) document.write('<form name="fo1"><select name="se1" size=1 onchange="go1(1)">');
  if(k==2) document.write('<form name="fo2"><select name="se2" size=1 onchange="go1(2)">');
  if(k==3) document.write('<form name="fo3"><select name="se3" size=1 onchange="go1(3)">');
  if(k==4) document.write('<form name="fo4"><select name="se4" size=1 onchange="go1(4)">');
  
  document.write('<option value=none selected>&nbsp;&nbsp;Куда теперь?');
  document.write('<option value=none>--------------------');
  for(j=0; j<rName.length; j++)
  {
    document.write("<option value=" + rRef[j] + ">&nbsp;&nbsp;" + rName[j] );
  } 
  document.write('</select>');
  document.write('</form>');
}  


function stat_phys( k )
{
  if(k==1) document.write('<form name="fo1"><select name="se1" size=1 onchange="go1(1)">');
  if(k==2) document.write('<form name="fo2"><select name="se2" size=1 onchange="go1(2)">');
  if(k==3) document.write('<form name="fo3"><select name="se3" size=1 onchange="go1(3)">');
  if(k==4) document.write('<form name="fo4"><select name="se4" size=1 onchange="go1(4)">');
  
  document.write('<option value=none selected>&nbsp;&nbsp;Выберите день');
  document.write('<option value=none>--------------------');
  for(j=1; j<10; j++)
  {
    document.write("<option value=count/phys/0" + j +"_2005.html>&nbsp;&nbsp;" + j );
  } 
for(j=10; j<32; j++)
  {
    document.write("<option value=count/phys/" + j +"_2005.html>&nbsp;&nbsp;" + j );
  }
  document.write('</select>');
  document.write('</form>');
}  

function stat_tom1( k )
{
 if(k==8) document.write('<form name="fo8"><select name="se8" size=1 onchange="go1(8)">');
  
  document.write('<option value=none selected>&nbsp;&nbsp;Выберите день');
  document.write('<option value=none>--------------------');
  for(j=1; j<10; j++)
  {
    document.write("<option value=count/physbook/tom1/0" + j +"_2005.html>&nbsp;&nbsp;" + j );
  } 
for(j=10; j<32; j++)
  {
    document.write("<option value=count/physbook/tom1/" + j +"_2005.html>&nbsp;&nbsp;" + j );
  }
  document.write('</select>');
  document.write('</form>');
}  

function stat_tom2( k )
{
 if(k==9) document.write('<form name="fo9"><select name="se9" size=1 onchange="go1(9)">');
  
  document.write('<option value=none selected>&nbsp;&nbsp;Выберите день');
  document.write('<option value=none>--------------------');
  for(j=1; j<10; j++)
  {
    document.write("<option value=count/physbook/tom2/0" + j +"_2005.html>&nbsp;&nbsp;" + j );
  } 
for(j=10; j<32; j++)
  {
    document.write("<option value=count/physbook/tom2/" + j +"_2005.html>&nbsp;&nbsp;" + j );
  }
  document.write('</select>');
  document.write('</form>');
}

function stat_tom3( k )
{
 if(k==10) document.write('<form name="fo10"><select name="se10" size=1 onchange="go1(10)">');
  
  document.write('<option value=none selected>&nbsp;&nbsp;Выберите день');
  document.write('<option value=none>--------------------');
  for(j=1; j<10; j++)
  {
    document.write("<option value=count/physbook/tom3/0" + j +"_2005.html>&nbsp;&nbsp;" + j );
  } 
for(j=10; j<32; j++)
  {
    document.write("<option value=count/physbook/tom3/" + j +"_2005.html>&nbsp;&nbsp;" + j );
  }
  document.write('</select>');
  document.write('</form>');
}

function stat_tom4( k )
{
 if(k==11) document.write('<form name="fo11"><select name="se11" size=1 onchange="go1(11)">');
  
  document.write('<option value=none selected>&nbsp;&nbsp;Выберите день');
  document.write('<option value=none>--------------------');
  for(j=1; j<10; j++)
  {
    document.write("<option value=count/physbook/tom4/0" + j +"_2005.html>&nbsp;&nbsp;" + j );
  } 
for(j=10; j<32; j++)
  {
    document.write("<option value=count/physbook/tom4/" + j +"_2005.html>&nbsp;&nbsp;" + j );
  }
  document.write('</select>');
  document.write('</form>');
}

function stat_tom5( k )
{
 if(k==12) document.write('<form name="fo12"><select name="se12" size=1 onchange="go1(12)">');
  
  document.write('<option value=none selected>&nbsp;&nbsp;Выберите день');
  document.write('<option value=none>--------------------');
  for(j=1; j<10; j++)
  {
    document.write("<option value=count/physbook/tom5/0" + j +"_2005.html>&nbsp;&nbsp;" + j );
  } 
for(j=10; j<32; j++)
  {
    document.write("<option value=count/physbook/tom5/" + j +"_2005.html>&nbsp;&nbsp;" + j );
  }
  document.write('</select>');
  document.write('</form>');
}

function stat_tom6( k )
{
 if(k==13) document.write('<form name="fo13"><select name="se13" size=1 onchange="go1(13)">');
  
  document.write('<option value=none selected>&nbsp;&nbsp;Выберите день');
  document.write('<option value=none>--------------------');
  for(j=1; j<10; j++)
  {
    document.write("<option value=count/physbook/tom6/0" + j +"_2005.html>&nbsp;&nbsp;" + j );
  } 
for(j=10; j<32; j++)
  {
    document.write("<option value=count/physbook/tom6/" + j +"_2005.html>&nbsp;&nbsp;" + j );
  }
  document.write('</select>');
  document.write('</form>');
}

function stat_math( k )
{
  if(k==1) document.write('<form name="fo1"><select name="se1" size=1 onchange="go1(1)">');
  if(k==2) document.write('<form name="fo2"><select name="se2" size=1 onchange="go1(2)">');
  if(k==3) document.write('<form name="fo3"><select name="se3" size=1 onchange="go1(3)">');
  if(k==4) document.write('<form name="fo4"><select name="se4" size=1 onchange="go1(4)">');
  
  document.write('<option value=none selected>&nbsp;&nbsp;Выберите день');
  document.write('<option value=none>--------------------');
  for(j=1; j<10; j++)
  {
    document.write("<option value=count/math/0" + j +"_2005.html>&nbsp;&nbsp;" + j );
  } 
for(j=10; j<32; j++)
  {
    document.write("<option value=count/math/" + j +"_2005.html>&nbsp;&nbsp;" + j );
  }
  document.write('</select>');
  document.write('</form>');
}  

function stat_el( k )
{
  if(k==1) document.write('<form name="fo1"><select name="se1" size=1 onchange="go1(1)">');
  if(k==2) document.write('<form name="fo2"><select name="se2" size=1 onchange="go1(2)">');
  if(k==3) document.write('<form name="fo3"><select name="se3" size=1 onchange="go1(3)">');
  if(k==4) document.write('<form name="fo4"><select name="se4" size=1 onchange="go1(4)">');
  
  document.write('<option value=none selected>&nbsp;&nbsp;Выберите день');
  document.write('<option value=none>--------------------');
  for(j=1; j<10; j++)
  {
    document.write("<option value=count/el/0" + j +"_2005.html>&nbsp;&nbsp;" + j );
  } 
for(j=10; j<32; j++)
  {
    document.write("<option value=count/el/" + j +"_2005.html>&nbsp;&nbsp;" + j );
  }
  document.write('</select>');
  document.write('</form>');
}  

function stat_teormech( k )
{
  if(k==5) document.write('<form name="fo5"><select name="se5" size=1 onchange="go1(5)">');
  
  document.write('<option value=none selected>&nbsp;&nbsp;Выберите день');
  document.write('<option value=none>--------------------');
  for(j=1; j<10; j++)
  {
    document.write("<option value=count/teormech/0" + j +"_2005.html>&nbsp;&nbsp;" + j );
  } 
for(j=10; j<32; j++)
  {
    document.write("<option value=count/teormech/" + j +"_2005.html>&nbsp;&nbsp;" + j );
  }
  document.write('</select>');
  document.write('</form>');
}  

function stat_chem( k )
{
  if(k==6) document.write('<form name="fo6"><select name="se6" size=1 onchange="go1(6)">');
  
  document.write('<option value=none selected>&nbsp;&nbsp;Выберите день');
  document.write('<option value=none>--------------------');
  for(j=1; j<10; j++)
  {
    document.write("<option value=count/chem/0" + j +"_2005.html>&nbsp;&nbsp;" + j );
  } 
for(j=10; j<32; j++)
  {
    document.write("<option value=count/chem/" + j +"_2005.html>&nbsp;&nbsp;" + j );
  }
  document.write('</select>');
  document.write('</form>');
}  

function stat_comput( k )
{
  if(k==7) document.write('<form name="fo7"><select name="se7" size=1 onchange="go1(7)">');
  
  document.write('<option value=none selected>&nbsp;&nbsp;Выберите день');
  document.write('<option value=none>--------------------');
  for(j=1; j<10; j++)
  {
    document.write("<option value=count/comput/0" + j +"_2005.html>&nbsp;&nbsp;" + j );
  } 
for(j=10; j<32; j++)
  {
    document.write("<option value=count/comput/" + j +"_2005.html>&nbsp;&nbsp;" + j );
  }
  document.write('</select>');
  document.write('</form>');
}  



function rubr( k )
{
  document.write(" \
  <table width='140' border='0' cellspacing='0' cellpadding='0' bgcolor='Gray'> \
  <tr><td> \
  <table width=100% cellspacing=1 cellpadding=0 border=0> \
  <tr><td bgcolor=#fff1d2 align=center> \
  <font face='Arial' size='-1' color='#555555'><B> \
  РАЗДЕЛЫ</td></tr> ");
 
  for(j=0; j<rName.length; j++)
  {
    if( j ==  k) 
      document.write(" <tr><td bgcolor='white' align=center>" + rName[j] + "</td></tr>")

	else
	{
      document.write(" <tr><td bgcolor='#EEEEEE' align=center><a href=" + rRef[j])
	  document.write( " class=nav2><b><font color=#855555>" + rName[j] + "</a></td></tr>" )
	}
  }	
    document.write(" </table> </td></tr>");
	document.write("</table>")
	
	
	
  } 

function vokrug( arg )
{
 if(arg==1) return;
 
 if(arg == 1)   document.write(' <br> ')

 document.write(' <font size=-2> ')
 document.write(' <a href="javascript:history.go(-1)">шаг назад</a> ')
 
 if(arg != 1)   document.write(' &nbsp;&nbsp;&nbsp;&nbsp; ')
 if(arg == 1)   document.write(' <br> ')
   
 document.write(' <a href="javascript:history.go(1)">шаг вперёд</a> ')
 document.write(' </font> ')
 
}


function theEnd()
{
document.write("<center>")
document.write("<br><table>")
	document.write('<tr><td width=220 align="left" valign="top" bgcolor="White" nowrap>');
	document.write('<!--Rating@Mail.ru LOGO--><a target=_top href="http://top.mail.ru/jump?from=244951"><img src="http://top.list.ru/counter?id=244951;t=52;l=1" border=0 height=31 width=88 alt="Рейтинг@Mail.ru"></a><!--/LOGO-->&nbsp;');
	document.write('<!--begin of Top100--><a href="http://top100.rambler.ru/top100/"><img src="http://counter.rambler.ru/top100.cnt?269332" alt="Rambler Top100" width=1 height=1 border=0></a><!--end of Top100 code--><!--begin of Top100 logo--><a href="http://top100.rambler.ru/top100/"><img src="http://images.rambler.ru/top100/banner-88x31-rambler-gray2.gif" alt="Rambler Top100" width=88 height=31 border=0></a><!--end of Top100 logo --></td> ');
        document.write('<td valign="top"><a href="http://www.openbsd.org"><img border=0 src ="/icons/openbsd/pb_openbsd.gif"></a></td></tr>');
        document.write('<tr><td height="10"><font face="Arial" size="1" color="Maroon">c 11.02.2001</font></td>');
        document.write('<td><font face="Arial" size="1" color="Maroon">c 17.11.2005</font></td></tr>');
	document.write('<tr><td colspan=2 align=center><br><font face="Arial" size="1" color="Maroon"><a href="mailto:solandr2000@mail.ru">Администратор</a></font></td><tr>');
	document.write("</td></tr></table>");

	
  document.write('\
  </TD> \
  </TR> \
  <TR> \
  <TD WIDTH="150" nowrap valign=bottom ROWSPAN="2"> \
  	  <img src="pic/bmstu.gif" alt="МГТУ" name="МГТУ" id="МГТУ" width="150" height="153" border="0" align="bottom"></TD> \
  <td align="LEFT" valign="TOP" height="1"></td> \
  </TR> \
  \
  </TABLE> \
');
}

function theCap()
{
  document.write('\
  <TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%> \
  <TR> \
	<TD width="157"> \
        <a href="http://www.bmstu.ru"><img src="pic/logo.jpg" alt="МГТУ" name="МГТУ" id="МГТУ" width="157" height="88" border="0"></a></TD> \
	<TD> \
	<P align=center> \
		<img src="pic/faculty.jpg" alt="Факультет Фундаментальные науки" name="Факультет Фундаментальные науки" id="Факультет Фундаментальные науки" width="578" height="88" border="0"> \
	</TD> \
  </TR> \
  <TR>  \
	<TD colspan="2"> \
        <hr width=98% align=left size=1> \
	</TD> \
  </TR> \
  </table> \
');
}
