		/*
		 *	@Function: 			externalToBlank()
		 *
		 *	@Params:			none
		 *	@Return:			void
		 *
		 *	@Description:		Function used in XHTML-strict context.
		 *						Assigns 'target'-attribute with '_blank'-value to all 
		 *						anchor-elements that have a 'rel' attribute with a value of
		 *						'external'
		 *
		 */
		
		function externalToBlank() {
			if (!document.getElementsByTagName) return;
			
			var anchors = document.getElementsByTagName("a");
			
			for (var i=0; i<anchors.length; i++) {
				var anchor = anchors[i]; 
				if (anchor.getAttribute("href") && anchor.getAttribute("rel")) { 
					var rel = anchor.getAttribute("rel"); 
					if (rel == "external") { 
						anchor.target = "_blank";
					}
					else if (rel.substring(0,9) == "external:") { 
						anchor.target = rel.substring(9, rel.length); 
					} 
				} 
			}
		}
		
		
		/*
		 *	@Function: 			setHeightOf()
		 *
		 *	@Params:			String sDivId (name of page-element)
		 *	@Return:			void
		 *
		 *	@Description:		Function sizes div-element 'main' to the available height of the 
		 *						user's screen if the current height of the 'main' div-element is
		 *						smaller than the available height
		 *
		 */
		function setHeightOf(sDivId) {
			var oDivToResize = document.getElementById(sDivId);
			var iContentHeight = oDivToResize.scrollHeight;
			
			var oMainDiv = document.getElementById('main');
			var iMainHeight = oMainDiv.scrollHeight;
			
			var iFrameWidth;
			var iFrameHeight;
			
			if (self.innerWidth) {
				iFrameWidth = self.innerWidth;
				iFrameHeight = self.innerHeight;
			}
			else if (document.documentElement && document.documentElement.clientWidth) {
				iFrameWidth = document.documentElement.clientWidth;
				iFrameHeight = document.documentElement.clientHeight;
			}
			else if (document.body) {
				iFrameWidth = document.body.clientWidth;
				iFrameHeight = document.body.clientHeight;
			}
			else return;
													
			var iDiffHeight = iFrameHeight - iMainHeight;
							
			if (iDiffHeight > 0) {
				oDivToResize.style.height = iContentHeight + iDiffHeight + 'px';
			}				
		}
