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) {

	var the_height = document.getElementById(id.id).contentWindow.document.body.scrollHeight+22; 

	 
	
	//change the height of the iframe
	document.getElementById(id.id).height = the_height;
        
}

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();
}


// add url to bookmark (added by netzmacher)
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!');
	}	
}	