If you have php available on your server here is piece of code that does the job:
PHP Code:
<?php
$link=array(
1=>"http://network.com?affid=65675&merch=87897&pid=7hjkhjk",
2=>"http://network.com?affid=65675&merch=87897&pid=76786",
3=>"http://network.com?affid=65675&merch=87897&pid=7uyiu86",
4=>"http://network.com?affid=65675&merch=87897&pid=7yfgfh6"
);
$url=$link[$_GET['product']];
header("Location: ".$url);
?>
Save the script as link.php and change your links to something like link.php?product=1
The javascript alternatives do not work in Firefox or IE7.
Bookmarks