$(document).ready(function(){

	submitButtonReplacement.initialize('replacesubmit');

});

var submitButtonReplacement = {
	initialize: function(classname){
		this.allButtons = $('input.'+classname);
		this.replaceButtons();
	},
	replaceButtons: function(){
		this.allButtons.each( function() {
			var input = $(this);
			$('<a href="#"><em></em>' + this.value + '</a>')
				.attr('class', this.className)
				.insertBefore(this)
				.click( function() {
					input.click(); 
					return false;
				});
			input.hide();
		});
	}
}
