$(document).ready(function(){
	// ie makes the sizes of password fields smaller than text fields
	$("input[type='password']").height($("input[type='text']").height());
	$("input[type='password']").width($("input[type='text']").width());

	// two password fields are used:
	// first for showing text, 2nd for accepting input
	$("#password-clear").show();
	$("#password-password").hide();
	
	$("#password-clear").focus(function() {
	    $("#password-clear").hide();
	    $("#password-password").show();
	    $("#password-password").focus();
	});
	
	$("#password-password").blur(function() {
	    if($("#password-password").val() == '') {
	        $("#password-clear").show();
	        $("#password-password").hide();
	    }
	});
	
	// input fields display default values that disappear when clicked
	$(".default-value").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;
	        }
	    });
	});
	
});