//common js functions


//to confrim deletion of campaign

function ConfirmDeleteCamp(campid){
	if(confirm("Are you sure to delete this campaign and all the records associated with it?"))
	{
		document.location.href='index.php?action=campaigns&delid='+campid;	
	}
}

//to confrim deletion of templates

function ConfirmDeleteTemp(tempid){
	if(confirm("Are you sure to delete this tempalte and all the records associated with it?"))
	{
		document.location.href='index.php?action=templates&delid='+tempid;	
	}
}

//to confrim deletion of email account

function ConfirmDeleteSmtp(smtpid){
	if(confirm("Are you sure to delete this email account and all the records associated with it?"))
	{
		document.location.href='index.php?action=emailaccounts&delid='+smtpid;	
	}
}

//to confrim deletion of queque message

function ConfirmDeleteQueque(campid,redi){
	if(confirm("Clear all queued e-mails for this campaign?"))
	{
		document.location.href='clearqueque.php?campid='+campid+'&redirect='+redi;	
	}
}
