<!-- Загрузка файла в новое окно и передача фокуса -->
function OpWin(lnk){
	objNewWindow=window.open(lnk,"MyNewWindow","scrollbars=yes");
	objNewWindow.focus();
}
function OpWin2(lnk,wnd){
	objNewWindow=window.open(lnk,wnd,"scrollbars=yes");
	objNewWindow.focus();
}
<!-- Дата последней модификации  -->
function LastMod(){
  LastDate  = new Date(document.lastModified);
  LastDay   = LastDate.getDate();        // Считываем число
  LastMonth = LastDate.getMonth();       // Считываем месяц
  LastYear  = LastDate.getYear();        // Считываем год
  LastYear = LastYear % 100;
  LastYear = ((LastYear < 50) ? (2000 + LastYear) : (1900 + LastYear));
  document.write ("Дата обновления: ", LastDay, ".", LastMonth+1, ".", LastYear);
}
<!-- Фрейм -->
function top02(txt1){
 if (self==parent)
 {
 document.write('<P align=center><SMALL>')
 document.write('<B>Данная страница находится в фрейме <A href="index.htm"  target="_blank">'+txt1+'</A></B></SMALL></P>')
 document.write('<HR>');
 }
}
<!-- Танцующий мент2 -->
<!--var ment1=new Image();ment1.src="GIBDD01.jpg"-->
<!--var ment2=new Image();ment2.src="GIBDD02.jpg"-->

if (document.images){
var ment1=new Image();ment1.src="GIBDD01.jpg"
var ment2=new Image();ment2.src="GIBDD02.jpg"
}
function flip(imgName,imgVar){
if (document.images)
 document[imgName].src=eval(imgVar);
return true;
}
function nothing(){
}
<!-- Добавить в избранное -->
var prot=document.location.protocol; 
var hostnam=document.location.hostname;  
var url=prot+'/'+'/'+hostnam+'/auto/GIBDD/';
var title='Общение с ГИБДД (на '+hostnam+')';
function AddFavorite1(){
  if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)) {
    document.write('<DIV CLASS=border-bottom1>');
    document.write('<FONT size=2pt><B>');
    document.write('<A  CLASS=menu1 HREF="javascript:window.external.AddFavorite(url,title);">Добавить сайт в "Избранное"</a> ');
    document.write('</FONT></B></DIV>');
  }
}
function AddFavorite2(){
  if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)) {
var url=document.location.href;
var title=document.title;
 window.external.AddFavorite(url,title);
  }
}
<!-- Сделать стартовой страницей -->
function HomePageGIBDD(){
  document.write('<a CLASS=menu1 href="#" ');
  document.write('onClick="var hostnam=document.location.hostname;');
  document.write("this.style.behavior='url(#default#homepage)';");
  document.write("this.setHomePage('http:/'+'/'+hostnam+'/auto/GIBDD/');");
  document.write('return false;">');
  document.write('Сделать стартовой страницей</a>');
}

<!-- Заголовок страницы-->
function topGIBDD01(txt1,txt2){
 document.write('<P id=0 align=center><SMALL>');
 document.write('<B>Данная страница находится в фрейме <A href="../index.htm"  target="_blank">Общение с ГИБДД</A></B></SMALL></P>');
 document.write('<HR>');
 document.write('<H2 CLASS=block-DarkBlue1>'+txt1+'</H2>');
 document.write('<P align=right><A CLASS=ssyl HREF="javascript:AddFavorite2()"><B>Сделать закладку</B></a></P>');
 document.write('<H3 align=center><FONT COLOR=DarkBlue>'+txt2+'</FONT></H3>');
 document.write('<BR>')
}
<!-- Подвал страницы-->
function bottomGIBDD01(){
 document.write('<P align=center><SMALL>')
 document.write('<B>Данная страница находится в фрейме <A href="../index.htm"  target="_blank">Общение с ГИБДД</A></B></SMALL></P>')
}
<!-- Ф-ции "Наверх"-->
function upGIBDD01(txt1){
 document.write('<P id='+txt1+' align=center><B>[ <A href=#0>Наверх</A> ]</B></P>')
 document.write('<HR width=70% align=center color=darkblue>')
 }
function upGIBDD02(txt1,txt2){
 document.write('<P id='+txt1+' align=center><B>[ <A href=#'+txt2+'>Наверх</A> ]</B></P>')
 document.write('<HR width=70% align=center color=darkblue>')
 }
<!-- Фрейм -->
function topGIBDD02(txt1){
 if (self==parent)
 {
 document.write('<B>Данная страница находится в фрейме '+txt1+'</B>');
 document.write('<HR>');
 }
}
<!-- Заголовок горячей страницы-->
function redtopGIBDD01(txt1,txt2){
 document.write('<P id=0 align=center><SMALL>');
 document.write('<B>Данная страница находится в фрейме <A href="../index.htm"  target="_blank">Общение с ГИБДД</A></B></SMALL></P>');
 document.write('<HR>');
 document.write('<H2 CLASS=block-red1>'+txt1+'</H2>');
 document.write('<P align=right><A CLASS=ssyl HREF="javascript:AddFavorite2()"><B>Сделать закладку</B></a></P>');
 document.write('<H3 align=center><FONT COLOR=DarkBlue>'+txt2+'</FONT></H3>');
 document.write('<BR>')
}


