<inp2:adm_SetPopupSize width="900" height="600"/>

<inp2:m_include t="incs/header"/>
<inp2:m_RenderElement name="combined_header" section="in-portal:user_list" permission_type="advanced:send_email" prefix="emailevents" title_preset="email_send"/>

<inp2:m_RenderElement name="ajax_progress_bar" cancel_action="cancel_action();"/>
<script type="text/javascript">
	function cancel_action() {
		redirect('<inp2:m_Link template="mailing_lists/send_complete"/>');
	}

	$QueueProcessor = new AjaxProgressBar('<inp2:m_t template="index" emailevents_event="OnProcessEmailQueue" type="return_progress" finish_template="mailing_lists/send_complete" pass="m,emailevents" no_amp="1"/>');
</script>

<inp2:m_include t="incs/footer"/>