er = new Array("What happened to a track where I could just a render", "Leonard Nimoy getting after Koochie Ryder contender", "Leonard met her didn't sweat her", "The best gets even better", "And so he met her", "Hold on so they held it up higher", "Aspire, Inspire Koochie Ryder", "From Peckham Ryer Devotion and Desire", "Natural factors like Anita Baker's rapture", "Leonard Nimoy uh uh William Shatner", "Sent you salivate spacial I got ya", "Burning quarter, break through the border", "Making that water, I'm sure I'll take you outta", "Teach me, I tutor, I father, the future", "As the world turns, so my rhymes flow like water", "And PA order", "Make it clear so you're all aware", "Bring it all together", "Gotta be aware to prick up that third ear");
dt = new Array("Now you know where it's headed", "Felt it like velvet, melted and welded", "Let go she couldn't help it", "Smoothes, soothes and chooses like cupid", "Come in tablet, powder form or liquid", "Kisses turn to alcohol just like Holsten stout", "Lab tested, invested and God blessed it", "Highly recommended, refined and requested", "Make me feel like a real man should", "Make me feel real good, all over if you could", "Make me real, make me manifest", "I don't eat food, I got food for thought", "Check out what I'm doing, not what I did", "The most, check it out", "Yo check it out, check it out", "Sounds complicated, I'm bound to illustrate it", "Punk jumped the wagon but driver can't steer it", "Peace out");
ss = new Array("Big Picture I want the most but don't push", "Sally ride your horse don't beat around George Bush", "I'm inclined to rap and rhyme of all the things it does", "Yo Justin sing of a love that loves", "And another round goes to love", "S-A-F-E-L-O-V-E-S-T-O-P-A-I-D-S", "Make me a man of strength and tenderness", "Wherever there's chaos, I'm boss", "I am that I am, so I am so conference", "The most in-a-predjudice but a preference", "The sky ain't the limit 'cos I hit the stars", "So pluck up that third ear, baby, yo bust this");
nn = new Array("Stepping into the wings, sing",	"With the South North hell, we're sure to be breathing", "To the morning, keeping a the crowd performing", "New, something up with Aks and Justin", "I thinking of gathering wing, in", "The vibes trickled in", "They danced a little then", "Sip it like a potion, rub it on like lotion", "Make it happen", "Cocaine and vein, and same and main", "Make it happen", "Second time around, I reckon I'm down", "My verse is profound, get thirst you might drown");
ee = new Array("A Freaky Reality novelty", "Love is like a cure, remedy, melody for all maladies", "Low in calories and easy on your salary", "Free money back guarantee eternity warranty", "Wherever you see he's P-E-A-C-E he's taking it easy", "Make it happen baby", "Even on Pluto you can't reach me if you beat me", "Master of my destiny, life can't get the best of me", "Got a new name for bad boy Leonard Nimoy", "Leonard Nimoy new name for bad boy");

var x, y;
var raps = new Array();

x = y = Math.round(Math.random()*(er.length-1));
while (x == y) y = Math.round(Math.random()*(er.length-1));
raps[raps.length] = er[x];
raps[raps.length] = er[y];

x = y = Math.round(Math.random()*(dt.length-1));
while (x == y) y = Math.round(Math.random()*(dt.length-1));
raps[raps.length] = dt[x];
raps[raps.length] = dt[y];
	
x = y = Math.round(Math.random()*(ss.length-1));
while (x == y) y = Math.round(Math.random()*(ss.length-1));
raps[raps.length] = ss[x];
raps[raps.length] = ss[y];
	
x = y = Math.round(Math.random()*(nn.length-1));
while(x == y) y = Math.round(Math.random()*(nn.length-1));
raps[raps.length] = nn[x];
raps[raps.length] = nn[y];
	
x = y = Math.round(Math.random()*(ee.length-1));
while(x == y) y = Math.round(Math.random()*(ee.length-1));
raps[raps.length] = ee[x];
raps[raps.length] = ee[y];

function GetRapHTML()
{
	var rapHTML = "";
	for (var rap = 0; rap < raps.length; rap++)
	{
		rapHTML += raps[rap] + "<br>";
	}
	return rapHTML;
}

function ValidateEmail()
{
	if ((document.email.address.value == "") || (document.email.address.value == document.email.address.defaultValue))
	{
		alert("Please enter your friend's e-mail address in the space provided.");
		return false;
	}
	
	// set hidden field to rap text
	var rapText = "";
	for (var rap = 0; rap < raps.length; rap++)
	{
		rapText += raps[rap] + "\n";
	}
	document.email.rap.value = rapText;
	
	return true;
}
