function external_links(obj, x, y)
 {
  switch(x)
   {
    case 0:
     window.open(document.getElementById('external_links_0').value);
     external_links(null, 2, null);
     break;
    case 1:
     var extern = document.getElementById("external_links");
     if(extern == null)
      {
       var c    =  document.createElement('div');
       c.className  =  "external_links";
       c.id   =  "external_links";
       var dim   = findPos(obj);
       c.style.top   =   dim[1] + 'px';
       c.style.left  =  dim[0] + 'px';
       c.innerHTML  = "<table width=\"450\" border=\"0\" align=\"center\" cellpadding=\"1\" cellspacing=\"0\" bgcolor=#CBB677>"    +
            "<tr>"                             +
            "<td> <table border=\"0\" cellspacing=\"1\" cellpadding=\"2\" bgcolor=\"ffffff\" width=\"100%\">"      +
            "<tr>"                             +
            "<td align=\"center\" bgcolor=\"#E7DED0\"><h5><b><font color=\"#CBB677\">{</font>"          +
            "&nbsp;Leaving iQ Credit Union's website &nbsp;<font color=\"#CBB677\">}<a name=\"basic\"></a></font></b></h4></td>"  +
            "</tr>"                             +
            "<tr>"                             +
            "<td align=\"center\" valign=\"top\">"                     +
            "<div align=\"left\">"                         +
            "<p><font size=\"1\" face=\"Arial, Helvetica, sans-serif\">"              +
            "The service providers linked from our site are not affiliated with the Credit Union and the Credit Union is "          +
            "not responsible for the products and services offered by these providers.  You should consult the privacy"    +
            "disclosures on the entire site you are entering for details regarding the third party's privacy policy"  +
            "</font><br />"                     +
            "</p>"                             +
            "<p align=\"center\">"                         +
            "<input onClick=\"javascript:external_links(null, 0);return false;\" type=\"button\" value=\"OK\" />&nbsp;"    +
            "<input onClick=\"javascript:external_links(null, 2);return false;\" type=\"button\" value=\"Cancel\" />"    +
            "<input id=\"external_links_0\" type=\"hidden\" value=\"" + y + "\" />"             +
            "</p>"                             +
            "</div>"                            +
            "</td>"                             +
            "</tr>"                             +
            "</table></td>"                           +
            "</tr>"                             +
            "</table>";
       document.body.appendChild(c);
      }
     else
      {
       document.getElementById("external_links_0").value = y;
      }
     break;
    default:
     document.body.removeChild(document.getElementById('external_links'));
     break;
   }
 }
function findPos(obj)
 {
  var curleft = curtop = 0;
  if (obj.offsetParent)
   {
    do 
     {
      curleft += obj.offsetLeft;
      curtop  += obj.offsetTop;
     } while (obj = obj.offsetParent);
   }
  return [curleft,curtop];
 }
