$( function()
{
    InitializeLoginForm();
});



function InitializeLoginForm()
{
    var eLoginField = document.getElementById( 'LoginForm_login' );
    if ( eLoginField != null )
    {
        eLoginField.onfocus = function()
        {
            if ( this.value != 'e-mail adres' ) return;
            this.value = '';
            this.style.fontStyle = '';
        }
        eLoginField.onblur = function()
        {
            if ( this.value != '' ) return;
            this.style.fontStyle = 'italic';
            this.value = 'e-mail adres';
        }
        eLoginField.value = '';
        eLoginField.focus();
        eLoginField.blur();
    }
	
    var ePasswordField = document.getElementById( 'LoginForm_password' );
    if ( ePasswordField != null )
    {
        ePasswordField.onfocus = function()
        {
            if ( this.value != 'wachtwoord' ) return;
            this.value = '';
        }
        ePasswordField.onblur = function()
        {
            if ( this.value != '' ) return;
            this.value = 'wachtwoord';
        }
        ePasswordField.value = '';
        ePasswordField.focus();
        ePasswordField.blur();
    }
}
