function validateMonitor() {
        var email  = document.getElementById( 'monitor-email' );
        var sms    = document.getElementById( 'monitor-sms' );
        var emaila = document.getElementById( 'email-from-account' );
        var emailp = document.getElementById( 'email-from-passwd' );
        if ( email.value == "" && sms.value == "" ) {
            return true;
        } else if ( emaila.value != "" && emailp.value != "" ) {
            return true;
        } else {
            alert( "Error: To configured an Email or SMS address requires\n "
                    + "that you also configre an Email Account and Password." );
            return false;
        }
    }
// False return if email acct info needed.

False return if email acct info needed.
False return if email acct info needed .
function validateMonitor() {
        var email  = document.getElementById( 'monitor-email' );
        var sms    = document.getElementById( 'monitor-sms' );
        var emaila = document.getElementById( 'email-from-account' );
        var emailp = document.getElementById( 'email-from-passwd' );
        if ( email.value == "" && sms.value == "" ) {
            return true;
        } else if ( emaila.value != "" && emailp.value != "" ) {
            return true;
        } else {
            alert( "Error: To configured an Email or SMS address requires\n "
                    + "that you also configre an Email Account and Password." );
            return false;
        }
    }
function validateMonitor ( ) { var email = document . getElementById ( 'monitor-email' ) ; var sms = document . getElementById ( 'monitor-sms' ) ; var emaila = document . getElementById ( 'email-from-account' ) ; var emailp = document . getElementById ( 'email-from-passwd' ) ; if ( email . value == "" && sms . value == "" ) { return true ; } else if ( emaila . value != "" && emailp . value != "" ) { return true ; } else { alert ( "Error: To configured an Email or SMS address requires\n " + "that you also configre an Email Account and Password." ) ; return false ; } }
False return if email acct info needed.
False return if email acct info needed .