function prefill_form(id, val) {
    id.focus(function() {
	if ($(this).val() == val) $(this).val('');
	$(this).removeClass('prefilled');
    });
    id.blur(function() {
	if ($(this).val() == '') {
	    $(this).addClass('prefilled');
	    $(this).val(val);
	}
    });
    if (id.val() == '') id.addClass('prefilled').val(val);
}
