rendered paste body
<form id="blog_form" method="post" action="#"><div style='display:none;'><input type='hidden' name='csrfmiddlewaretoken' value='b62877ee758086d1a085889db5b0514e' /></div>
<h3>Enter your blogs or news feeds</h3>
<table cellpadding="4" cellspacing="4" style="border-collapse:none;">
<col width=/>
<col style="padding:20px;"/>
<thead>
<tr><td>URL:</td><td>Category:</td><td></td></tr>
</thead>
<tbody id="blog_table">
</tbody>
</table>
[<a href="#" onclick="return add_blog_table_field();">Add Another Blog Feed</a>]
<p id="dbuttons">
<button id="btn_save" class="positive" name="save" type="submit">Save</button>
</p>
</form>
function add_blog_table_field(url, name) {
url = url || '';
name = name || 'Blogosphere';
$('#blog_table').append('<tr class="table_row" id="blog_table_row'+blog_table_id+'"><td><input type="text" class="blog_url_input" name="blog_url" value="'+url+'" /></td><td><input type="text" name="blog_category" onfocus="show_popup('+blog_table_id+');" onblur="hide_popup('+blog_table_id+');" value="'+name+'" autocomplete="off" /><br /><div id="form_popup'+blog_table_id+'" class="popup">'+generate_categories(blog_table_id)+'</div></td><td>[<a href="#" class="blog_deleter" onclick="return remove_blog_table_field('+blog_table_id+');">remove</a>]</td></tr>');
blog_table_id++;
blog_count++;
return false;
}