<!--
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(){
 if (document.all) { window.external.AddFavorite('http://www.big-deal.ru/','Каталог товаров и услуг - Big Deal!'); }
}

function WFOpen(file)
{
    myWin= open( "/image.php?img="+file,"", "width=500,height=600,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=500,height=600,status=yes,toolbar=no,directories=no,location=no,resizable=yes,scrollbars=yes,menubar=no");
}

function WFOpenImageDia(file, name, w, h)
{
    myWin= open( "/image.php?img="+file+"&name="+name,"Image", "width="+ w +",height="+ h +",status=yes,toolbar=no,directories=no,location=no,resizable=yes,scrollbars=no,menubar=no");
}


 function StylrPR(thisel, idim, act, imgl) {
  thisel.style.backgroundColor='#8BADC8';
  
  if(imgl) {
   var idimnew = "im_"+ idim;
   var MImage = document.getElementById(idimnew);
   MImage.src = '/element/butcat2.jpg';
  }
  
  if(act) {
   Turn("menu_"+ idim, 1);
   over_header=1;
  }
  return;
 }

 function StylrPRN(thisel, idim, act, imgl) {
  thisel.style.backgroundColor='';
  
  if(imgl) {
   var idimnew = "im_"+ idim;
   var MImage = document.getElementById(idimnew);
   MImage.src = '/element/butcat.jpg';
  }
  
  if(act) {
   Turn("menu_"+ idim, 0);
   over_header=0;
  }
  return;
 }
//----------------------------------------------------------------------- 
var over_menu=0;
var over_header=0;
var id_sel = false;
function Turn(id, mode)
{
  if(mode)
    eval("setTimeout(\"On('" + id + "');\",200)");
  else
    eval("setTimeout(\"Off('" + id + "');\",200)");
}
function On(id)
{
  if(id_sel) { document.getElementById(id_sel).style.visibility = "hidden"; }
  document.getElementById(id).style.visibility =  "visible";
  id_sel = id;
}

function Off(id)
{
  if(!over_menu && !over_header)
    {
	var Mmenu = document.getElementById(id);
    Mmenu .style.visibility = "hidden";
	id_sel = false;
    }
}
//-------------------------------------------------------------------------

function MenuParent(id) {
 var Mmenu = document.getElementById(id);
  if(Mmenu.style.display == "none") {
   Mmenu .style.display = "block";
  }else{
   Mmenu .style.display = "none";
  }
  return;
}

// -->
