var avatardiv = $('#avatardiv');
avatardiv.replaceWith("<%= escape_javascript(render :partial=>'avatar/avatar_form',:style => 'display:inline',:locals=> {source:@source}) %>");
//var imgSpan = $('#avatar_image');

//imgSpan.attr({"src":'<#%= @urlfile.to_s << "?" << Time.now.to_s%>'});