function cmdLogOut()
{
var Test = window.confirm("Are you Sure you want to log out?  Click OK to continue. Click Cancel to stop.");
	if (Test) {
	        window.location.href="admin_login.aspx?action=logout"                
        }  else  {
        
			//Do nothing
       }
       
}

function ConfirmDelete()
{
	return confirm("Are you Sure you want to delete this record?  Click OK to continue. Click Cancel to stop.");
}

function cmdSendTestEmail(intNewsLetterID)
{
var Test = window.confirm("Are you Sure you want to send the test E-newsletter?  Click OK to continue. Click Cancel to stop.");
	if (Test) {
	        window.location.href="admin_newsletter.aspx?action=temail&id=" + intNewsLetterID                
        }  else  {
        
			//Do nothing
       }
       
}

function cmdSendNewsletter(intNewsLetterID,strLastDate)
		{
		if (strLastDate != '0')
		{
		var Test = window.confirm("Are you Sure you want to send the E-newsletter?  This E-newsletter has already been sent.  Click OK to continue. Click Cancel to stop.");
			if (Test) {
					window.location.href="admin_newsletter.aspx?action=email&id=" + intNewsLetterID                
				               
				}  else  {
		        
					//Do nothing
			}
		} else {
		
			var Test = window.confirm("Are you Sure you want to send the E-newsletter?  Click OK to continue. Click Cancel to stop.");
			if (Test) {
					window.location.href="admin_newsletter.aspx?action=email&id=" + intNewsLetterID                
				               
				}  else  {
		        
					//Do nothing
			}
			
		}
			
		}



