// Main-body code
function outbound() {
  var myLinks = new Array;
  var myAF = new Array(3);
  myLinks = document.links;
  var myRE = /^http:\/\/www.camchatting.org/;
  myAF[0] = /^http:\/\/www.camchatting.org\/cgi-bin\/funfinder/;
  myAF[1] = /^http:\/\/www.camchatting.org\/cgi-bin\/chathosts/;
  myAF[2] = /^http:\/\/www.camchatting.org\/cgi-bin\/books/;

  for (var iL=0;iL<myLinks.length;iL++) {
    if (myLinks[iL].href.search(myRE))
    {
      document.links[iL].target = '_blank';
    }
    else
    {
      for (var jL=0;jL<myAF.length;jL++)
      {
        if (myLinks[iL].href.search(myAF[jL]) == 0) // Returns the position of myRE on the search string
        {
          document.links[iL].target = '_blank';
        }
      }
    }
  }
}

