var nmark=22
var ngroup=5
var ndesc=33
var nthingof=5
var nnoun=25
var nthingof2=8
var ngroup2=8

var mark = new BuildArray(nmark)
var group = new BuildArray(ngroup)
var desc = new BuildArray(ndesc)
var thingof = new BuildArray(nthingof)
var noun = new BuildArray(nnoun)
var group2 = new BuildArray(ngroup2)
var thingof2 = new BuildArray(nthingof2)

noun[1]="Careers"
noun[2]="Animals"
noun[3]="Women"
noun[4]="Men"
noun[5]="People"
noun[6]="Plants"
noun[7]="Environment"
noun[8]="Life"
noun[9]="Buildings "
noun[10]="Undead"
noun[11]="Puppies"
noun[12]="Kittens"
noun[13]="Farmers"
noun[14]="Engineers"
noun[15]="Crazy People"
noun[16]="Police"
noun[17]="Unemployed"
noun[18]="Disorders"
noun[19]="Unions"
noun[20]="America"
noun[21]="Drugs"
noun[22]="Asians"
noun[23]="Pirates"
noun[24]="Voters"
noun[25]="The President"

thingof[1]="Treatment"
thingof[2]="Rights"
thingof[3]="Salaries"
thingof[4]="Removal"
thingof[5]="Liberties"


thingof2[1]="Treatment"
thingof2[2]="Rights"
thingof2[3]="Salaries"
thingof2[4]="Murder"
thingof2[5]="Education"
thingof2[6]="Creation"
thingof2[7]="Liberties"
thingof2[8]="Punishment"

desc[1]="Ethical"
desc[2]="Moral"
desc[3]="Intelligent"
desc[4]="Omnipotent"
desc[5]="Evil"
desc[6]="Annoying"
desc[7]="Increased"
desc[8]="Decreased"
desc[9]="Nicer"
desc[10]="Pathetic"
desc[11]="International"
desc[12]="Globalized"
desc[13]="Rare"
desc[14]="Descreased"
desc[15]="Omniscient"
desc[16]="Just"
desc[17]="Refined"
desc[18]="Liberal"
desc[19]="Democratic"
desc[20]="Communist"
desc[21]="Socialist"
desc[22]="Dictorial"
desc[23]="Fascist"
desc[24]="Technological"
desc[25]="Communal"
desc[26]="Medical"
desc[27]="Calculated"
desc[28]="Psychic"
desc[29]="Universal"
desc[30]="Benevolent"
desc[31]="Malicious"
desc[32]="Foolish"
desc[33]="Republican"


group[1]="People"
group[2]="Group"
group[3]="Organization"
group[4]="Committee"
group[5]="Union"


group2[1]="People"
group2[2]="Group"
group2[3]="Organization"
group2[4]="Committee"
group2[5]="Union"
group2[6]="Team"
group2[7]="Army"
group2[8]="Guild"

mark[1]="American"
mark[2]="French"
mark[3]="National"
mark[4]="International"
mark[5]="Worldwide"
mark[6]="People's"
mark[7]="Worker's"
mark[8]="British"
mark[9]="German"
mark[10]="Iraqi"
mark[11]="Canadian"
mark[12]="Jewish"
mark[13]="Scholar's"
mark[14]="Gamer's"
mark[15]="Japanese"
mark[16]="Islamic"
mark[17]="Provincial"
mark[18]="Christian"
mark[19]="Canadian"
mark[20]="Texan"
mark[20]="Russian"
mark[21]="Women's"
mark[22]="Men's"

function BuildArray(size){
    this.length = size
    for (var i = 1; i <= size; i++){
        this[i] = null}
    return this
}


function organizationName(frm) {

    var rNumb = Math.ceil(Math.random() * 11)
    var rmark = Math.ceil(Math.random() * nmark)
    var rgroup = Math.ceil(Math.random() * ngroup)
    var rgroup2 = Math.ceil(Math.random() * ngroup2)
    var rdesc = Math.ceil(Math.random() * ndesc)
    var rnoun = Math.ceil(Math.random() * nnoun)
    var rthingof = Math.ceil(Math.random() * nthingof)
    var rthingof2 = Math.ceil(Math.random() * nthingof2)
    var rdesc2 = Math.ceil(Math.random() * ndesc)

if(rNumb == 1 || rNumb == 4 || rNumb == 6 || rNumb == 7 || rNumb == 3){
return mark[rmark].charAt(0)+group[rgroup].charAt(0)+desc[rdesc].charAt(0)+ thingof[rthingof].charAt(0)+noun[rnoun].charAt(0) + ":" + mark[rmark] + " " + group[rgroup] + " for " + desc[rdesc] + " " + thingof[rthingof] + " of "+ noun[rnoun];}
if(rNumb == 2 || rNumb == 5 || rNumb == 8){
return mark[rmark].charAt(0)+group2[rgroup2].charAt(0)+desc[rdesc].charAt(0)+ thingof2[rthingof2].charAt(0)+noun[rnoun].charAt(0) + ":" + mark[rmark]+ " " + group2[rgroup2] + " for " + desc[rdesc] + " " + thingof2[rthingof2] + " of "+ noun[rnoun];}
if(rNumb == 9){
return mark[rmark].charAt(0)+group2[rgroup2].charAt(0)+desc[rdesc].charAt(0)+ thingof2[rthingof2].charAt(0)+noun[rnoun].charAt(0) + ":" + mark[rmark]+ " " + group2[rgroup2] + " against " + desc[rdesc] + " " + thingof2[rthingof2] + " of "+ noun[rnoun];}
if(rNumb == 10){
return mark[rmark].charAt(0)+desc[rdesc].charAt(0)+group2[rgroup2].charAt(0)+ thingof2[rthingof2].charAt(0)+noun[rnoun].charAt(0) + ":" + mark[rmark]+ " " + desc[rdesc] + " " + group2[rgroup2] + " for " + thingof2[rthingof2] + " of "+ noun[rnoun];}
if(rNumb == 11){
return mark[rmark].charAt(0)+group2[rgroup2].charAt(0)+ thingof2[rthingof2].charAt(0)+desc[rdesc].charAt(0)+noun[rnoun].charAt(0) + ":" + mark[rmark]+ " " + group2[rgroup2] + " for " + thingof2[rthingof2] + " of "+ desc[rdesc] + " " + noun[rnoun];}


}
