	function StoryUrl(url, session, affType, story, template) 
	{ 
	var s = url + "?SessionId=" + session 
	+ "&AFF_TYPE=" + affType 
	+ "&STORY_ID=" + story
	+ "&PUB_TEMPLATE_ID=" + template;
	window.location=s;
	  
	}
	<!----------------- functions to display a tooltip for the link ----------->
	function showtip(current,e,tooltip) {
			
		tooltip = ReplaceAll(tooltip,'***br***', '<BR>');
		
		if (document.layers) { // Netscape 4.0+
			theString="<DIV CLASS='ttip'>"+ tooltip +"</DIV>"
			document.tooltip.document.write(theString)
			document.tooltip.document.close()
			document.tooltip.left=e.pageX+14
			document.tooltip.top=e.pageY+2
			document.tooltip.visibility="show"
		}
		else {
		
			if(document.getElementById) {  // Netscape 6.0+ and Internet Explorer 5.0+ and Opera
			elm=document.getElementById("tooltip")
			elml=current
			elm.innerHTML= tooltip
			elm.style.height=elml.style.height
			elm.style.top=parseInt(findPosY(elml))+"px"
	            
			elm.style.left=parseInt(findPosX(elml) + elml.offsetWidth + 10)+"px"
	            
			elm.style.visibility = "visible"
			}
		}
	}
	    
	function hidetip(){
		if (document.layers) {  // Netscape 4.0+
			document.tooltip.visibility="hidden"
		}
		else {
			if(document.getElementById) { // Netscape 6.0+ and Internet Explorer 5.0+
				elm.style.visibility="hidden"
			}
		}
	} 
	function findPosX(obj)
	{
		var curleft = 0;
		if (obj.offsetParent)
		{
			while (obj.offsetParent)
			{
				curleft += obj.offsetLeft
				obj = obj.offsetParent;
			}
		}
		else if (obj.x)
			curleft += obj.x;
		return curleft;
	}

	function findPosY(obj)
	{
		var curtop = 0;
		if (obj.offsetParent)
		{
			while (obj.offsetParent)
			{
				curtop += obj.offsetTop
				obj = obj.offsetParent;
			}
		}
		else if (obj.y)
			curtop += obj.y;
		return curtop;
	}
	
	
	function panicButton(path) 
	{ 
		if (document.getElementById) 
		{ // DOM3 = IE5, NS6 
			document.getElementById('main').style.visibility = 'hidden'; 
		}
		else 
		{ 
			if (document.layers) 
			{ // Netscape 4 
				document.hideShow.visibility = 'hidden'; 
			} 
			else 
			{ // IE 4 
				document.all.hideShow.style.visibility = 'hidden'; 
			} 
		}
		
		window.location.href = path+"panic.asp"
	} 
	
	
	var popup = null;
	function OpenPopup(strURL, width, height)
	{
		if(popup && !popup.closed)
 			popup.close();
 			
 		popup = window.open(strURL,"win","height="+height+",width="+width+",left=40,top=40,scrollbars=yes,resizable=yes");
	}
	
	
	

	
	
<!----------------- end ----------->
