
function showimage()
{
	document.images.icons.src="cats/"+document.form1.icon.options[document.form1.icon.selectedIndex].value+".gif";
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function reqWin(desktopURL){
desktop =window.open(desktopURL,"name","toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,width=800,height=600,resizable=yes");
}

function selectall(obj) 
{
	var checkBoxes = document.getElementsByTagName('input');
	for (i = 0; i < checkBoxes.length; i++) 
	{
		if (obj.checked == true) 
		{
			checkBoxes[i].checked = true; // Hier check ich alle Boxen...
		} else 
		{
			checkBoxes[i].checked = false; // Hier uncheck ich alle Boxen...
		}
	}
}
function openpop(url, d1, d2) 
{
	desktop =window.open(url,'Name','toolbar=no,status=no,menubar=no,width=300,height=200');

}

function DoConfirm(message, url) 
{
	if(confirm(message)) location.href = url;
}

function showpic(pURL,pWidth,pHeight,pTitle)
{
	win = window.open('about :blank','Bild','width=' + pWidth + ',height=' + pHeight);
	win.document.writeln('<html><head><title>' + pTitle + '</title></head>');
	win.document.writeln('<body background="'+pURL+'">');
	win.document.writeln('<p align=center vAlign=middle><a href="javascript:window.close();" alt="Fenster schliessen!"><img src="http://www.modding-faq.de/images/spacer.gif" border=0 width='+(pWidth-10)+' height='+(pHeight-10)+'></a></p>');
	win.document.writeln('</body></html>');
}

function popup(desktopURL)
{
	desktop =window.open(desktopURL,"name","toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,width=650,height=450,resizable=YES");
}
function popupDyn(desktopURL,width,height)
{
	desktop =window.open(desktopURL,"name","toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,width="+width+",height="+height+",resizable=YES");
}

function takeOnline(action,id) 
{
	window.document.form1.action.value=action;
	window.document.form1.sel_id.value=id;
	window.document.form1.submit();
}

function clicked(com) 
{
	window.document.form1.action.value=com;
}

function clicked1(com,com2) 
{
	window.document.form1.action.value=com;
	window.document.form1.jump.value=com2;
	window.document.form1.submit();
}

function clicked2(com) 
{
	window.document.form1.view.value=com;
}

function clicked3(com) 
{
	window.document.form2.action.value=com;
}

function clicked4(com,com2) 
{
	window.document.form1.action.value=com;
	window.document.form1.sel_id.value=com2;
	window.document.form1.submit();
}


function links_quant() 
{
	window.document.form1.submit();
}


function submitonce(theform) {
	// if IE 4+ or NS 6+
	if (document.all || document.getElementById) {
		// hunt down "submit" and "reset"
		for (i=0;i<theform.length;i++) {
			var tempobj=theform.elements[i];
			if(tempobj.type.toLowerCase()=="submit"||tempobj.type.toLowerCase()=="reset") {
				//disable it
				tempobj.disabled=true;
			}
		}
	}
}

function storeCaret(text) { 
	if (text.createTextRange) {
		text.caretPos = document.selection.createRange().duplicate();
	}
}

function AddText(text) {
	if (document.form1.message.createTextRange && document.form1.message.caretPos) {      
		var caretPos = document.form1.message.caretPos;      
		caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ?
		text + ' ' : text;
	}
	else document.form1.message.value += text;
	document.form1.message.focus(caretPos)
}

function br() {
	AddTxt="<br>";
	AddText(AddTxt);
}
function hr() {
	AddTxt="<hr>";
	AddText(AddTxt);
}

function size() {
	AddTxt="<size=2></size>";
	AddText(AddTxt);
}

function font() {
	AddTxt="<font=Tahoma></font>";
	AddText(AddTxt);
}

function teletype() {
	AddTxt="<tt></tt>";
	AddText(AddTxt);
}

function right() {
	AddTxt="<div align=right></div>";
	AddText(AddTxt);
}

function left() {
	AddTxt="<div align=left></div>";
	AddText(AddTxt);
}

function superscript() {
	AddTxt="<sup></sup>";
	AddText(AddTxt);
}

function subscript() {
	AddTxt="<sub></sub>";
	AddText(AddTxt);
}

function image() {
	AddTxt="<img src='URL' border=0>URL</img>";
	AddText(AddTxt);
}

function ftp() {
	AddTxt="<a href='ftp://' target=_blank>ftp:</a>";
	AddText(AddTxt);
}

function move() {
	AddTxt="<marquee>STUFF</marquee>";
	AddText(AddTxt);
}

function shadow() {
	AddTxt="<span style='FILTER:Shadow(Color=red,Direction=left);width: 300 px'>TEXT</span>";
	AddText(AddTxt);
}

function glow() {
AddTxt="<table style='FILTER:glow(color=#000000, strenght=#2)'>TEXT</table>";
	AddText(AddTxt);
}

function flash() {
	AddTxt="<flash=200,200>URL</flash>";
	AddText(AddTxt);
}

function pre() {
	AddTxt="<pre></pre>";
	AddText(AddTxt);
}

function tcol() {
	AddTxt="<td></td>";
	AddText(AddTxt);
}

function trow() {
	AddTxt="<tr></tr>";
	AddText(AddTxt);
}

function table() {
	AddTxt="<table border=0 width=100%><tr><td align=center></td></tr></table>";
	AddText(AddTxt);
}

function strike() {
	AddTxt="<s></s>";
	AddText(AddTxt);
}

function underline() {
	AddTxt="<u></u>";
	AddText(AddTxt);
}

function emai1() {
	AddTxt="<email></email>";
	AddText(AddTxt);
}

function bold() {
	AddTxt="<b></b>";
	AddText(AddTxt);
}

function italicize() {
	AddTxt="<i></i>";
	AddText(AddTxt);
}

function quote() {
	AddTxt="<quote></quote>";
	AddText(AddTxt);
}

function center() {
	AddTxt="<div align=center></div>";
	AddText(AddTxt);
}

function hyperlink() {
	AddTxt="<a href='http://URL' target=_blank>Description</a>";
	AddText(AddTxt);
}

function showcode() {
	AddTxt="<code></code>";
	AddText(AddTxt);
}

function list() {
	AddTxt="<ul><li>Eintrag1<li>Eintrag2<li>Eintrag3</ul>";
	AddText(AddTxt);
}

function showcolor(color) {
	AddTxt="<color="+color+"></color>";
	AddText(AddTxt);
}

function fontcolour(color) {
	AddTxt="<font color="+color+">Text</font>";
	AddText(AddTxt);
}
function smiley() {
	AddTxt=" :)";
	AddText(AddTxt);
}

function wink() {
	AddTxt=" ;)";
	AddText(AddTxt);
}

function cheesy() {
	AddTxt=" :D";
	AddText(AddTxt);
}

function grin() {
	AddTxt=" ;D";
	AddText(AddTxt);
}
function grin1() {
	AddTxt=" ;d";
	AddText(AddTxt);
}
function laugh() {
	AddTxt=" ;-D";
	AddText(AddTxt);
}

function angry() {
	AddTxt=" >;(";
	AddText(AddTxt);
}

function sad() {
	AddTxt=" :(";
	AddText(AddTxt);
}

function shocked() {
	AddTxt=" :o";
	AddText(AddTxt);
}

function cool() {
	AddTxt=" 8)";
	AddText(AddTxt);
}

function huh() {
	AddTxt=" ???";
	AddText(AddTxt);
}

function rolleyes() {
	AddTxt=" 8-)";
	AddText(AddTxt);
}

function tongue() {
	AddTxt=" :P";
	AddText(AddTxt);
}

function tongue2() {
	AddTxt=" :p";
	AddText(AddTxt);
}

function lipsrsealed() {
	AddTxt=" :-X";
	AddText(AddTxt);
}

function embarassed() {
	AddTxt=" :-[";
	AddText(AddTxt);
}

function undecided() {
	AddTxt=" :-/";
	AddText(AddTxt);
}

function kiss() {
	AddTxt=" :-*";
	AddText(AddTxt);
}

function cry() {
	AddTxt=" :'(";
	AddText(AddTxt);
}
function cry1() {
	AddTxt=" :'|";
	AddText(AddTxt);
}
function evil2() {
	AddTxt=" :'Z";
	AddText(AddTxt);
}
function buh() {
	AddTxt="§buh§";
	AddText(AddTxt);
}
function yeah() {
	AddTxt="§yeah§";
	AddText(AddTxt);
}
function question() {
	AddTxt="§question§";
	AddText(AddTxt);
}
function question1() {
	AddTxt="§question1§";
	AddText(AddTxt);
}
function attention() {
	AddTxt="§attention§";
	AddText(AddTxt);
}
function search() {
	AddTxt="§search§";
	AddText(AddTxt);
}
function redstar() {
	AddTxt="§redstar§";
	AddText(AddTxt);
}
function greenstar() {
	AddTxt="§greenstar§";
	AddText(AddTxt);
}
function folder() {
	AddTxt="§folder§";
	AddText(AddTxt);
}
function house() {
	AddTxt="§house§";
	AddText(AddTxt);
}
function house1() {
	AddTxt="§house1§";
	AddText(AddTxt);
}
function lamp() {
	AddTxt="§lamp§";
	AddText(AddTxt);
}
function cat() {
	AddTxt="§redarrow§";
	AddText(AddTxt);
}
function catblue() {
	AddTxt="§bluearrow§";
	AddText(AddTxt);
}