Automatic Link Pop-out

Here’s a neat bit of code that, when embedded in a webpage, will pop all links into a new window when the form box is checked:

<script language="JavaScript"><!--
      // thanks to for this code
      function targetLinks(boNew) {
        if (boNew) 
          where = "_blank";
          where = "_self";
        for (var i=0; i
    <form name="targeter">
       <input type="checkbox" name="targetbox" id="tcheck" onclick="targetLinks(this.checked);">
      <label for="tcheck">
        Check box to open links in a new window