// JavaScript Document

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function AddText(NewCode) {
document.form1Shout.nachricht.value+=NewCode
}
function blume() {
AddTxt=":blume:";
AddText(AddTxt);
}
function lachen() {
AddTxt=":lachen:";
AddText(AddTxt);
}
function laecheln() {
AddTxt=":laecheln:";
AddText(AddTxt);
}
function erstaunt() {
AddTxt=":erstaunt:";
AddText(AddTxt);
}
function traurig() {
AddTxt=":traurig:";
AddText(AddTxt);
}
function smile() {
AddTxt=":smile:";
AddText(AddTxt);
}
function beschaemt() {
AddTxt=":beschaemt:";
AddText(AddTxt);
}
function ueberleg() {
AddTxt=":ueberleg:";
AddText(AddTxt);
}
function motz() {
AddTxt=":motz:";
AddText(AddTxt);
}
function prost() {
AddTxt=":prost:";
AddText(AddTxt);
}
function freu() {
AddTxt=":freu:";
AddText(AddTxt);
}
function wink() {
AddTxt=":wink:";
AddText(AddTxt);
}
function sleep() {
AddTxt=":sleep:";
AddText(AddTxt);
}
function grins() {
AddTxt=":grins:";
AddText(AddTxt);
}
function knutsch() {
AddTxt=":knutsch:";
AddText(AddTxt);
}
function verrueckt() {
AddTxt=":verrueckt:";
AddText(AddTxt);
}
function hammer() {
AddTxt=":hammer:";
AddText(AddTxt);
}
function scheinheilig() {
AddTxt=":scheinheilig:";
AddText(AddTxt);
}
function kaffee() {
AddTxt=":kaffee:";
AddText(AddTxt);
}
function katze() {
AddTxt=":katze:";
AddText(AddTxt);
}


function GetTime() { 
var dt = new Date();
var def = dt.getTimezoneOffset()/60;
var gmt = (dt.getHours() + def);
window.document.clock.local.value = (IfZero(dt.getHours()) + ":" + IfZero(dt.getMinutes()) + ":" + IfZero(dt.getSeconds()));
var ending = ":" + IfZero(dt.getMinutes()) + ":" +  IfZero(dt.getSeconds());

var sdn =check24(((gmt + 10) > 24) ? ((gmt + 10) - 24) : (gmt + 10));
window.document.clock.sdn.value = (IfZero(sdn) + ending);

var _GMT =check24(((gmt) > 24) ? ((gmt) - 24) : (gmt));
setTimeout("GetTime()", 1000);
}
function IfZero(num) {
return ((num <= 9) ? ("0" + num) : num);
}
function check24(hour) {
return (hour >= 24) ? hour - 24 : hour;
}


function toggle(item) {
	var i													= document.getElementById(item);	
	if (i != null) {
		if (i.style.display == 'none' ) {
			document.getElementById(item).style.display	= 'block';
		} else {
			document.getElementById(item).style.display	= 'none';
		}
	}
}