$.fn.highlightFields = function() {
	return this.focus(function() {
		$(this).prev("label").css("fontWeight","bold");
		
		var $type = $(this).attr("type");
		if ($type == "checkbox" || $type == "radio") return;
		this.style.border = "1px solid #58683A";
	}).blur(function() {
		$(this).prev("label").css("fontWeight","normal");
		
		var $type = $(this).attr("type");
		if ($type == "checkbox" || $type == "radio") return;
		this.style.border = "1px solid #CCC";
	});
};
$(function() {
	$("FORM.stdform input, FORM.stdform select, FORM.stdform textarea").highlightFields();
	$("FORM.stdform input[type=checkbox], FORM.stdform input[type=radio]").css("border","none");
});
