function getBodyScrollTop()
{
  return self.pageYOffset || (document.documentElement && document.documentElement.scrollTop) || (document.body && document.body.scrollTop);
}

function sendForm( form, container_id )
{
  $('#form_ajax').show();
  $.post(
    $(form).attr( 'action' ),
    $(form).serialize(),
    function ( html ){
      $('#' + container_id).html( html );
      $('#form_ajax').hide();
      var left = parseInt(parseInt(parseInt(getClientWidth())/2)-parseInt(parseInt($('.layer.showfaq').width())/2));
      $('.layer.showfaq').css({left: left});
    }
  );
}

function checkEnableForm(){
  
}

function showFormByRenew(){
  $('div[rel="true"]').hide();
  $('div[rel="false"]').show();
  $('div.faq h2').html('Задайте свой вопрос');
  
  $('.faq_form_fieldset').show();
}

