/**	RRC-Bötzingen (rrc-boetzingen.de) - function.js
 *	standard webpage js functions

 *	Author:	Roman Matthias Keil
 *	Copyright: Roman Matthias Keil
 *	Publisher: RRC-Bötzingen (rrc-boetzingen.de)
 
 *	$Id: functions.js 419 2009-04-02 13:50:12Z rrcadmin $
 *	$HeadURL: http://svn.rm-keil.de/rrc-boetzingen/development/Release%20(version1.0)/httpdocs/javascripts/functions.js $
 *	$Date: 2009-04-02 15:50:12 +0200 (Thu, 02 Apr 2009) $
 *	$Author: rrcadmin $
 *	$Revision: 419 $

 *	TODO:
 */

/* deletes the standard value of the user inputfield
 */
function onFocusUser(field) {
	if(field.value == 'Benutzername') field.value = '';
}

/* sets the standard value of the user inputfield
 */
function onBlurUser(field) {
	if(field.value == '') field.value = 'Benutzername';
}

/* deletes the standard value of the password inputfield
 */
function onFocusPasswd(field) {
	if(field.value == 'Passwort') field.value = '';
}

/* sets the standard value of the password inputfield
 */
function onBlurPasswd(field) {
	if(field.value == '') field.value = 'Passwort';
}

/* catch the pressed enter-kex an submit the form values
 */
function enterEvent(event) {
	if(!event) var e = window.event
	if(event.keyCode) code = event.keyCode;
	else if(event.which) code = event.which;
	
	if(code==13) document.forms[0].submit();
}
