<!--
function podmenu(el)
{	if(document.getElementById('p'+el).style.display=='block')
	{
	document.getElementById('p'+el).style.display='none';
	document.getElementById('i'+el).src='/element/l_bulet.gif';
	document.getElementById('l'+el).style.color='#5a728e';
	}
	else
	{	document.getElementById('p'+el).style.display='block';
	document.getElementById('i'+el).src='/element/l_bulet2.gif';
	document.getElementById('l'+el).style.color='#df1314';	}}

function woi(url,w,h){
width = screen.width;
height = screen.height;
window.open(url, 'showpicture','width='+(w)+',height='+(h)+',left='+((width-w)/2)+',top=0,fullscreen=0,location=0,menubar=0,scrollbars=no,status=0,toolbar=0,resizable=yes');
}

function Bandialog(src)
{
  var dialog;
  var obj_option = '';
  dialog = window.showModalDialog(src,"help","dialogWidth:750px; dialogHeight:550px; center:1; help:0; resizable:1; status:0");
  //dialog = window.open(src,"nombre","width=640, height=640,  toolbar=yes, menubar=no,  resizable=yes, scrollbars=yes" );
  if(dialog) {
   var TxtreaD  = document.all['htmlread'];
   for (i=0;i<dialog.length;i++)
   {
    obj_option += "<input type=\"Hidden\" name=newrub["+ i +"] value=\""+ dialog[i] +"\">";
   }
   TxtreaD.innerHTML =  obj_option;
  }
}


 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();
}
// -->