function setbookmark( id, topic, user ) { new Ajax.Request('/data/xaja/x_forum_bookmark.php?userid='+user+'&topic_id='+topic+'&category_id='+id, { onSuccess: function(transport) { } });}function rate( id, topic, user ) { new Ajax.Request('/data/xaja/x_topic_rate.php?userid='+user+'&topic_id='+topic+'&rating='+id,{ onSuccess: function(transport) { alert('Deine Bewertung wurde gespeichert. Die Gesamtwertung wird erst angezeigt, wenn mindestens 10 Mitglieder dieses Thema bewertet haben.'); } }); return false;}function overstar( id ) { for (var i = 1; i <= 5; i++) { $( 'star'+i ).src = '/images/cms/star2.gif'; } for (var i = 1; i <= id; i++) { $( 'star'+i ).src = '/images/cms/star1.gif'; }}function outstar() { for (var i = 1; i <= 5; i++) { $( 'star'+i ).src = '/images/cms/star2.gif'; }}function report_close( thread, page, post ){ var g; g = prompt( 'Bitte beschreibe kurz, was zu getan hast:' ); self.location.href='/forum/t/'+thread+','+page+'?report_close='+post+'&thread='+thread+'&bg='+g;}function sendFormByAjax( form ){ form.request( { encoding: 'utf-8' } ); return false;}function requestByAjax( url ){ new Ajax.Request(url, { method: 'get', onSuccess: function(response) { return true; } } ); return false;}function _saveForumTags(){ var tags = document.getElementById( 'input_forum_tags' ).value; var topic_id = document.getElementById( 'input_topic_id' ).value; XAJA_loadContent( "/data/xaja/forum_setTags.php?topic_id="+topic_id+"&tags="+tags, "" ); forum_updateTags( topic_id ); PU_close();}function forum_showAttachment( att_id ){ PU_init(); var pars = 'att_id=' + att_id; var myAjax = new Ajax.Updater("helper", '/data/xaja/forum_PU_attachment.php', {method: 'get', parameters: pars}); PU_resize( 600, 570 );}function forum_showImage( path ){ PU_init(); var pars = 'path=' + path; var myAjax = new Ajax.Updater("helper", '/data/xaja/PU_image.php', {method: 'get', parameters: pars}); PU_resize( 600, 570 );}function PU_resizeByImg() { if ($('img').complete) { PU_resize( $('img').width + 31, $('img').height + 50); } else window.setTimeout('PU_resizeByImg()',250); }function forum_thank( post_id ) { XAJA_loadContent( '/data/xaja/forum_thank.php?post_id='+post_id , ""); forum_updateThanks( post_id );}function forum_report( topic_id, post_id ){ PU_init( 520, 200 ); XAJA_loadContent( "/data/xaja/forum_PU_report.php?topic_id="+topic_id+"&post_id="+post_id, "helper", "load1.gif" );}function forum_saveReport(){ var post_id = document.getElementById( 'input_post_id' ).value; var topic_id = document.getElementById( 'input_topic_id' ).value; var message = document.getElementById( 'input_message' ).value; XAJA_loadContent( "/data/xaja/forum_saveReport.php?topic_id="+topic_id+"&post_id="+post_id+"&message="+message, "helper", "load1.gif" ); PU_close(); alert('Deine Beschwerde wurde gespeichert und an einen Moderator weitergeleitet.');}function _saveForumTags2(){ var tags = document.getElementById( 'input_forum_tags' ).value; var topic_id = document.getElementById( 'input_topic_id' ).value; XAJA_loadContent( "/data/xaja/forum_setTags.php?topic_id="+topic_id+"&tags="+tags, "" ); forum_updateTags( topic_id ); PU_close();}function forum_removeTag( tag_id ){ XAJA_loadContent( "/data/xaja/forum_removeTag.php?tag_id="+tag_id, "" );}function forum_updateTags( topic_id ){ XAJA_loadContent( "/data/content/forum/inc/xaja_getTags.php?topic_id="+topic_id, "forum_tags", "saving.gif" );}function forum_removeThank( thank_id ){ XAJA_loadContent( "/data/xaja/forum/xaja_removeThank.php?thank_id="+thank_id, "" );}function forum_updateThanks( post_id ){ XAJA_loadContent( "/data/xaja/forum/xaja_getThanks.php?post_id="+post_id, "forum_thanks_"+post_id, "saving.gif" );}function forum_PU_setTags( topic_id ){ PU_init( 400, 150 ); XAJA_loadContent( "/data/xaja/forum_PU_setTags.php?t="+topic_id, "helper" );}function forum_quote( post_id ){ var text = getSection( 'post_'+post_id ); if( text == "" ) { alert( "Markiere den Text, den du zitieren möchtest. Zitiere bitte NICHT ganze Beiträge!" ); return false; } return text;}function show_message( id, tt){ var subject = document.getElementById( 'message_' + id + '_subject'); var content = document.getElementById( 'message_' + id ); var func = document.getElementById( 'message_' + id + '_func_tr'); if( content.style.display == 'none' ) { content.style.display = ''; func.style.display = ''; subject.className = 'messages_subject_active';		XAJA_loadContent( '/data/xaja/message_getMessage.php?action=get&xaja_userid='+xaja_userid+'&xaja_hash='+xaja_hash+'&message_id='+id, 'message_'+id+'_content' ); XAJA_setContent( 'neu_' + id, '' ); } else { content.style.display = 'none'; subject.style.display = ''; subject.className = 'table_cell_'+tt; func.style.display = 'none'; } return false;}function show_message_outbox( id, tt){ var subject = document.getElementById( 'message_' + id + '_subject'); var content = document.getElementById( 'message_' + id ); var func = document.getElementById( 'message_' + id + '_func_tr'); if( content.style.display == 'none' ) { content.style.display = ''; func.style.display = ''; subject.className = 'messages_subject_active';		XAJA_loadContent( '/data/xaja/messages_outbox.php?action=get&xaja_userid='+xaja_userid+'&xaja_hash='+xaja_hash+'&message_id='+id, 'message_'+id+'_content' ); } else { content.style.display = 'none'; subject.style.display = ''; subject.className = 'table_cell_'+tt; func.style.display = 'none'; } return false;}function delete_message( id ){ var subject = document.getElementById( 'message_' + id + '_subject'); var content = document.getElementById( 'message_' + id ); var func = document.getElementById( 'message_' + id + '_func_tr');	XAJA_loadContent( '/data/xaja/message_deleteMessage.php?xaja_userid='+xaja_userid+'&xaja_hash='+xaja_hash+'&message_id='+id, '' ); subject.style.display = 'none'; content.style.display = 'none'; func.style.display = 'none'; return false;}function move_message( id, dest ){ var subject = document.getElementById( 'message_' + id + '_subject'); var content = document.getElementById( 'message_' + id ); var func = document.getElementById( 'message_' + id + '_func_tr');	XAJA_loadContent( '/data/xaja/message_moveMessage.php?xaja_userid='+xaja_userid+'&xaja_hash='+xaja_hash+'&message_id='+id+'&destination='+dest, '' ); subject.style.display = 'none'; content.style.display = 'none'; func.style.display = 'none'; return false;}function delete_message_outbox( id ){ var subject = document.getElementById( 'message_' + id + '_subject'); var content = document.getElementById( 'message_' + id ); var func = document.getElementById( 'message_' + id + '_func_tr');	XAJA_loadContent( '/data/xaja/messages_outbox.php?action=delete&xaja_userid='+xaja_userid+'&xaja_hash='+xaja_hash+'&message_id='+id, '' ); subject.style.display = 'none'; content.style.display = 'none'; func.style.display = 'none'; return false;}function slideBarDown(){ clearTimeout(this.slideUpTimer); if( this.inSlide || $('BAR').style.top != '-24px' ) return; this.slideDownTimer = setTimeout( "doSlideBar( -24, 'down' )", 100);}function slideBarUp(){ clearTimeout( this.slideDownTimer ); if( this.inSlide || $('BAR').style.top != '0px' ) return; this.slideUpTimer = setTimeout( "doSlideBar( 0, 'up' )", 800);}if( navigator.appCodeName == "Mozilla" && navigator.appName == "Netscape" ) this.interval = 3;else this.interval = 8;function doSlideBar( moveY, d ){ if ( moveY > -24 && d == 'up') { this.inSlide = true; moveY -= this.interval; $('BAR').style.top = moveY + 'px'; this.slidetimer = setTimeout("doSlideBar( " + moveY + ", 'up');", 10); } else if ( moveY < 0 && d == 'down') { this.inSlide = true; moveY += this.interval; $('BAR').style.top = moveY + 'px'; this.slidetimer = setTimeout("doSlideBar( " + moveY + ", 'down');", 10); } else { stop_slide(); }}stop_slide = function(){ clearTimeout(this.slidetimer); this.inSlide = false;};function XAJA_init() { var xmlHttp = null; /* Mozilla, Opera, Safari sowie Internet Explorer 7 */ if (typeof XMLHttpRequest != 'undefined') { xmlHttp = new XMLHttpRequest(); } if (!xmlHttp) { /* Internet Explorer 6 und ▒lter */ try { xmlHttp = new ActiveXObject("Msxml2.XMLHTTP"); } catch(e) { try { xmlHttp = new ActiveXObject("Microsoft.XMLHTTP"); } catch(e) { xmlHttp = null; } } } return xmlHttp;}function XAJA_loadContent( source, elementID, img ) {	if( elementID != "" ) {	 var element = document.getElementById( elementID ); if( img != "" && typeof img != "undefined" ) { 	element.innerHTML = '<img src="/images/xaja/'+img+'" />'; } else { 	element.innerHTML = '<img src="/images/misc/icon_loader.gif" />'; }	} var xmlHttp = XAJA_init(); /* no cache!! */ source = source + "&uncache=" + new Date().getTime(); if (xmlHttp) { xmlHttp.open('GET', source, true); xmlHttp.onreadystatechange = function () { if (xmlHttp.readyState == 4) {				 if( elementID != "" ) {	 XAJA_setContent( elementID, xmlHttp.responseText );					} } }; xmlHttp.send(null); }}function XAJA_setContent( elementID, content ) { var element = document.getElementById( elementID ); element.innerHTML = content;}function abonnements_getTopics(){ var select = document.getElementById( 'favoriten_tags' ); var id = select.options[select.options.selectedIndex].value; if( id != '' ) XAJA_loadContent( "/data/xaja/favoriten_getTopics.php?id="+id, "favoriten_topics", "load1.gif" ); }function switchImg( id, src ){document.getElementById( id ).src = src;document.getElementById( id ).style.width='auto';document.getElementById( id ).style.height='auto';}function showImage( image_path ){ PU_init(); var pars = 'image_path=' + escape( image_path ); var myAjax = new Ajax.Updater("helper", '/data/xaja/PU_showImage.php', {method: 'get', parameters: pars}); PU_resize( 500, 370 );}function PU_BG_init(){ return;	var body = document.getElementsByTagName( 'body' ); body[0].style.overflow = 'hidden';	/******	* get scroll position	**/	var scrollPos;	if (typeof window.pageYOffset != 'undefined') {	 scrollPos = window.pageYOffset;	}	else if (typeof document.compatMode != 'undefined' &&	 document.compatMode != 'BackCompat') {	 scrollPos = document.documentElement.scrollTop;	}	else if (typeof document.body != 'undefined') {	 scrollPos = document.body.scrollTop;	}	/******/	var helper = document.getElementById( 'helperBG' ); helper.style.display = 'block';	helper.style.width = '100%';	helper.style.height = '100%';	helper.style.zIndex = '1000';	helper.style.backgroundImage = 'url(/images/xaja/BG.png)'; helper.style.position = 'absolute';	helper.style.top = scrollPos + 'px';	helper.style.left = '0px';}function PU_init( w, h ){	var helper = document.getElementById( 'helper' ); if( typeof w == "undefined" ) { var w = 16; var h = 16; helper.innerHTML = '<img src="/images/xaja/load1.gif" />'; } PU_resize( w, h );	/******	* get scroll position	**/	var scrollPos;	if (typeof window.pageYOffset != 'undefined') {	 scrollPos = window.pageYOffset;	}	else if (typeof document.compatMode != 'undefined' &&	 document.compatMode != 'BackCompat') {	 scrollPos = document.documentElement.scrollTop;	}	else if (typeof document.body != 'undefined') {	 scrollPos = document.body.scrollTop;	}	/******/ helper.style.display = '';	helper.style.width = w + 'px';	helper.style.height = h + 'px';	helper.style.overflow = 'auto'; helper.className = 'PU';	helper.style.zIndex = '2000';	helper.style.top = (screen.height / 2 + scrollPos - h / 1.5 ) + 'px';	helper.style.left = (screen.width / 2 - w / 2 ) + 'px'; return helper;}function PU_resize( w, h ){	var helper = document.getElementById( 'helper' );	/******	* get scroll position	**/	var scrollPos;	if (typeof window.pageYOffset != 'undefined') {	 scrollPos = window.pageYOffset;	}	else if (typeof document.compatMode != 'undefined' &&	 document.compatMode != 'BackCompat') {	 scrollPos = document.documentElement.scrollTop;	}	else if (typeof document.body != 'undefined') {	 scrollPos = document.body.scrollTop;	}	/******/	helper.style.width = w + 'px';	helper.style.height = h + 'px';	helper.style.top = (screen.height / 2 + scrollPos - h / 1.5 ) + 'px';	helper.style.left = (screen.width / 2 - w / 2 ) + 'px';}function PU_close(){	var helper = document.getElementById( 'helper' ); helper.style.display = 'none';	var helperBG = document.getElementById( 'helperBG' ); helperBG.style.display = 'none';	var body = document.getElementsByTagName( 'body' ); body[0].style.overflow = 'auto';}function forum_tags( thread, post ){ PU_init(300, 200 );	var helper = document.getElementById( 'helper' );	helper.className = 'PU'; XAJA_loadContent( '/data/xaja/forum_tags.php?xaja_userid='+xaja_userid+'&xaja_hash='+xaja_hash+'&t='+thread+'&p='+post, 'helper'); return false;} function winopen( url ) { window.open( url ); }function toggleTable( part, h ){	ul =	document.getElementById('tbody_'+part);	if(ul.style.display == 'none') {		ul.style.display = '';		createCookie( "tbody_"+part, "0" );	} else {		ul.style.display = 'none';		createCookie( "tbody_"+part, "1" );	}}function initTable( part ){	ul =	document.getElementById('tbody_'+part);	if(readCookie("tbody_"+part) != '1') {		ul.style.display = '';	} else {		ul.style.display = 'none';	}}/*** cookie Funktionen */function createCookie(name,value) {	document.cookie = name+"="+value+";";}function setCookie(name,value) {	document.cookie = name+"="+value+";";}function readCookie(name) {	var nameEQ = name + "=";	var ca = document.cookie.split(';');	for(var i=0;i < ca.length;i++) {		var c = ca[i];		while (c.charAt(0)==' ') c = c.substring(1,c.length);		if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);	}	return null;}function getCookie(name) {	var nameEQ = name + "=";	var ca = document.cookie.split(';');	for(var i=0;i < ca.length;i++) {		var c = ca[i];		while (c.charAt(0)==' ') c = c.substring(1,c.length);		if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);	}	return null;}function eraseCookie(name) {	createCookie(name,"",-1);}function input_sm(FORM, ELEMENT, SM) {	document.forms[FORM].elements[ELEMENT].value += " *"+SM+"* ";	document.forms[FORM].elements[ELEMENT].focus();}function input_sm2(FORM, ELEMENT, SM) {	document.forms[FORM].elements[ELEMENT].value += " "+SM+" ";	document.forms[FORM].elements[ELEMENT].focus();}function go_galerie(polo) {	if(polo == '--')		document.location='/'; else		document.location='/html/galerie/polo/'+polo+',1.html';}function openbudwin() { window.open('/data/popup/buddy.php?<?=session_id();?>','polobudWin','width=320,height=200,resizeable=no,scrollbars=yes');}function opennewemailwin() { window.open('/data/popup/newemail.php','polobudWin','width=400,height=100,resizeable=no,scrollbars=yes');}function xsXL(image){if (navigator.appName=="Netscape")browserWidth = self.innerWidth;if (navigator.appName.indexOf("Microsoft")!=-1)browserWidth = document.body.offsetWidth; if (image.width>(browserWidth-50)) {realWidth = image.width; image.style.cursor = "crosshair"; image.width=(browserWidth-50);}else if (image.width==(browserWidth-50)) {image.width=realWidth; }}function insertTag(aTag, eTag) {	aTag = ' '+aTag;	eTag = eTag+' '; var input = document.forms['form'].elements['text']; input.focus(); /* für Internet Explorer */ if(typeof document.selection != 'undefined') { /* Einfügen des Formatierungscodes */ var range = document.selection.createRange(); var insText = range.text; range.text = aTag + insText + eTag; /* Anpassen der Cursorposition */ range = document.selection.createRange(); if (insText.length == 0) { range.move('character', -eTag.length); } else { range.moveStart('character', aTag.length + insText.length + eTag.length); } range.select(); } /* für neuere auf Gecko basierende Browser */ else if(typeof input.selectionStart != 'undefined') { /* Einfügen des Formatierungscodes */ var start = input.selectionStart; var end = input.selectionEnd; var insText = input.value.substring(start, end); input.value = input.value.substr(0, start) + aTag + insText + eTag + input.value.substr(end); /* Anpassen der Cursorposition */ var pos; if (insText.length == 0) { pos = start + aTag.length; } else { pos = start + aTag.length + insText.length + eTag.length; } input.selectionStart = pos; input.selectionEnd = pos; } /* für die übrigen Browser */ else { /* Abfrage der Einfügeposition */ var pos; var re = new RegExp('^[0-9]{0,3}$'); while(!re.test(pos)) { pos = prompt("Einfügen an Position (0.." + input.value.length + "):", "0"); } if(pos > input.value.length) { pos = input.value.length; } /* Einfügen des Formatierungscodes */ var insText = prompt("Bitte geben Sie den zu formatierenden Text ein:"); input.value = input.value.substr(0, pos) + aTag + insText + eTag + input.value.substr(pos); } return false;}function mark_all(){	var s;	var i=0;	while(s = document.getElementsByTagName("input")[i++])	{	if(s.type=='checkbox')		{ s.checked=true;		}	}	return false;}function ShowHide(id) { obj = document.getElementsByTagName("div"); if (obj[id].style.display == 'block'){ obj[id].style.display = 'none'; } else { 	 obj[id].style.display = 'block'; 	 obj[id].style.position = 'absolute'; }}function ShowHide2(id) { obj = document.getElementsByTagName("div"); if (obj[id].style.display == 'block'){ obj[id].style.display = 'none'; } else { 	 obj[id].style.display = 'block'; }}function ShowHide4(id) {	if (document.form.meet_activ.checked != true) { obj = document.getElementsByTagName("div"); obj[id].style.display = 'none'; } else { 	 obj[id].style.display = 'block'; }}function getSection( element ) { element = document.getElementById( element ); /* für Internet Explorer */ if(typeof document.selection != 'undefined') { /* Einfügen des Formatierungscodes */ var range = document.selection.createRange(); var insText = range.text; return( insText ); } /* für neuere auf Gecko basierende Browser */ else { var insText = window.getSelection(); return ( insText ); } return false;}function urlencode(str) {str = escape(str);str = str.replace('+', '%2B');str = str.replace('%20', '+');str = str.replace('*', '%2A');str = str.replace('/', '%2F');str = str.replace('@', '%40');return str;}

