Well you can simplify things a bit, by just defining a target...
<a href="http://www.siteA.com/directory.php" target="_blank">Directory</a>
This would just open a new window for the directory. If that is too over simplified, or not what you are looking for, post more details. Sorry, but it is difficult to understand precisely what you are looking for.