I have a page where I need to read a cookie and pass it's value in my href.
The cookie name is 'psid' and I can see it's value from the browser when l am on the page.
What is the best way to do this?

Here is the sample href:

<li><a href="http://76.28.121.192:7777/pls/apex/f?p=100:1:8884183468417"
title="My Custom reports)."
target="_blank">Reports <span style="color:#339933;">. *Custom*</span> </li>