function hideFormLabels(id) {
    $("input[name='" + id + "'][type='text'], input[name='" + id + "'][type='password'], textarea[name='" + id + "']").each(function() {
        var el = $(this);
	if ($(this)[0].value == "") {
		$("label[for='" + $(this)[0].name + "']").show();
	} else {
		$("label[for='" + $(this)[0].name + "']").hide();
	}
        $("label[for='" + $(this)[0].name + "']").click(function() { el.focus() });
    });
    $("input[type='text'][name='" + id + "'], input[type='password'][name='" + id + "'], textarea[name='" + id + "']").focus(function() {
	$("label[for='" + $(this)[0].name + "']").hide();
    });
    $("input[type='text'][name='" + id + "'], input[type='password'][name='" + id + "'], textarea[name='" + id + "']").blur(function() {
	if ($(this)[0].value == "") $("label[for='" + $(this)[0].name + "']").show();
    });
}
