It's nothing too complex, but there are two main issues here. The first and largest is that if you right click on the link and open it in a new window, the site that is loaded in the new window is whatever text you're using to disguise the affiliate link - which obviously means I get no commission, which rather defeats the point of the entire exercise. The second point is less important, but I'd like the links to automatically open in a new window anyway. I can do this with HTML but I've had no luck trying to adapt this script to do it.
Any help would be appreciated. Thanks in advance.