/* <![CDATA[ */
/* input_id is the ID of the input element */
/* container_class will let you control the text input background color and padding */
/* border_class will let you control the border color */
function roundInput(input_id, container_class, border_class){
	var input = $('#'+input_id+'');
	var input_width = input.css("width"); //get the width of input
	var wrap_width = parseInt(input_width) + 10; //add 10 for padding
	var wrapper = input.wrap("<div class='"+container_class+"'></div>").parent();
	wrapper.wrap("<div class='"+border_class+"' style='width: "+wrap_width+"px;'></div>"); //apply border
	wrapper.corner("cc:#282828 round 8px").parent().css('padding', '1px').corner("cc:#282828 round 12px"); //round box and border
}
 
$(function(){
	$("form input.iround, form textarea.iround, form select.iround").each(function(i,v){
		roundInput($(v).attr('id'),'rounded_container','rounded_border');
	});
});
/* ]]> */
