
function ConfirmDelete()
{
	if (confirm("Are you sure you want to delete this record?"))
		return true;
		else
		return false;
}

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
			}
			
		}
			
		}


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 pchange(obj, myevent){

	if ( myevent == 1 ) {
		obj.style.background = '#FFFFFF';
	}
	if ( myevent == 0 ) {
		obj.style.background = '#FFFFFF';
		prevVal = obj.value;
	}
	
