function showIcons()
{
	window.open("icons.php","icons","width=180,height=400,left=100,top=100,menubar=no,resizable=no,scrollbars=no,status=no,toolbar=no");
}

function openBigPicture(url) {
	window.open(url, 'picpopup','top=50,left=150,width=640,height=640,scrollbars=no');
}

function openPlayer(url) {
	window.open(url, 'playerpopup','top=50,left=150,width=300,height=300,scrollbars=no');
}

function setIconToComment(icon)
{
	var url = opener.location.href;
	var result = url.search(/new_topic.php/);
	var result2 = url.search(/new_reply.php/);
	var result3= url.search(/update_reply.php/);

	if(result != -1 || result2 != -1 || result3 != -1)
	{
		opener.myform.kommentar.value=opener.myform.kommentar.value + ' ' + icon + ' ';
		opener.myform.kommentar.focus();
	}

	window.close();
}

function showDatenschutz(url)
{
	window.open(url,"Datenschutzbedingungen","width=400,height=450,left=100,top=100,menubar=no,resizable=no,scrollbars=yes,status=no,toolbar=no");
}

function showWelcome(url)
{
	window.open(url,"Willkommen","width=400,height=450,left=100,top=100,menubar=no,resizable=no,scrollbars=no,status=no,toolbar=no");
}

function checkDeleteAction()
{
	return confirm('Wollen Sie den Beitrag wirklich löschen?');
}

function changeNavi(index,pic)
{
	document.images[index].src=pic;
}

function URLencode(sStr)
{
	return escape(sStr).replace(/\+/g, '%2B').replace(/\"/g,'%22').replace(/\'/g, '%27');
}

function checkFrameset(frameset)
{
	if(top.frames.length == 0)
	{
		document.location.href=frameset + '&url=' + URLencode(location.href);
	}
}

