	function popupSupertell(supertellId, mailerType, pageTitle, pageUrl)
	{
	  url = 'http://www.supertell.com/supertell.php?sid=' + supertellId +
			 '&mt=' + mailerType + '&title=' + pageTitle + '&url=' + pageUrl;

	  stWindow = window.open(url,
							 'superTell',
							 'width=660,height=590,status=yes,menubar=no,' +
							 'toolbar=no,scrollbars=yes,resizable=yes');
	  stWindow.focus();
	}
	function popupDetails(pageUrl)
	{
	  stWindow = window.open(pageUrl,
							 'Details',
							 'width=400,height=400,status=yes,menubar=no,' +
							 'toolbar=no,scrollbars=yes,resizable=yes');
	  stWindow.focus();
	}

	function setAttributeToId(elem, tagName, attr, id) {
		var tags = elem.getElementsByTagName(tagName);
		for (var i = 0; i < tags.length; i++) {
			eval('tags[i].' + attr + ' = "' + id + '";');
		}
		return elem;
	}
	function toggleDisplayOptions(show, hide) {
		document.getElementById(show+'Link').style.fontWeight = 'bold';
		document.getElementById(show).style.display = 'block';
		hideObj = document.getElementById(hide);
		setAttributeToId(hideObj, 'select', 'value', '');
		hideObj.style.display = 'none';
		document.getElementById(hide+'Link').style.fontWeight = 'normal';
	}
	
		function ShowPopup(hoveritem,hovername,hovertop)
		{
		hp = document.getElementById(hovername);
	
		// Set position of hover-over popup
		hp.style.top = hoveritem.offsetTop + 18;
		hp.style.left = hoveritem.offsetLeft + 24;
	
		// Set popup to visible
		hp.style.visibility = "Visible";
		}
	
		function HidePopup(hovername)
		{
		hp = document.getElementById(hovername);
		hp.style.visibility = "Hidden";
	}
