<script type="text/javascript">
  function zmień(pole)
  {
    if(!pole) return;
    var links = document.getElementsByTagName("a");
    for(var i = 0; i < links.length; i++){
      if(pole.checked)
    links[i].target = "_blank";
      else
    links[i].target = "";
    }
  }
</script>