<!--
   var ActM = false;
   var actdsel = false;
   but1 = new Image();
   but1.src = '/element/but_1_1.jpg';
   but2 = new Image();
   but2.src = '/element/but_2_1.jpg';
   but3 = new Image();
   but3.src = '/element/but_3_1.jpg';
   but4 = new Image();
   but4.src = '/element/but_4_1.jpg';
   but5 = new Image();
   but5.src = '/element/but_5_1.jpg';
   but6 = new Image();
   but6.src = '/element/but_6_1.jpg';
   
 function changeIm(act, img)
 { 
   if(actdsel) return;
   if(!ActM)
    document.all[act].src = '/element/'+ img +'.jpg';
 }

function ChMenu(indexM, act) {
     var MtyMenu = document.all[indexM];
	 if(MtyMenu.style.display == 'none') {
	   MtyMenu.style.display = 'block';
	   ActM = true;
	   document.all[act].src = '/element/mnn2.jpg';
	   document.all["TOP_ZN1A"].style.color = "#980000";
	 }else{
	   MtyMenu.style.display = 'none';
	   document.all[act].src = '/element/mnn.jpg';
	   document.all["TOP_ZN1A"].style.color = "#3D4145";
	   ActM = false;
	 }
 }

menuactiv = false;
function MainMenu(indexM, nameim) {
  if(menuactiv && menuactiv==indexM) return;
     var MtyMenu = document.all[indexM];
     MtyMenu.src = '/element/'+ nameim;
 }

function MailForm()
{
 var print_send;
 print_send = "ОШИБКА!\nЗаполните эти поля.\n\n Отправитель \n Сообщение";
 
 if (document.formm.last_name.value=="")
 {
 alert(print_send);
 document.formm.last_name.focus();
 return;
 }
 if (document.formm.message.value=="")
 {
 alert(print_send);
 document.formm.message.focus();
 return;
 }
 document.formm.act.value='submit';
 document.formm.submit();
}

function ph_help()
{
  var dialogps;
  dialogps = window.showModalDialog("helpfile/help.html","help","dialogWidth:750px; dialogHeight:550px; center:1; help:0; resizable:1; status:0");
}

function addbookmark(bookmarkurl, bookmarktitle){
 if (document.all) { window.external.AddFavorite(bookmarkurl,bookmarktitle); }
}


function WFOpen(file)
{
    myWin= open( "/image.php?img="+file,"", "width=400,height=500,status=yes,toolbar=no,directories=no,location=no,resizable=yes,scrollbars=yes,menubar=no");
}


function WFOpenImage(file, name)
{
    myWin= open( "/image.php?img="+file+"&name="+name,"Image", "width=600,height=500,status=yes,toolbar=no,directories=no,location=no,resizable=yes,scrollbars=yes,menubar=no");
}

now = new Date();
function print_date() {
 var day = now.getDay();
 var monthNames = new Array("01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12");
 var month = now.getMonth();
 var monthName = monthNames[month];
 var year = now.getYear();
 if ( year < 1000 ) year += 1900;
 var datestring = now.getDate() +'.'+ monthName +'.'+ year;
 document.write('&nbsp;' + datestring + '');
}

function SendMch()
{
 var print_send;
 print_send = "Для подачи заявки необходимо заполнить поле: \n";
 
  if (document.formm.last_name.value=="") {
 alert(print_send +"  * Контактное лицо");
 document.formm.last_name.focus(); return; }
  if (document.formm.url_name.value=="" || document.formm.url_name.value=="http://") {
 alert(print_send +"  * Адрес сайта");
 document.formm.url_name.focus(); return; }
  if (document.formm.phon.value=="") {
 alert(print_send +"  * Телефон");
 document.formm.phon.focus(); return; }
   if (document.formm.email_name.value=="") {
 alert(print_send +"  * E-Mail");
 document.formm.email_name.focus(); return; }
 document.formm.act.value='submit';
 document.formm.submit();
}
// -->