/* ###################################################### */
/* ############### Omgevingsvariabelen ################## */
/* ###################################################### */
/*                         test                           */
/* var documentroot="http://127.0.0.1/croughs";           */
/*                      homologatie                       */
/* var documentroot="http://intranet.croughs.be/croughs"; */
/*                       productie                        */
   var documentroot="http://www.croughs.be";              
/* ###################################################### */


hoston = new Image();
hoston.src = documentroot + "/images/nl/header/nav_host_on.gif";
hostoff = new Image();
hostoff.src = documentroot + "/images/nl/header/nav_host_off.gif";
porton = new Image();
porton.src = documentroot + "/images/nl/header/nav_port_on.gif";
portoff = new Image();
portoff.src = documentroot + "/images/nl/header/nav_port_off.gif";
curson = new Image();
curson.src = documentroot + "/images/nl/header/nav_curs_on.gif";
cursoff = new Image();
cursoff.src = documentroot + "/images/nl/header/nav_curs_off.gif";
overon = new Image();
overon.src = documentroot + "/images/nl/header/nav_over_on.gif";
overoff = new Image();
overoff.src = documentroot + "/images/nl/header/nav_over_off.gif";
gaston = new Image();
gaston.src = documentroot + "/images/nl/header/nav_gast_on.gif";
gastoff = new Image();
gastoff.src = documentroot + "/images/nl/header/nav_gast_off.gif";
    
function img_act(imgName)
  {
    imgOn = eval(imgName + "on.src");
    document[imgName].src = imgOn;
  }
      
function img_inact(imgName)
  {
    imgOff = eval(imgName + "off.src");
    document [imgName].src = imgOff;
  }    
    
function init()
  {
    document.login.gebruiker.focus();
    return;
  }

function goLogin()
  {
    if (document.login.gebruiker.value=="")
      {
        alert ("Gelieve uw gebruikersnaam op te geven a.u.b.");
        document.login.gebruiker.focus();
        return;
      }
    if (document.login.toegangscode.value=="")
      {
        alert ("Gelieve uw toegangscode in te vullen a.u.b.");
        document.login.toegangscode.focus();
        return;
      }
    document.login.submit();
  }
