function askNoti(checkit,youare){el=$.id('asi-noti');var extrahtml = "<input type=\"checkbox\" name=\"notify-assignee\" ";if(checkit!=youare) extrahtml+="checked=\"checked\" ";extrahtml+="value=\"1\"/>";extrahtml+="Send notification to assignee";extrahtml+="<input type=\"hidden\" name=\"asked-notify-assignee\" value=\"1\"/>";el.innerHTML=extrahtml;}
function shownewsection(){var a=$.id('sections');a.size=a.size-1;var b=$.id('newsection');b.className="";}
function autosave(){$.post('AutoSaveDraftIssue', $(document.ai).fastSerialize(),function(resp) {if(resp){$('input[name="draft_issue_id"]').val(resp);}});}
var as_timer;stopautosave=function(){if(as_timer) clearTimeout(as_timer);};
startautosave=function(){autosave();as_timer=window.setTimeout("startautosave()", 4*1000);};
function deldraft(draftid){$('p.draft-'+draftid).remove();$.post('DeleteDraftIssue', {id:draftid, return_show_drafts_simple:1}, function(resp) {$('#issuedraftsouter').html(resp);});
return false;}