var nf_available = true;

    news[0].link     = '<a class="newstext" href="../netfiles/test.html">';
    news[1].link     = '<a class="newstext" href="../netconference/index.html">';


function nf_LoginFields() 
{
//  document.getElementById("BoxHeader").innerHTML = msg_reg_user;
  
  if (nf_available)
  {
    var loginaction  = "https://w01.net-files.de/;internal&action=netfilesIdentify.action";
    var loginmethod  = "post";
  }
  else
  {
    var loginaction  = "http://www.utomi.de/de/netfiles/unavailable.html";
    var loginmethod  = "get";
  }

  document.writeln('<form class="form" method="" name="loginform" id="loginform" action="">');
  document.loginform.action = loginaction;
  document.loginform.method = loginmethod;
  document.cookie = 'cookie_uto=testcookie';
  if(!document.cookie)
  {
    document.writeln(msg_cookie);
  }
  else
  {
    document.writeln('<img src="../../images/other/empty.gif" width="150" height="5" vspace="0" hspace="0"><br>');
    document.writeln('<div class="boxtext">' + msg_username + '</div>');
    document.writeln('<input type="text" name="name" size="20" maxlength="30" style="width: 140px;">');
    document.writeln('<div class="boxtext">' + msg_password + '</div>');
    document.writeln('<input type="password" name="passwd" size="20" maxlength="30" style="width: 140px;">');
    document.writeln('<img src="../../images/other/empty.gif" width="100" height="5" vspace="0" hspace="0"><br>');
    document.writeln('<input type=radio name=language value="de"' + ((language=="de")? " checked" : "") + '>&nbsp<img src="../../images/other/german.gif">&nbsp;' + msg_de + '<br>');
    document.writeln('<input type=radio name=language value="en"' + ((language=="en")? " checked" : "") + '>&nbsp<img src="../../images/other/english.gif">&nbsp;' + msg_en + '<br>');
    document.writeln('<img src="../../images/other/empty.gif" width="100" height="5" vspace="0" hspace="0"><br>');
    document.writeln('<input type="image" border="0" name="imageField2" src="../../images/netfiles/login.gif" width="91" height="18" alt="Login zu net-files"><br>');
    document.writeln('<img src="../../images/other/empty.gif" width="100" height="5" vspace="0" hspace="0"><br>');
//    document.writeln('<a href="#" onClick=window.open("https://w01.net-files.de/;internal&action=dialog.lostpwd.action","dialog","status=yes,toolbar=no,scrollbars=0,resizable=0,width=860,height=560") class="boxtext">' + msg_lost_pwd + '?</a></form>');
    document.writeln('<a href="#" onClick=window.open("https://w01.net-files.de/;internal&action=frameset.action&parameter=_setlanguage.action?LANGUAGE=' + language + '&FUNCTION=pwdUsernameDialog","dialog","status=yes,toolbar=no,scrollbars=0,resizable=0,width=860,height=560") class="boxtext">' + msg_lost_pwd + '?</a></form>');
  }
}


function nfLoginBox()
{
    document.getElementById("BoxHeader").innerHTML = " ";
    document.writeln(' ');
}


function netfilesBox()
{
  if (window.location.href.indexOf("login") > 0)
  {
    nfLoginBox();
  }
  else
  {
    
    document.getElementById("BoxHeader").innerHTML = msg_reg_user;
    nf_LoginFields();
  }
}


function netfilesNewsBox()
{
  showTesten();
}


function tour(domain)
{
  var popupWin = window.open(""+domain,"popupVar","toolbar=no,location=no,directories=0,status=no,menubar=no,scrollbars=no,copyhistory=0,resizable=0,width=640,height=480,top=50,left=50");
  if (!((navigator.appName=="Microsoft Internet Explorer") && (navigator.appVersion.substring(0,3)=="4.0"))) popupWin.focus();
}
