// © Rainard Buchmann, sebag mbH, http://www.sebag.de

urlbasis='http://www.sebag-buchmann.de/'

function ChatForm2() {
	if (top.pause) {return false;}
	document.chat.sessID.value=top.sessID
	setTimeout("Clear3();", 200);
	return true;
}
function Clear1() {
	top.init=0
	top.frames.Head.location.replace ("chathead1.html")
}
function Clear2() {
	if (top.init == 0) {
		top.init=1
		top.frames.Head.location.href = "chathead2.html"
	}
}
function Clear3() {
	document.chat.body.value=""
	document.chat.body.focus()
}
function ChatInit1() {
	if (top.location.href != parent.location.href) {		// Schildi-Chat nach oben ziehen
		top.location.href=parent.location.href
	}
	if ((top.username != '') && (top.sessID != '') && (top.init == 1)) { top.init=0; setTimeout("Clear2();", 200); return; }
	setTimeout ('Spanner();', 60000);
	document.chat.action=top.schchat;
	return ''
}
function ChatInit2() {
	if (top.location.href != parent.location.href) {		// Schildi-Chat nach oben ziehen
		top.location.href=parent.location.href
	}
	if (top.username == '') { setTimeout("Clear1();", 200); }
	document.chat.action=top.schchat;
	return ''
}
function UserZeigen() {
	if (top.pause) {return;}
	w=window.open(top.schchat+"?aktion=chatuser&sessID="+top.sessID, "user", "width=130,height=350,dependent=yes,resizable=yes,scrollbars=yes");
	w.focus();
}
function Nachlesen() {
	if (top.pause) {return;}
	w=window.open(top.schchat+"?aktion=biglistchat&sessID="+top.sessID, "user", "width=750,height=550,dependent=yes,resizable=yes,scrollbars=yes");
	w.focus();
}
function Moderator() {
	if (top.pause) {return;}
	w=window.open(top.schchat+"?aktion=moderator&sessID="+top.sessID, "mod", "width=750,height=550,resizable=yes,scrollbars=yes");
	w.focus();
}
function Smily() {
	if (top.pause) {return;}
	w=window.open(urlbasis+"smile/chatsmilies.html", "smile", "width=200,height=170,dependent=yes,resizable=yes,scrollbars=auto");
	w.focus();
}
function eMailChat() {
	if (top.pause) {return;}
	w=window.open(top.schchat+"?aktion=emailchat&sessID="+top.sessID, "user", "width=750,height=550,dependent=yes,resizable=yes,scrollbars=yes");
	w.focus();
}
function Privat() {
	if (top.pause) {return;}
	if (document.chat.body.value == "") {
		alert("bitte erst den Text eingeben");
		return
	}
	w=window.open(top.schchat+"?aktion=postprivat1&sessID="+top.sessID+"&body="+document.chat.body.value, "user", "width=150,height=400,dependent=yes,resizable=yes,scrollbars=yes");
	w.focus();
}
function PrivatLoesch() {
	if (top.pause) {return;}
	w=window.open(top.schchat+"?aktion=loeschprivat&sessID="+top.sessID, "user", "width=150,height=400,resizable=yes,scrollbars=yes");
	w.focus();
}
function SendungLoesch() {
	if (top.pause) {return;}
	w=window.open(top.schchat+"?aktion=deletelast&sessID="+top.sessID, "user", "width=150,height=400,resizable=yes,scrollbars=yes");
	w.focus();
}
function Pause() {
	if (top.pause) {return;}
	top.frames.Body.location.replace("chatpause.html")
	top.frames.Refresh.location.replace("chatnorefresh.html")
	top.pause=1
}	
function Hilfe() {
	if (top.pause) {return;}
	if ((top.username == "") || (top.passwort == "")) {
		nr="1";
	} else {
		nr="2";
	}
	w=window.open(urlbasis+"schildibrett/chat/hilfe"+nr+".htm", "hilfe", "width=700,height=500,resizable=yes,scrollbars=yes");
	w.focus();
}
function Zusatz(txt) {
	top.zusatz=txt
}
		

