function checkFrameset() { if(!parent.mitte) { top.location.href="defaultframe.htm?" + location.href;} }

function checkNoFrame() { if(self!=top) { top.location.href=self.location.href;} }


function schreibe_verlinkungslink() {
	var beginTeil = ' &nbsp; ';
	var endeTeil = '';
	var className = 'unten';
	var encUrl = encodeURIComponent(window.location.href);
	var encTitel = encodeURIComponent(document.title);
	encTitel = encTitel.replace(/"/g," ") ;
	with(document) {
		open("text/html");
		if(navigator.appName == 'Microsoft Internet Explorer') {
			write(beginTeil+"<A HREF=\"javascript:window.external.AddFavorite(location.href,document.title)\" title=\"Bitte klicken Sie hier, um speziell diese Unterseite den Lesezeichen ihres Browsers hinzuzuf&uuml;gen.\" class=\"" + className + "\">bookmark</A>"+endeTeil);
		} 
		write(beginTeil+"<a href=\"mailto:?subject=Hallo%20%2D%20eine%20interessante%20Seite&amp;body=Hallo%2C%0Ahabe%20eine%20interessante%20Seite%20gefunden%3A%0A" + window.location.href.replace(/&/g,"%26") + "\" title=\"Mailen Sie Ihren Freunden einen Link zu dieser Seite\" class=\"" + className + "\">weitersagen</a>"+endeTeil);
		write(beginTeil+"<A HREF=\"http://twitter.com/share?url=" + encUrl + "&amp;text=" + encTitel + "\" title=\"auf Twitter weitersagen\" rel=\"nofollow\" target=\"_blank\" class=\"" + className + "\">tweet</A>"+endeTeil);
		write(beginTeil+"<A HREF=\"http://www.facebook.com/sharer.php?u=" + encUrl + "\"  title=\"Fuer Facebook Mitglieder: Auf Facebook teilen\" rel=\"nofollow\" class=\"" + className + "\">facebook</A>"+endeTeil);
		close();
	}
}

function schreibe_actioncenter(idA,idK,idS) {
	var beginTeil = '</td></tr><tr><td align="left" class="spalterechtstext" style="padding-left:6px;padding-right:5px;" onmouseover="this.style.backgroundColor=\'#FFFF00\'" onmouseout="this.style.backgroundColor=\'#FFFFB3\'">';
	var endeTeil = '';
	var className = '';
	var homeUrl = '';
	var encUrl = encodeURIComponent(window.location.href);
	var encTitel = encodeURIComponent(document.title);
	encTitel = encTitel.replace(/"/g," ") ;
	with(document) {
		open("text/html");
		write('<TABLE WIDTH="180" BORDER="0" CELLSPACING="0" CELLPADDING="0" BGCOLOR="#FFFFB3"><TR><TD HEIGHT="10" ALIGN="LEFT" VALIGN="TOP" WIDTH="10"><IMG SRC="'+homeUrl+'bilder/eckeol.gif" WIDTH="10" HEIGHT="10"></TD><TD HEIGHT="10"><IMG SRC="'+homeUrl+'bilder/eckeleer.gif" WIDTH="1" HEIGHT="1"></TD><TD HEIGHT="10" ALIGN="RIGHT" VALIGN="TOP" WIDTH="10"><IMG SRC="'+homeUrl+'bilder/eckeor.gif" WIDTH="10" HEIGHT="10"></TD></TR><TR><TD>&nbsp;</TD><TD class="kommentarZelle"><table width="100%" border="0" cellpadding="1" cellspacing="0" bgcolor="#FFFFB3"><tr><td align="left" class="spalterechtstext" style="padding-left:6px;padding-right:5px;"><strong>Action Center:</strong>');
		if(idA>0) {
			write(beginTeil+"<a href=\"artikel_drucken.php?id=" + idA + "\" class=\"" + className + "\">Druckversion</A>"+endeTeil);
		}
		if(navigator.appName == 'Microsoft Internet Explorer') {
			write(beginTeil+"<A HREF=\"javascript:window.external.AddFavorite(location.href,document.title)\" title=\"Bitte klicken Sie hier, um speziell diese Unterseite den Lesezeichen ihres Browsers hinzuzuf&uuml;gen.\" class=\"" + className + "\">Diese Seite merken</A>"+endeTeil);
		} 
		write(beginTeil+"<a href=\"mailto:?subject=Hallo%20%2D%20eine%20interessante%20Seite&amp;body=Hallo%2C%0Ahabe%20eine%20interessante%20Seite%20gefunden%3A%0A" + window.location.href.replace(/&/g,"%26") + "\" title=\"Mailen Sie Ihren Freunden einen Link zu dieser Seite\" class=\"" + className + "\">Artikel weitersagen</a>"+endeTeil);
		write(beginTeil+"<A HREF=\"http://www.leichte.info/verlinken.php?Url=" + encUrl + "&Titel=" + encTitel + "\"  title=\"Bitte klicken Sie hier um diese Seite zu verlinken. (" + document.title + ")\" class=\"" + className + "\">Artikel verlinken</A>"+endeTeil);
		write(beginTeil+"<A HREF=\"http://twitter.com/share?url=" + encUrl + "&amp;text=" + encTitel + "\" title=\"auf Twitter weitersagen\" rel=\"nofollow\" target=\"_blank\" class=\"" + className + "\">Hinweis auf Twitter bringen</A>"+endeTeil);
		write(beginTeil+"<A HREF=\"http://www.facebook.com/sharer.php?u=" + encUrl + "\"  title=\"Fuer Facebook Mitglieder: Auf Facebook teilen\" rel=\"nofollow\" class=\"" + className + "\">Auf Facebook teilen</A>"+endeTeil);
		write('</td></tr></table></TD><TD>&nbsp;</TD></TR><TR><TD HEIGHT="10" ALIGN="LEFT" VALIGN="BOTTOM" WIDTH="10"><IMG SRC="'+homeUrl+'bilder/eckeul.gif" WIDTH="10" HEIGHT="10"></TD><TD HEIGHT="10"><IMG SRC="'+homeUrl+'bilder/eckeleer.gif" WIDTH="1" HEIGHT="1"></TD><TD ALIGN="RIGHT" VALIGN="BOTTOM" WIDTH="10" HEIGHT="10"><IMG SRC="'+homeUrl+'bilder/eckeur.gif" WIDTH="10" HEIGHT="10"></TD></TR></TABLE>');
		close();
	}
}

function email_schreiben() {
	var a = '<a hre' + 'f="mai' + 'lto:';
	var b = 'a nfra ge @a llu mfa s s e nd e -he i lu ng.d e ';
	b = b.replace(/ /g,'');
	var c = '" title="Bitte hier klicken, um eine Email zu senden">' + b;
	var d = '</a>';
	document.write( a + b + c + d);
}


var gbisbold;
var gbisitalic;

function gbStoreCaret(textEl) {
	if (textEl.createTextRange) textEl.caretPos = document.selection.createRange().duplicate();
}

function gbmakebold() {
	document.post.comment_text.focus();
	if (document.post.comment_text.createTextRange && document.post.comment_text.caretPos) {
		mySelection=document.post.comment_text.caretPos.text;
		if (mySelection) {
			document.post.comment_text.caretPos.text="[b]"+mySelection+"[/b]";
			document.post.comment_text.focus();
			gbStoreCaret(document.post.comment_text);
		} else {
			if (gbisbold) {
				document.post.comment_text.caretPos.text='[/b]';
				gbisbold=false;
			} else {
				document.post.comment_text.caretPos.text='[b]';
				gbisbold=true;
			}
			gbStoreCaret(document.post.comment_text);
		}
	} else {
		if (gbisbold) {
			document.post.comment_text.value+='[/b]';
			gbisbold=false;
		} else {
			document.post.comment_text.value+='[b]';
			gbisbold=true;
		}
	}
}

function gbmakeitalic() {
	document.post.comment_text.focus();
	if (document.post.comment_text.createTextRange && document.post.comment_text.caretPos) {
		mySelection=document.post.comment_text.caretPos.text;
		if (mySelection) {
			document.post.comment_text.caretPos.text="[i]"+mySelection+"[/i]";
			document.post.comment_text.focus();
			gbStoreCaret(document.post.comment_text);
		} else {
			if (gbisitalic) {
				document.post.comment_text.caretPos.text='[/i]';
				gbisitalic=false;
			} else {
				document.post.comment_text.caretPos.text='[i]';
				gbisitalic=true;
			}
			gbStoreCaret(document.post.comment_text);
		}
	} else {
		if (gbisitalic) {
			document.post.comment_text.value+='[/i]';
			gbisitalic=false;
		} else {
			document.post.comment_text.value+='[i]';
			gbisitalic=true;
		}
	}
}

function gbmakezitat() {
	document.post.comment_text.focus();
	if (document.post.comment_text.createTextRange && document.post.comment_text.caretPos) {
		mySelection=document.post.comment_text.caretPos.text;
		if (mySelection) {
			document.post.comment_text.caretPos.text="[quote]"+mySelection+"[/quote]";
			document.post.comment_text.focus();
			gbStoreCaret(document.post.comment_text);
		} else {
			if (gbisitalic) {
				document.post.comment_text.caretPos.text='[/quote]';
				gbisitalic=false;
			} else {
				document.post.comment_text.caretPos.text='[quote]';
				gbisitalic=true;
			}
			gbStoreCaret(document.post.comment_text);
		}
	} else {
		if (gbisitalic) {
			document.post.comment_text.value+='[/quote]';
			gbisitalic=false;
		} else {
			document.post.comment_text.value+='[quote]';
			gbisitalic=true;
		}
	}
}
