<!--
function montre(is_on) {
var e = document.getElementById('send1');
var d = document.getElementById('send');
var disp='none';
if(is_on)disp='block';
if (e) {e.style.display=disp;}
if (d) {d.style.display=disp;}

}

// -->

<!--//
function dropdown(c_id){
    if(dropped==c_id){

        var lay=document.getElementById('drlayer'+c_id);
        if(lay.style.display=='none'){
            lay.style.display='block';
        document.getElementById('drim'+c_id).src='/public/img/arr_t.gif';
            dropped=c_id;
        }
        else {
            lay.style.display='none';
        document.getElementById('drim'+c_id).src='/public/img/arr_b.gif';
            dropped=0;
        }
    }
    else {
        if(dropped>0){
            document.getElementById('drlayer'+dropped).style.display='none';
            document.getElementById('drim'+dropped).src='/public/img/arr_b.gif';
          }
        document.getElementById('drlayer'+c_id).style.display='block';
        document.getElementById('drim'+c_id).src='/public/img/arr_t.gif';
        dropped=c_id;
    }

}
dropped=0

function dropdowni(c_id){
    if(droppedi==c_id){

        var lay=document.getElementById('drlayeri'+c_id);
        if(lay.style.display=='none'){
            lay.style.display='block';
            droppedi=c_id;
        }
        else {
            lay.style.display='none';
            droppedi=0;
        }
    }
    else {
        if(droppedi>0){
            document.getElementById('drlayeri'+droppedi).style.display='none';
          }
        document.getElementById('drlayeri'+c_id).style.display='block';
        droppedi=c_id;
    }

}
droppedi=0










var send_fields_empty = 0;
// функция отправки сообщения администратору сайта о просьбе позвонить
function callus(data)
{
  send_fields_empty = 0;
  $.each($('#send input:text, #send textarea'), function(i, n)
  {
    if(n.value == n.defaultValue || n.value.replace(/\s+/, '')=='') send_fields_empty++;
  });

  if(!send_fields_empty)
  {
    $.post('ajax.php', {msg: 'callus', name: data.name, phone: data.phone, theme: data.theme}, function(data){alert(data); $('#send, #send1').hide();});
  }
  else
  {
    alert('Необходимо заполнить все указанные поля');
  }
  return false;
}

//-->

