function url_iframe(strURL,intTopicID)
	{ 
	var strDestination;
	strDestination = '/cms/index.asp?URL=' + strURL + '&TopicID=' + intTopicID + '';
	window.location.href = strDestination;
	}
	
function openWindow(theURL,winName,Width,Height,winProperties) 
		{
		var winWidth = Width;
		var winHeight = Height;
		var winW = (screen.width/2) - (winWidth/2);
		var winH = (screen.height/2) - (winHeight/2);
		var winProps = 'width=' + winWidth + ',height=' + winHeight + ',left=' + winW + ',top=' + winH + ',' + winProperties;
		
		newWin = window.open(theURL,winName,winProps);
		newWin.focus();
		}
		
function url_newwin(strURL)
	{ 
	newWin = window.open(strURL);
	newWin.focus();
	}
	
function changeHeight(id) 
	{
	if( navigator.appName != "Microsoft Internet Explorer")
		{
		id.style.height = window.innerHeight - 100;
		}
	else
		{
		id.style.height = id.offsetHeight;
		}
	}
	
	
function print_content(strQuery)
	{
	var winWidth = 505;
	var winHeight = 650;
	var winW = (screen.width/2) - (winWidth/2);
	var winH = (screen.height/2) - (winHeight/2);
	
	pop = window.open('/cms/show/printcontent.asp?' + strQuery + '', 'print_content', 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=no,width=505,height=650,left=' + winW + ',top=' + winH + '');
	if (!pop.opener) pop.opener=self;
		if (pop.focus) pop.focus();
}

// send mail function (spam blocker) (by netzmacher)
function sendMail(username,domainname,subject) {
	var strEMail = "mailto:" + username+ "@" + domainname +"?subject=" + subject;
	window.location = strEMail;
}

// show-layer function (by netzmacher)
function showLayer(layerName, shadowLayerName) {
	if (document.getElementById) // Netscape 6 and IE 5+
	{
		var targetElement = document.getElementById(layerName);
		var shadowElement = document.getElementById(shadowLayerName);
		targetElement.style.top = shadowElement.style.top;
		targetElement.style.visibility = 'visible';
	}
}

// hide-layer function (by netzmacher)
function hideLayer(layerName) {
	if (document.getElementById) {
		var targetElement = document.getElementById(layerName);
		targetElement.style.visibility = 'hidden';
	}
}

function addFavorite(bookmarkurl,bookmarktitle) {
	if (document.all) {
		window.external.AddFavorite(bookmarkurl,bookmarktitle)
	} else {
		alert('CTRL-D drücken, um diese Seite in Deinen Favoriten zu speichen!');
	}	
}	