// **************************************************************************************
// www.teamhb.org
// --------------------------------------------------------------------------------------
// registerform.js
//
// [ Javascript used on registration form ]
// last update : 21.03.2009
//
// + 21.03.2009 - File brought to life
// --------------------------------------------------------------------------------------
// (c)2009 www.teamhb.org
// **************************************************************************************

function doRegister()
{
	document.register_form.do_register.value = 1;
	document.register_form.submit();
}

function displayTip(tiptext)
{
        document.getElementById('tipbox').innerHTML = '' + tiptext;
        document.getElementById('tipbox').style.display = 'block';
}

function hideTip()
{
	document.getElementById('tipbox').style.display = 'none';
}

function resetUsername()
{
        document.getElementById('username').style.color = '#000000';
	document.getElementById('username').style.fontWeight = 100;
}
function resetEmail()
{
        document.getElementById('email').style.color = '#000000';
	document.getElementById('email').style.fontWeight = 100;
}
function resetConfirmEmail()
{
        document.getElementById('confirmemail').style.color = '#000000';
	document.getElementById('confirmemail').style.fontWeight = 100;
}
function resetTeamname()
{
	document.getElementById('teamname').style.color = '#000000';
	document.getElementById('teamname').style.fontWeight = 100;
}
function resetShortTeamname()
{
	document.getElementById('short_teamname').style.color = '#000000';
	document.getElementById('short_teamname').style.fontWeight = 100;
}
function resetStadiumname()
{
	document.getElementById('stadium_name').style.color = '#000000';
	document.getElementById('stadium_name').style.fontWeight = 100;
}

function submitForm()
{
	document.getElementById('register_form').do_register.value = 1;
	document.getElementById('register_form').submit();
}