<!--

function Toggle_details (id)
{
	if (document.getElementById('details_row_' + id).style.display == 'none')
	{
		document.getElementById('details_img_' + id).src = 'images/custom/minus.jpg';
		document.getElementById('details_row_' + id).style.display = '';
		document.getElementById('details_img_' + id).alt = 'Details verstecken';
	}
	else
	{
		document.getElementById('details_img_' + id).src = 'images/custom/plus.jpg';
		document.getElementById('details_row_' + id).style.display = 'none';
		document.getElementById('details_img_' + id).alt = 'Details anzeigen';
	}
}

function tgl_comment_details (id)
{
	if (document.getElementById('tgl_comment_details_' + id).style.display == 'none')
	{
		document.getElementById('tgl_comment_detailsimg_' + id).src = 'images/custom/minus.jpg';
		document.getElementById('tgl_comment_details_' + id).style.display = '';
		document.getElementById('tgl_comment_detailsimg_' + id).alt = 'Details verstecken';
	}
	else
	{
		document.getElementById('tgl_comment_detailsimg_' + id).src = 'images/custom/plus.jpg';
		document.getElementById('tgl_comment_details_' + id).style.display = 'none';
		document.getElementById('tgl_comment_detailsimg_' + id).alt = 'Details anzeigen';
	}
}

function toggle_forum (id) {

	if (document.getElementById('forum_row_' + id).style.display == 'none') {

		document.getElementById('forum_img_' + id).src = 'images/custom/minus.jpg';
		document.getElementById('forum_row_' + id).style.display = '';
		document.getElementById('forum_img_' + id).alt = 'Details verstecken';

	} else {

		document.getElementById('forum_img_' + id).src = 'images/custom/plus.jpg';
		document.getElementById('forum_row_' + id).style.display = 'none';
		document.getElementById('forum_img_' + id).alt = 'Details anzeigen';

	}

}

function Toggle_comment (id)

{
	
	if (document.getElementById('details_comment_row_' + id).style.display == 'none')
			
	{
		
		document.getElementById('details_comment_img_' + id).src = 'images/custom/minus.jpg';
		document.getElementById('details_comment_row_' + id).style.display = '';
		document.getElementById('details_comment_img_' + id).alt = 'Comment hinzufügen';
	
	}

	else
	
	{
		
		document.getElementById('details_comment_img_' + id).src = 'images/custom/plus.jpg';
		document.getElementById('details_comment_row_' + id).style.display = 'none';
		document.getElementById('details_comment_img_' + id).alt = 'Comment hinzufügen';

	}

}

function open_popup(file)
{
 		
	MeinFenster =
 	window.open(file, 'popup', 'width=678,height=250,scrollbars');
 	MeinFenster.focus();
		
}


function Toggle_inserttext (id)
{
	if (document.getElementById('details_row_' + id).style.display == 'none')
	{
		document.getElementById('details_img_' + id).src = 'images/custom/minus.jpg';
		document.getElementById('details_row_' + id).style.display = '';
		document.getElementById('details_img_' + id).alt = 'Details verstecken';
	}
	else
	{
		document.getElementById('details_img_' + id).src = 'images/custom/plus.jpg';
		document.getElementById('details_row_' + id).style.display = 'none';
		document.getElementById('details_img_' + id).alt = 'Details anzeigen';
	}
}


function check(el, max)
{
if(el.value.length > max) el.value = el.value.substring(0, max);
}
//-->