function confirmpassword( _element )
{
	if( $('#edit-password').attr('value').length <= 1 )
	{
		$('#confirmPassword').hide();
	}
	else if( $('#edit-password').attr('value').length > 0 )
	{
		$('#confirmPassword').show();
	}	
}

function confirmemail( d )
{
	if( $('#edit-emailaddress').attr('value').length <= 1 || $('#edit-emailaddress').attr('value') == d)
	{
		$('#confirmEmail').hide();
	}
	else if( $('#edit-emailaddress').attr('value') != d)
	{
		$('#confirmEmail').show();
	}	
}

function postalcodeHandler1(e)
{
	if($('#edit-prof-postcode').val() == '1234AB')
	{
		$('#edit-prof-postcode').val('');
		$('#edit-prof-postcode').css({color:'#000'});
	}
}

function postalcodeHandler2(e)
{
	if($('#edit-prof-postcode').val() == '')
	{
		$('#edit-prof-postcode').val('1234AB');
	}
	if($('#edit-prof-postcode').val() == '1234AB')
	{
		$('#edit-prof-postcode').css({color:'#aaa'});
	}
}

$(document).ready(
	function()
	{	
		$('#edit-prof-postcode').bind("focus", {formObj: this}, postalcodeHandler1);
		$('#edit-prof-postcode').bind("blur", {formObj: this}, postalcodeHandler2);
		postalcodeHandler2(); // Changes color if default.
		
		// Loginbox
		$('#edit-pass-wrapper label span').html('<span class="link-wachtwoordvergeten">(<a href="/profielen/wachtwoordvergeten">vergeten?</a>)</span>');
	}
);