function hideFormLabels(id) {
    $("#" + id).each(function() {
        var el = $(this);
	if ($(this)[0].value == "") {
		$("label[for='" + $(this)[0].id + "']").show();
	} else {
		$("label[for='" + $(this)[0].id + "']").hide();
	}
        $("label[for='" + $(this)[0].id + "']").click(function() { el.focus() });
    });
    $("#" + id).focus(function() {
	$("label[for='" + $(this)[0].id + "']").hide();
    });
    $("#" + id).blur(function() {
	if ($(this)[0].value == "") $("label[for='" + $(this)[0].id + "']").show();
    });
}