
/* ******************************************** */
/* JSDigicode */
/* ******************************************** */

function getDigitCode(indice) {
  var form = document.forms['formDigicodeKeyBoard'];
  form.elements['password'].value = form.elements['password'].value + indice;
}

function onLoadLoginAPComValue() 
{
  var form = null;

  form = document.forms['formDigicodeKeyBoard'];
  if ( form != null ) {
    onLoadLoginValue();
    showPopupAPCom( 'digicodePopup' );
  }
}

function onLoadLoginALFrValue() 
{
  var form = null;

  form = document.forms['formDigicodeKeyBoard'];
  if ( form != null ) {
    onLoadLoginValue();
    showPopupALFr( 'digicodePopup' );
  }
}

function onLoadLoginICValue() 
{
  var form = null;

  form = document.forms['formDigicodeKeyBoard'];
  if ( form != null ) {
    onLoadLoginValue();
    showPopupIC( 'digicodePopup' );
  }
}

function onLoadLoginDirectICValue () 
{
  var form = null;

  form = document.forms['formDigicodeKeyBoard'];
  if ( form != null ) {
    onLoadLoginValue();
    showPopupDirectIC( 'digicodePopup' );
  }
}

function onLoadLoginValue() 
{
  var form = null;
  var champs1 = null;

  form = document.forms['formDigicodeKeyBoard'];
  champs1 = form.elements['login1'];
  if ( champs1 != null ) {
    var champs2 = null;
    form = document.forms['formPublicDigicodeKeyBoard'];
    champs2 = form.elements['loginDigicode'];
    if ( champs2 != null ) {
      champs2.value = champs1.value;
    }
  }
}

function submitLoginValue() 
{
  var form = null;
  var champs1 = null;

  form = document.forms['formPublicDigicodeKeyBoard'];
  if ( form != null ) {
    champs1 = form.elements['loginDigicode'];
    if ( champs1 != null ) {
      var champs2 = null;
      form = document.forms['formDigicodeKeyBoard'];
      champs2 = form.elements['login2'];
      if ( champs2 != null ) {
        champs2.value = champs1.value;
      }
    }
  }
}

function omovDJ ( element ) 
{
  element.style.backgroundColor='black';
  element.style.color='white';
}

function omouDJ ( element ) 
{
  element.style.backgroundColor='white';
  element.style.color='black';
}
