// JavaScript Document

function toggleActiveState(email_id)
{

	// refresh the page by open it
	// secure way to make sure that the command was succefull
	window.open("email_management.php?toggle_email_id_active=" + email_id ,"_self");
}

function deleteEmail(email_id)
{

	if (confirm("Are you sure you want to delete this email")) {
	// refresh the page by open it
	// secure way to make sure that the command was succefull
	window.open("email_management.php?delete_email=" + email_id ,"_self");
	}
}

function print_table(table)
{
	// secure way to make sure that the command was succefull
	window.open("../common/print_table.php?table=" + table ,"_blank");

}