function bxEmailTest(){ var subject = bx_getElementSafe('bxEmailSubject'); var testEmail = bx_getElementSafe('bxEmailTestAddress'); if (subject.value==''){ alert('Please enter a subject!'); return; } if (confirm('Send "'+subject.value+'" to "'+testEmail.value+'"\nAre you sure?')){ var action = bx_getElementSafe('bxEmailAction'); action.value = 'test'; bx_submit(); } } function bxEmailSend(){ var subject = bx_getElementSafe('bxEmailSubject'); if (subject.value==''){ alert('Please enter a subject!'); return; } if (confirm('Send "'+subject.value+'" to ALL SUBSCRIBED USERS\nAre you sure?')){ var action = bx_getElementSafe('bxEmailAction'); action.value = 'send'; bx_submit(); } } function bxEmailCancel(){ if (confirm('This will cancel the newsletter mailout, but will not remove the page.\nAre you sure?')){ var action = bx_getElementSafe('bxEmailAction'); action.value = 'cancel'; bx_submit(); } }