InsaneMan, ignore my last code as I didnt check with both page and popup, works with one not both.
this code works for both
Code:
if (document.cookie.indexOf("tor=") < 0)
document.write ('<div id=stickymsg><a id="close" href="#" onClick="this.parentNode.parentNode.removeChild(this.parentNode); SetCookie(\'tor\',\'yes\',\'365\');"></a><b>{vb:raw vboptions.tor_alert_message}</b></div>')</vb:if>