<!--

function blocking(nr)
{
	if (document.layers)
	{
		current = (document.layers[nr].display == 'block') ? 'none' : 'block';
		document.layers[nr].display = current;
	}
	else if (document.all)
	{
		current = (document.all[nr].style.display == 'block') ? 'none' : 'block';
		document.all[nr].style.display = current;
	}
	else if (document.getElementById)
	{
		vista = (document.getElementById(nr).style.display == 'block') ? 'none' : 'block';
		document.getElementById(nr).style.display = vista;
	}
}

function ermittleFC(fc) {
  var i=0;
  var RR, GG, BB, farbwert;
  var code = new Array ( "00" , "33", "66" , "99",	"CC" , "FF" );
  for (RR=0; RR < 6; RR++)
    { 
    for (GG=0; GG < 6; GG++)
      {
  	  for (BB=0; BB < 6; BB++)
	      {
	      if (i == fc) farbwert=code[RR]+code[GG]+code[BB];
        i++;	  	
	      }
      }
    }
  return '#'+farbwert;
}


function selectGB(nr, nr2)
{
	blocking(nr);
  document.EntryForm.fieldLayout.selectedIndex = nr2;
}

function F1(nr,nr2,nr3)
{
	blocking(nr);
  ermittleFC(nr3);
  document.EntryForm[nr2].value = ermittleFC(nr3);
}

function AllMessages() {
	for(var x=0;x<document.EntryForm.elements.length;x++)
	{ var y=document.EntryForm.elements[x];
	if(y.name!='ALLMSGS') y.checked=document.EntryForm.ALLMSGS.checked;
	}
}

function PopUpBankAccount()
  {
    window.open('/bankaccount.php', 'BankAccount' ,'width=330,height=425,resizable=NO,scrollbars=NO');
  }

//-->
