﻿

function lyrics(buffer,scop) {
	/*
	Rock Cliche Lyrics Generator by Bobby the Bear, Copyright 2006, Version 0.6
	*/

	if (scop[0].checked) {
		snumber = 0;
	}	
	if (scop[1].checked) {
		snumber = 1;
	}
	if (scop[2].checked) {
		snumber = 2;
	}
	if (scop[3].checked) {
		snumber = 3;
	}
	if (scop[4].checked) {
		snumber = 4;
	}
	if (scop[5].checked) {
		snumber = 5;
	}
	
	subject_array = new Array("I was ","You were ","He was ","She was ","We were ","They were ");
	/* snumber = Math.floor(Math.random(1) * 6); */
	subject = subject_array[snumber];
	object_prep_array = new Array("my ","your ","his ","her ","our ","their ");
	object_prep = object_prep_array[snumber];

	verb1_array = new Array("searching for ","holding on to ","fighting for ",
                                "fighting against ","longing for ","freed of ",
                                "choosen by ","neglected by ","driven by ");
        number = Math.floor(Math.random(1) * 9);
	verb1 = verb1_array[number];

	verb2_array = new Array("agonizing in despair ","roaming needlessly ","wandering aimlessly ",
                                "searching for hope ","fighting the battle ","crying useless tears ",
                                "running without aim ","fighting side by side ","flying like eagles in the sky ",
                                "wanting to stop ","sailing the seas ","watching from afar ",
                                "standing in unity ","witnessing the horrors ","riding into the dawn ",
                                "moaning in pain ","abandoning all hope ","raising hope ",
                                "giving up hope ","dashing all hope ","acting in good faith ",
                                "acting in bad faith ");
	number = Math.floor(Math.random(1) * 22);
	verb2 = verb2_array[number];

	tim_array = new Array("Time after time, ","One more time, ","So long ago, ",
                              "One day, ","Endlessly, ","Tonight, ",
                              "Yesterday, ","Long ago, ","Again, ",
                              "Once again, ","All of a sudden ","Suddenly ");
	number = Math.floor(Math.random(1) * 12);
	tim = tim_array[number];

	tim_prep_array = new Array("before ","while ","after ",
                                   "again ","for all eternity ","without a warning ");
	number = Math.floor(Math.random(1) * 6);
	tim_prep = tim_prep_array[number];

	object_array = new Array("dreams ","desires ","destiny ",
                                 "future ","past ","nightmares ",
                                 "love ","trust ","failures ",
                                 "faith ","voice ","sorrows ",
                                 "hatred ","beliefs ","anticipations ");
	number = Math.floor(Math.random(1) * 15);
	object = object_array[number];

	loc_prep_array = new Array("from the ","to the ","at the ",
                                   "for the ","beyond the ","far beyond the ",
                                   "in front of the ","close to the ");
	number = Math.floor(Math.random(1) * 8);
	loc_prep = loc_prep_array[number];

	loc_array = new Array("oasis ","sea ","ocean ",
                              "dunes ","river ","gates ",
                              "land ", "valley ", "battle ",
                              "tower ","fight ","sky ",
                              "nation ","land ","heart ",
                              "mountain ","den ","mountains ",
                              "dragon ","angel ","world ",
                              "kingdom ","world ","empire ",
                              "seven seas ","canyon ");
	number = Math.floor(Math.random(1) * 26);
	loc = loc_array[number];

	loc_attribute_array = new Array("of despair ", "of desire ","of the sun ",
                                        "of the dragon ","of freedom ","of the morning star ",
                                        "of the evening star ","of evil ","of hell ",
                                        "of heaven ","of revelation ","of silence ",
                                        "of the silver moon ","of the starry sky ", "of power ",
                                        "of glory ","of the storm ","of peace ",
                                        "of the dragon ");
	number = Math.floor(Math.random(1) * 19);
	loc_attribute = loc_attribute_array[number];

	shout_array = new Array("Run! ","Try! ","Scream! ",
                                "We will survive! ","Black and white! ","Run for your lives! ",
                                "Can you imagine? ","Close your eyes! ","Stand and fight! ",
                                "What do I have to lose? ","What do you have to lose? ","What do we have to lose? ",
                                "One last chance! ","One more chance? ","Hold on tight! ",
                                "Never let go! ","Don't give up! ","Never surrender! ");
	number = Math.floor(Math.random(1) * 18);
	shout = shout_array[number];





	buffer = subject + verb1 + object_prep + object + '\n' + shout + '\n' + tim + verb2 + '\n' +loc_prep + loc + loc_attribute;


	return buffer;
}
	




	
		function doSubmit() {
			document.form2.english.value = lyrics(document.form2.english.value,document.form2.scop);
		}
		

		function doClear() {
			document.form2.english.value='';
		}
		
		window.onload = doSubmit;




