//: ////////////////////////////////////////////////////////////////////////////
//+
//+       (C) ITF-EDV Fröschl GmbH, Hauserbachstr. 8, 93194 Walderbach
//+
//+ ////////////////////////////////////////////////////////////////////////////
//+
//+  Projekt:      iClient
//+  Teile:        js
//+  Bemerkung:    login js
//+
//+ ////////////////////////////////////////////////////////////////////////////
//+
//+  $Log: login.js,v $
//+  Revision 1.2  2006/03/17 10:27:45  hartl
//+  ADD: Header information added.
//+
//+  Revision 1.1  2004/08/20 09:01:18  schmid
//+  ADD: Initial
//+
//+
//. ////////////////////////////////////////////////////////////////////////////



/**
* Funktion:    setfocus
*
* @desc    Cursor auf Textfeld für Benutzernamen setzen
* @return  void
* @author  Hans-Jürgen Hartl, 7.2004
* @access  public
*/
function setfocus()
{
    document.getElementById('username').focus();
    document.getElementById('username').select();
}


/**
* Funktion:    writeCookie
*
* @desc    Cookie mit Bildschirmauflösung des Benutzer setzen
* @return  void
* @author  Hans-Jürgen Hartl, 7.2004
* @access  public
*/
function writeCookie()
{
    var today = new Date();
    var the_date = new Date("December 31, 2023");
    var the_cookie_date = the_date.toGMTString();
    var the_cookie = "users_resolution="+ screen.width +"x"+ screen.height;
    var the_cookie = the_cookie + ";expires=" + the_cookie_date;
    document.cookie=the_cookie;
}

