// JavaScript Document

<!--


//################# Start TYPO3 scripts (ausgelagert) #####################


// JS function for uncrypting spam-protected emails:
function UnCryptMailto(s) {	//
	var n=0;
	var r="";
	for(var i=0; i < s.length; i++) {
		n=s.charCodeAt(i);
		if (n>=8364) {n = 128;}
		r += String.fromCharCode(n-(1));
	}
	return r;
}

// JS function for uncrypting spam-protected emails:
function linkTo_UnCryptMailto(s)	{	//
	location.href=UnCryptMailto(s);
}

// JS function for mouse-over
	function over(name,imgObj)	{	//
		if (version == "n3" && document[name]) {document[name].src = eval(name+"_h.src");}
		else if (imgObj)	{imgObj.src = eval(name+"_h.src");}
	}

// JS function for mouse-out
	function out(name,imgObj)	{	//
		if (version == "n3" && document[name]) {document[name].src = eval(name+"_n.src");}
		else if (imgObj)	{imgObj.src = eval(name+"_n.src");}
	}

// JS function for open pic
	function openPic(url,winName,winParams)	{	//
		var theWindow = window.open(url,winName,winParams);
		if (theWindow)	{theWindow.focus();}
	}

//################# Ende TYPO3 scripts (ausgelagert) #####################

function link_create(){if(document.all){document.form1.text.focus();document.execCommand('createlink');document.form1.text.blur();}
else{fehler();}}
function doc_paste(){if(document.all){document.form1.text.focus();document.execCommand("paste");document.form1.text.blur();}
else{fehler();}}
function doc_copy(){if(document.all){document.execCommand("Copy");}
else{fehler();}}
function doc_select(){if(document.all){document.execCommand("selectAll");}
else{fehler();}}
function doc_open(){if(document.all){document.execCommand("Open");}
else{fehler();}}
function doc_save_as(){if(document.all){document.execCommand("SaveAs",true,"IhrDokumentName.html");}
else{fehler();}}
function doc_save(){if(document.all){document.execCommand("SaveAs");}
else{fehler();}}
function doc_insertimage(){if(document.all){document.execCommand("insertimage",true);}
else{fehler();}}
function doc_print(){if(document.all){document.execCommand("Print",true);}
else{fehler();}}
function fehler(){alert("Ihr Browser versteht diese Funktion leider nicht!");}