function initializeSecretSantaArrs(){
        tempUserArr = [];
        optInUserArr = [];

        for (var i = 0; i < userArr.length; i++) {
            if (userArr[i].secretSantaName != null)
                if (userArr[i].secretSantaName != "")
                    secretSantaNameBool = true;
            if (userArr[i].secretSanta != null)
                if (userArr[i].secretSanta == 1) {
                    tempUserArr.push(userArr[i]);
                    optInUserArr.push(userArr[i]);
                    if (optInUserArr.length > 2)
                        secretSantaIntBool = true;
                }
        }
    }
//This function initializes the arrays needed for the Secret Santa system
This function initializes the arrays needed for the Secret Santa system
This function initializes the arrays needed for the Secret Santa system
function initializeSecretSantaArrs(){
        tempUserArr = [];
        optInUserArr = [];
        for (var i = 0; i < userArr.length; i++) {
            if (userArr[i].secretSantaName != null)
                if (userArr[i].secretSantaName != "")
                    secretSantaNameBool = true;
            if (userArr[i].secretSanta != null)
                if (userArr[i].secretSanta == 1) {
                    tempUserArr.push(userArr[i]);
                    optInUserArr.push(userArr[i]);
                    if (optInUserArr.length > 2)
                        secretSantaIntBool = true;
                }
        }
    }
function initializeSecretSantaArrs ( ) { tempUserArr = [ ] ; optInUserArr = [ ] ; for ( var i = 0 ; i < userArr . length ; i ++ ) { if ( userArr [ i ] . secretSantaName != null ) if ( userArr [ i ] . secretSantaName != "" ) secretSantaNameBool = true ; if ( userArr [ i ] . secretSanta != null ) if ( userArr [ i ] . secretSanta == 1 ) { tempUserArr . push ( userArr [ i ] ) ; optInUserArr . push ( userArr [ i ] ) ; if ( optInUserArr . length > 2 ) secretSantaIntBool = true ; } } }
This function initializes the arrays needed for the Secret Santa system
This function initializes the arrays needed for the Secret Santa system