
function openChat() {
	if (typeof SESSIONURL == 'undefined')
		SESSIONURL = '';
	var chat = window.open ('/forum/chat.php?' + SESSIONURL + 'do=open', '_blank', 'toolbar=no, location=no, menubar=no, scrollbars=no, width=800, height=600, left=50, top=50, resizeable=no, status=no');
}

function openWhoIsInChat() {
	if (typeof SESSIONURL == 'undefined')
		SESSIONURL = '';
	var whoIsInChat = window.open('/forum/chat.php?' + SESSIONURL + 'do=listusers', 'whoisonline', 'toolbar=no, location=no, menubar=no, scrollbars=yes, width=240, height=340, left=50, top=50, resizeable=no, status=no');
}

function log_out() {
	ht = document.getElementsByTagName("html");
	ht[0].style.filter = "progid:DXImageTransform.Microsoft.BasicImage(grayscale=1)";
	if (confirm('Möchten Sie sich wirklich abmelden?')) {
		return true;
	}
	else {
		ht[0].style.filter = "";
		return false;
	}
}
