﻿// password input with readable value (en)
$(document).ready(function(){
	$('.input').each(function(){var default_value=this.value;$(this).focus(function(){if(this.value==default_value){this.value='';}});$(this).blur(function(){if(this.value==''){this.value=default_value;}});});
	$('#pwWrap').prepend('<input type="text" value="Password" name="passwordtext" id="pwText" class="input" />');
	$('#pwText').show();$('#pwInput').hide();
	$('#pwText').focus(function(){$('#pwText').hide();$('#pwInput').show();$('#pwInput').focus();});
	$('#pwInput').blur(function(){if($('#pwInput').val()==''){$('#pwText').show();$('#pwInput').hide();}});
	$('#newPwWrap').prepend('<input type="text" value="New password" name="passwordtext" id="newPwText" class="input" />');
	$('#newPwText').show();$('#newPw').hide();
	$('#newPwText').focus(function(){$('#newPwText').hide();$('#newPw').show();$('#newPw').focus();});
	$('#newPw').blur(function() {if($('#newPw').val()==''){$('#newPwText').show();$('#newPw').hide();}});
	$('#newPwWrapRepeat').prepend('<input type="text" value="Repeat new password" name="passwordtext" id="newPwTextRepeat" class="input" />');
	$('#newPwTextRepeat').show();$('#newPwRepeat').hide();
	$('#newPwTextRepeat').focus(function(){$('#newPwTextRepeat').hide();$('#newPwRepeat').show();$('#newPwRepeat').focus();});
	$('#newPwRepeat').blur(function(){if($('#newPwRepeat').val()==''){$('#newPwTextRepeat').show();$('#newPwRepeat').hide();}});
});

