// JavaScript Document
art ="";
document.onmouseup = data;
<!--
function data(e) {
	if(navigator.appName == "Microsoft Internet Explorer") {
		leftsize = window.event.x + 5;
		topsize =  window.event.y + 90;
	}
	else if(navigator.appName == "Opera") {
		leftsize = e.screenX - 5;
		topsize =  e.screenY - 75;
	}
	else {
		leftsize = e.screenX;
		topsize =  e.screenY;
	}
	if(topsize + 207 >= screen.availHeight) topsize = screen.availHeight - 207;
	if(leftsize + 210 >= screen.availWidth) leftsize = screen.availWidth - 210;
}
//-->
<!--
function Sel()
{
if(document.getElementById("datei_angabe")) {
	window.location.href = "http://smilies-world.de/smilie_generator/schild-sprechblasen-smilie-generator.html#bottom";
	}
if(document.getElementById("datei_angabe") && document.getElementById("datei_angabe").value != "Codeform wählen und Smilie speichern") {
	document.getElementById("datei_angabe").focus();
	document.getElementById("datei_angabe").select();
	if(window.clipboardData) {
		window.clipboardData.setData('Text',document.getElementById("datei_angabe").value);
		}
	}
}
//-->
<!--
function InsertCode(smilie) {
	newSmilie = " "+smilie+" ";
	theform = document.form1;
	AddText(newSmilie,theform);
}
//-->
<!--
function getActiveText(selectedtext) {
	text = (document.selection) ? document.selection.createRange().text : window.getSelection().toString();
	if (selectedtext.createTextRange) {
    	selectedtext.caretPos = document.selection.createRange().duplicate();
	}
	return true;
}
//-->
<!--
function AddText(NewCode,theform) {
	if (theform.text.createTextRange && theform.text.caretPos) {
		var caretPos = theform.text.caretPos;
		caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? NewCode + ' ' : NewCode;
	} else {
		theform.text.value+=NewCode
	}
	theform.text.focus();
	AddTxt = "";
}
//-->
<!--
function parentSet(color)
{
  if(art == "shield") {
	document.getElementById("ShieldCol").style.backgroundColor = '#' + color;
    document.getElementById("ShieldColText").value = '#' + color;
	}
  else if(art == "write") {
	document.getElementById("WriteCol").style.backgroundColor = '#' + color;
    document.getElementById("WriteColText").value = '#' + color;
	}
  else if(art == "border") {
  	document.getElementById("BorderCol").style.backgroundColor = '#' + color;
    document.getElementById("BorderColText").value = '#' + color;
	}
}
//-->
<!--
function winColor(feld)
{
art = feld;
FensterK=open("/inc/module/smilie_generator/templates/table.htm","ColorTable","dependent=yes,menubar=no,scrollbars=no,locationbar=no,resizable=no,status=no,left=" + leftsize + ",top=" + topsize + ",height=172,width=199");
FensterK.focus();
}
//-->
<!--
function moreSmilies()
{
FensterS=open("/inc/module/smilie_generator/templates/smilies.htm","Smilies","dependent=yes,menubar=no,scrollbars=no,locationbar=no,resizable=no,status=no,left=150,top=100,height=450,width=375");
FensterS.focus();
}
//-->
<!--
function openDisc()
{
FensterD=open("/inc/module/smilie_generator/templates/disc.htm","Disclaimer","dependent=yes,menubar=no,scrollbars=no,locationbar=no,resizable=no,status=no,left=150,top=100,height=320,width=300");
FensterD.focus();
}
//-->
<!--
function newCode()
{
if(document.getElementById("datei_angabe") && document.getElementById("datei_angabe").value != "Codeform wählen und Smilie speichern") {
	dateiziel = document.getElementById("Smilie").src;
	if (document.form1.anzeigeart[0].checked == true) {
		document.getElementById("datei_angabe").value =" [img]"+dateiziel+"[/img] ";
	} else if(document.form1.anzeigeart[1].checked == true) {
		document.getElementById("datei_angabe").value =" [@img "+dateiziel+"] ";
	} else {
		document.getElementById("datei_angabe").value = dateiziel;
	}
	document.getElementById("datei_angabe").focus();
	document.getElementById("datei_angabe").select();
}
if(window.clipboardData) {
	window.clipboardData.setData('Text',document.getElementById("datei_angabe").value);
	}
}
//-->
<!--
function setre()
{
    document.form1.vorlage[0].checked = true;
    document.form1.font.selectedIndex = 0;
    document.form1.size.selectedIndex = 2;
    document.form1.align.selectedIndex = 0;
    document.form1.bold.checked = false;
    document.form1.italic.checked = false;
    document.getElementById("radio1").checked = true;
    document.getElementById("text").value = "";
    document.getElementById("ShieldCol").style.backgroundColor = "#FFFFFF";
	document.getElementById("WriteCol").style.backgroundColor = "#000000";
  	document.getElementById("BorderCol").style.backgroundColor = "#000000";
    document.getElementById("ShieldColText").value = "#FFFFFF";
	document.getElementById("WriteColText").value = "#000000";
  	document.getElementById("BorderColText").value = "#000000";
}
//-->
<!--
function smilieCreate()
{
 Preview = window.open("/inc/module/smilie_generator/templates/blank.htm","Vorschau","dependent=yes,menubar=no,scrollbars=yes,locationbar=no,resizable=no,status=no,left="+(screen.availWidth-530)/2+",top="+(screen.availHeight-280)/2+",height=280,width=530");
}
//-->
<!--
function weite(width,height)
{
 weite = screen.availWidth;
 hoehe = screen.availHeight;
 if(width > weite) width = weite;
 if(height > hoehe) height = hoehe;
 window.resizeTo(width,height);
 window.moveTo((weite-width)/2,(hoehe-height)/2);
 if(document.getElementById("datei_angabe")) {
	document.getElementById("datei_angabe").focus();
	document.getElementById("datei_angabe").select();

/*	if(window.clipboardData) {
		window.clipboardData.setData('Text',document.getElementById("datei_angabe").value);
		}
*/
	}
}
//-->
