﻿// Claymore common scripts

function confirmExternalLink(url)
{
    if (confirm("If you would like to view this website, you may click on this link. It is important to note that by clicking on this link you will be leaving this website and the information viewed there is not the property of Claymore Securities, Inc.") == true)
    {
        window.open(url);        
    }
    return false;
}

function TrapKey(e, obj)
{
    var key = e.which||e.keyCode;
       if (key==13) // 13 = enter
       {
              e.returnValue=false;
              e.cancel = true;
              //obj.click();
              document.getElementById(obj).click();
              return false;
       }
}
