jQuery.fn.errorMessage = function(options)
{
	var inputID = $(this).attr("id");
	var defaults = {
		messageTop: "This field cannot be left blank",
		messageMain: "Please provide a value and resubmit the form",
		formElement: "true"
	};
	var options = jQuery.extend(defaults, options);
	
	var output = "<div id='error_"+inputID+"' class='errorCont'>";
		output += "<span class='top'></span>";
		output += "<p class='bold'>"+options.messageTop+"</p>";
		output += "<p>"+options.messageMain+"</p>";
		output += "</div>";
		output += "<div class='errorClear'></div>";
	
	// apend the output AFTER the form element
	$("#"+inputID).after(output);
	
	if (options.formElement == "true") {
		// add focus to the form element
		$("#"+inputID).addClass("errorFocus");
	}
	
};
