<?php
global $lang;
?>
<div id="newsletter_form">
  <div id="title">
    <?= $lang -> getTrans( 'T_NEWSLETTER' );?>
  </div>
  <div id="form">
    <input type="text" id="email" placeholder="e-mail" />
    <div class="clearfix"></div>
    <a class="button" onclick="newsletterSign( 0 )" id="sign_out">wypisz się</a>
    <a class="button" onclick="newsletterSign( 1 )" id="sign_in">zapisz się</a>
    <div class="clearfix"></div>
  </div>
</div>
<script type="text/javascript">
  function newsletterSign( type ) {
    xajax_newsletterSign( type, $( '#email' ).val() );
    $( '#email' ).attr( 'disabled', 'disabled' );
  }
</script>