function I(id) {
	return document.getElementById(id);
}
function N(nm, idx) {
	return document.getElementsByName(nm)[idx];
}
function NN(nm) {
	return document.getElementsByName(nm).length;
}
function N0(nm)  {
	return document.getElementsByName(nm)[0];
}
function NS(idRoot, subname) {
	obji = document.getElementById( idRoot );
	return obji.getElementsByTagName(subname);
}
function wincenter(uri, target, width, height) {
	x = (screen.availWidth - width) / 2;
	y = (screen.availHeight - height) / 2;
	sStyles = "width=" + width + 
				",height=" + height +
				",left=" + x + 
				",top=" + y + 
				",resizable=yes, scrollbars=yes, toolbar=no, menubar=no, status=no ";
	wnd = window.open( uri , target, sStyles );
	wnd.focus();
}
function SetValueToAll(objname, val) {
	objs = document.getElementsByName( objname );
	for( n = 0; n < objs.length; n=n+1 )
	{
		objs[n].value = val;
	}
}
function StoreCombo(objCombo)
{
	arComboMem = new Array();
	if (objCombo)
	{
		for( i = 0; i < objCombo.length; i = i + 1 )	{
			arComboMem[ i ] = new Array( objCombo.options[i].value, objCombo.options[i].text );
		}
	}
	return arComboMem;
}
function ReStoreCombo(objCombo, arComboMem)
{
	while( 	objCombo.length > 0 )	objCombo.options[0] = null;
	for( i = 0; i < arComboMem.length; ++i) {
		NeuerEintrag = new Option(arComboMem[i].text,arComboMem[i].value,false,false);	
		objCombo.options[ objCombo.length ] = NeuerEintrag;
	}
}
