function roundInput(input_id, container_class, border_class){
	var input = $('#'+input_id+'');
	var input_width = input.css("width"); //get the width of input
	var input_height = input.css("height"); //get the height of input

	var wrap_width = parseInt(input_width) + 10; //add 10 for padding
	wrapper = input.wrap("<div class='"+container_class+"'></div>").parent();
	wrapper.wrap("<div class='"+border_class+"' id='"+input_id+"' style='width: "+wrap_width+"px; height: "+input_height+"px;'></div>"); //apply border
	wrapper.corner("round 5px").parent().css('padding', '1px').corner("round 5px"); //round box and border
}

<!-- SCRIPT QUE DEIXA REDONDO OS INPUTS -->        
/* round 2 inputs */
	$(function(){
		roundInput('input1','redondo','borda');
	});
	// test auto-ready logic - call corner before DOM is ready



