	/**
	* This is a frame buster - who uses frames anymore?
	*/
	if ( window != window.top ) {
		top.location.href = location.href;

	}
	
	/**
	* I'm going for XHTML 1.0 Strict, cannot use target="_blank", so hack it up:)
	*/
	//EventRegister.add(window, 'load', set_external_links);
	
	/**
	* Causes all links marked with a rel="external" to open in a new window
	*
	* @return bool
	*/
	function set_external_links()
	{
		if ( !document.getElementsByTagName ) {
			return false;
			
		}
		
		var arr_anchors = document.getElementsByTagName("a");
		for ( var i=0; i<arr_anchors.length; i++ ) {
			if ( arr_anchors[i].getAttribute("href") && arr_anchors[i].getAttribute("rel") == "external" ) {
				arr_anchors[i].setAttribute("target", "_blank");
					
			}
						
		}//for		
		
		return true;
		
	}//end set_external_links
	
	
	/**
	*	Create an e-mail to be written out so that spam bots cannot see it
	* @param string username
	* @param string domain
	* @return string
	*/
	function output_email_link(username, domain)
	{
		var at = '@';	
		var mailto = "mailto:";
		return "<a href=\"" + mailto + username + at + domain + "\">" + username + at + domain + "</a>";
		
	}//end output_email

	function email_link(username, domain, text)
	{
		var at = '@';	
		var mailto = "mailto:";
		return "<a href=\"" + mailto + username + at + domain + "\">" + text + "</a>";
		
	}//end output_email
	
	
	