function H(id, path)
{
document.getElementById('bimg_' + id + '_1').src = path + "lhn.gif";
document.getElementById('bimg_' + id + '_2').src = path + "rhn.gif";
}

function U(id, path)
{
document.getElementById('bimg_' + id + '_1').src = path + "ln.gif";
document.getElementById('bimg_' + id + '_2').src = path + "rn.gif";
}

function Hh(id, path)
{
document.getElementById('bimg_' + id + '_1').src = path + "lhn.gif";
document.getElementById('bimg_' + id + '_2').src = path + "rnhh.gif";
}

function Uh(id, path)
{
document.getElementById('bimg_' + id + '_1').src = path + "ln.gif";
document.getElementById('bimg_' + id + '_2').src = path + "rnh.gif";
}

function C(el,url)
{
el.src = url;
}

function list(url,n)
{
for(i = 1; i <= n; i++)
{
document.write("<img src=\"");
document.write(url);
document.write("\">");
}
}

function to(element,n)
{
parent.document.forms[0].elements[element].value = n;
parent.cClick();
}

function InvertCheckbox(field) 
{
	if (field)
	{
		if (field.length)
		{
			var i; 
			for (i = 0; i < field.length; i++) 
			{ 
				field[i].checked = !field[i].checked; 
			}
		}
		else
		{
			field.checked=!field.checked;
		}
	}
} 

function ChangeCoords2(x, y, warp)
{
	var w = 0;
	w = warp-1; //Wegen der Konvertierung Sting zu Zahl
	w = w + 1;

	ChangeCoords3(0, 0, x - w, y - w);
	ChangeCoords3(1, 0, x,     y - w);
	ChangeCoords3(2, 0, x + w, y - w);

	ChangeCoords3(0, 1, x - w, y    );
	ChangeCoords3(2, 1, x + w, y    );

	ChangeCoords3(0, 2, x - w, y + w);
	ChangeCoords3(1, 2, x,     y + w);
	ChangeCoords3(2, 2, x + w,   y + w);
}

function ChangeCoords3(CellX, CellY, NewX, NewY)
{
	document.getElementById('Cell_' + CellX + '_' + CellY).innerHTML=NewX+'|'+NewY;
}

function Redirect(url, timeout)
{
	setTimeout ("_Redirect('" + url + "')",timeout);
}

function _Redirect(url)
{
	location.href=url;
}

function LN(node)
{
	document.write('<small>');
	document.write('<font color=#666666>[</font>');
	document.write('<a href="LanguageEdit.aspx@n=' + node + '" target="langedit"><font color=orange>E</font></a>');
	document.write('<font color=#666666>]</font>');
	document.write('</small>');
}
