function lesezeichen(verweis, name) {
	if(navigator.appName != 'Microsoft Internet Explorer') {
		alert("Diese Funktion wird von Ihrem Browser nicht unterst&uuml;tzt!")
		return
	} else { window.external.AddFavorite(verweis, name) }
}

function schreibe_verlinkungslink() {
	var beginTeil = '';
	var endeTeil = ' ';
	var className = 'menuelinie';
	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://www.leichte.info/verlinken.php?Url=" + encUrl + "&Titel=" + encTitel + "\"  title=\"Bitte klicken Sie hier um diese Seite zu verlinken. (" + document.title + ")\" class=\"" + className + "\">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 + "\">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 facebook_like() {
	var encUrl = encodeURIComponent(window.location.href);
	with(document) {
		open("text/html");
		write('<iframe src="http://www.facebook.com/plugins/like.php?href=' + encUrl + '&amp;layout=button_count&amp;show_faces=false&amp;width=450&amp;action=like&amp;colorscheme=light&amp;height=21" allowtransparency="" style="border: medium none ; width: 121px; height: 42px; overflow: hidden;" frameborder="0" scrolling="no"></iframe>');
		close();
	}
}


function schreibe_actioncenter(idA,idK,idS,idO1,idNL) {
	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 = 'http://www.horoskopeparadies.de/';
	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" style="background-color:#FFFFB3;"><TR><TD HEIGHT="10" ALIGN="LEFT" VALIGN="TOP" WIDTH="10"><IMG SRC="'+homeUrl+'bilder/eckeol-rosa.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-rosa.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(idK>0) {
			write(beginTeil+"<a href=\"druckversion.php?id=" + idK + "\" class=\"" + className + "\">Kleinanzeige drucken</A>"+endeTeil);
		}
		if(idA>0) {
			write(beginTeil+"<a href=\"artikel_drucken.php?id=" + idA + "\" class=\"" + className + "\">Druckversion</A>"+endeTeil);
		}
		if(idNL>0) {
			write(beginTeil+"<a href=\"NL_artikel_drucken.php?id=" + idA + "\" class=\"" + className + "\">Druckversion</A>"+endeTeil);
		}
		if(idO1>0) {
			write(beginTeil+"<a href=\"orakel1-drucken.php?id=" + idO1 + "\" class=\"" + className + "\">Orakelkarte drucken</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-rosa.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-rosa.gif" WIDTH="10" HEIGHT="10"></TD></TR></TABLE>');
		close();
	}
}



function clickzaehlentopliste(link_id) {
	document.bild.src = "out.php?site=" + link_id ;
}





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;
		}
	}
}

