

//Use the following variable to specify 
//the number of random words

var NoofTheme = 36

var theme = new BuildArray(NoofTheme)

//Use the following variables to 
//define your random words:

theme[1] = "deception"
theme[2] = "irony"
theme[3] = "lost love"
theme[4] = "infidelity"
theme[5] = "rejection"
theme[6] = "treachery"
theme[7] = "cheating"
theme[8] = "treason"
theme[9] = "betrayal"
theme[10] = "deception"
theme[11] = "dishonesty"
theme[12] = "denial"
theme[13] = "frustration"
theme[14] = "disappointment"
theme[15] = "divorce"
theme[16] = "revolt"
theme[17] = "separation"
theme[18] = "atheism"
theme[19] = "supernatural"
theme[20] = "cover-up"
theme[21] = "swindle"
theme[22] = "honesty"
theme[23] = "comic"
theme[24] = "greed"
theme[25] = "wealth"
theme[26] = "jealousy"
theme[27] = "religion"
theme[28] = "faith"
theme[29] = "bitterness"
theme[30] = "revenge"
theme[31] = "anger"
theme[32] = "long-lost friends"
theme[33] = "death"
theme[34] = "hope"
theme[35] = "charity"
theme[36] = "murder"

function BuildArray(size){
    this.length = size
    for (var i = 1; i <= size; i++){
        this[i] = null}
    return this
}

function PickRandomTheme(frm) {
    // Generate a random number between 1 and NoofTheme
    var rnd = Math.ceil(Math.random() * NoofTheme)

    // Display the word inside the text box
    frm.ThemeBox.value = theme[rnd]
}


