jQuery.fn.replaceButton = function(options) {

	var settings = jQuery.extend({
		nclass: "submit-button",
		fName: null,
		buttonText: null
	}, options);

	jQuery(this).replaceWith('<a class="'+settings.nclass+'" href="#" onclick="document.getElementById(\''+settings.fName+'\').submit();">'+settings.buttonText+'</a>');

}

