<!--
nereidFadeObjects = new Object();
nereidFadeTimers = new Object();
function nereidFade(object, destOp, rate, delta){
if (!document.all)
return
    if (object != "[object]"){
        setTimeout("nereidFade("+object+","+destOp+","+rate+","+delta+")",0);
        return;
    }

    clearTimeout(nereidFadeTimers[object.sourceIndex]);

    diff = destOp-object.filters.alpha.opacity;
    direction = 1;
    if (object.filters.alpha.opacity > destOp){
        direction = -1;
    }
    delta=Math.min(direction*diff,delta);
    object.filters.alpha.opacity+=direction*delta;

    if (object.filters.alpha.opacity != destOp){
        nereidFadeObjects[object.sourceIndex]=object;
        nereidFadeTimers[object.sourceIndex]=setTimeout("nereidFade(nereidFadeObjects["+object.sourceIndex+"],"+destOp+","+rate+","+delta+")",rate);
    }
}
function statustext() {
var Text="Volkssportfreunde Fulda 1986 e.V.";
window.status = Text;
}
function addsite() {
window.external.AddFavorite('http://www.fulda-marsch.de','www.fulda-marsch.de');
}


function storeCaret (textEl) {
	if (textEl.createTextRange)
		textEl.caretPos = document.selection.createRange().duplicate();
}

function insertAtCaret (textEl, text) {
	if (textEl.createTextRange && textEl.caretPos) {
		var caretPos = textEl.caretPos;
		caretPos.text =
			caretPos.text.charAt(caretPos.text.length - 1) == ' ' ?
			text  : text;
	} else {
		textEl.value  = textEl.value + text;
	}

	return true;
}

function DoSmilie(action) {
	var currentMessage = document.form.text.value;
	insertAtCaret(document.form.text, " " + action);
	document.form.text.focus();
	return;
}

function DoPrompt(action) {
	var currentMessage = document.form.text.value;

	if(action=="url") {
		var thisURL = prompt("Gebe die volle Adresse des Links ein:", "http://");
		if(thisURL==null){return;}
		var thisTitle = prompt("Gebe einen Linknamen ein (optional):", "Link Name");
		if(thisTitle==null){
			insertAtCaret(document.form.text, " [url]" + thisURL + "[/url]" );
			document.form.text.focus();
			return;
		}
		insertAtCaret(document.form.text, " [url=" + thisURL + "]" + thisTitle + "[/url]" );
		document.form.text.focus();
		return;
	}

	if(action=="email") {
		var thisMAIL = prompt("Gebe eine Email Adesse ein:", "");
		if (thisMAIL == null){return;}
		var thisTitle = prompt("Gebe einen Linknamen ein (optional):", "Link Name");
		if (thisTitle == null){
			insertAtCaret(document.form.text, " [mail]" + thisMAIL + "[/mail]" );
			document.form.text.focus();
			return;
		}
		insertAtCaret(document.form.text, " [mail=" + thisMAIL + "]" + thisTitle + "[/mail]" );
		document.form.text.focus();
		return;
	}

	if(action=="kommentar") {
		var thisComment = prompt("Gebe ein Kommentar ein:", "");
		if(thisComment==null){return;}
		insertAtCaret(document.form.text, "\n[kommentar]\n" + thisComment);
		document.form.text.focus();
		return;
	}

	if(action=="bold") {
		var thisBold = prompt("Gebe einen Text ein:", "");
		if(thisBold==null){return;}
		insertAtCaret(document.form.text, " [B]" + thisBold + "[/B]");
		document.form.text.focus();
		return;
	}

	if(action=="italics") {
		var thisItal = prompt("Gebe einen Text ein:", "");
		if(thisItal==null){return;}
		insertAtCaret(document.form.text, " [I]" + thisItal + "[/I]");
		document.form.text.focus();
		return;
	}

	if(action=="underline") {
		var thisUnderl = prompt("Gebe einen Text ein:", "");
		if(thisUnderl==null){return;}
		insertAtCaret(document.form.text, " [U]" + thisUnderl + "[/U]");
		document.form.text.focus();
		return;
	}

	if(action=="through") {
		var thisUnderl = prompt("Gebe einen Text ein:", "");
		if(thisUnderl==null){return;}
		insertAtCaret(document.form.text, " [D]" + thisUnderl + "[/D]");
		document.form.text.focus();
		return;
	}

	if(action=="image") {
		var thisImage = prompt("Gebe die URL zu dem Bild ein:", "http://");
		if (thisImage==null){return;}
		insertAtCaret(document.form.text, " [IMG]" + thisImage + "[/IMG]");
		document.form.text.focus();
		return;
	}

	if(action=="size") {
		var thisSize = document.form.size.value;
		var thisSize2 = prompt("Gebe einen Text ein:", "");
		if(thisSize2==null){return;}
		document.form.size.options(0).selected = true;
		insertAtCaret(document.form.text, " [SIZE=" + thisSize + "]" +thisSize2 + "[/SIZE]");
		document.form.text.focus();
		return;
	}

	if(action=="font") {
		var thisFont = document.form.font.value;
		var thisFont2 = prompt("Gebe einen Text ein:", "");
		if(thisFont2==null){return;}
		document.form.font.options(0).selected = true;
		insertAtCaret(document.form.text, " [FONT=" + thisFont + "]" +thisFont2 + "[/FONT]");
		document.form.text.focus();
		return;
	}

	if(action=="color") {
		var thisColor = document.form.color.value;
		var thisColor2 = prompt("Gebe einen Text ein:", "");
		if(thisColor2==null){return;}
		document.form.color.options(0).selected = true;
		insertAtCaret(document.form.text, " [COLOR=" + thisColor + "]" +thisColor2 + "[/COLOR]");
		document.form.text.focus();
		return;
	}

	if(action=="align") {
		var thisAlign = document.form.align.value;
		var thisAlign2 = prompt("Gebe einen Text ein:", "");
		if(thisAlign2==null){return;}
		document.form.align.options(0).selected = true;
		if(thisAlign=="marquee") {
			insertAtCaret(document.form.text, " [MARQUEE]" + thisAlign2 + "[/MARQUEE]");
		} else {
			insertAtCaret(document.form.text, " [ALIGN=" + thisAlign + "]" +thisAlign2 + "[/ALIGN]");
		}
		document.form.text.focus();
		return;
	}

	if(action=="point") {
		var thisPoint = prompt("Gebe einen Text ein:", "");
		if(thisPoint==null){return;}
		insertAtCaret(document.form.text, "[*]" + thisPoint);
		document.form.text.focus();
		return;
	}

	if(action=="quote") {
		var thisQuote = prompt("Gebe einen Text ein:", "");
		if(thisQuote==null){return;}
		insertAtCaret(document.form.text, "[ZITAT]" + thisQuote + "[/ZITAT]");
		document.form.text.focus();
		return;
	}
}
//-->
