function openEmailDialogue(height, width, templateId)
{
	var left = (window.screen.width - width) / 2;
	var top = (window.screen.height - height) / 2;
	var features = 'height=' + height + ',width=' + width + ",left=" + left + ",top=" + top;
	window.open('/templates/Units/templates/dtEmailpage.aspx?email_recipient='+templateId,null,features);
}

