	function toggleDiv(target) {
		var divi = document.getElementById(target);
		if(divi.style.display == "") {
			divi.style.display = "none";
		}
		else {
			divi.style.display = "";
		}
	}

	// 19.10.2010, Tomi -- Fixes TinyMCE bug with anchors
	// Tested with Firefox 3.6, IE 6,7,8,9, Opera 10.6, Safari 5, Google Chrome 6
	function fixAnchors() {
		var url = window.location.href.split('#')[0];
		$("div#pagetext a[href^='#']").each(
			function() {
				//var newurl = url + $(this).attr('href');
				$(this).attr('href', url + $(this).attr('href'));
			}
		);
	}
