var candQuotes = new Array(8);
candQuotes[0] = '"Success is not the key to happiness. Happiness is the key to success. If you love what you are doing, you will be successful."';
candQuotes[1] = '"A successful person is one who can lay a firm foundation with the bricks that others throw at him or her."';
candQuotes[2] = '"I have learned, that if one advances confidently in the direction of his dreams, and endeavors to live the life he has imagined, he will meet with a success unexpected in common hours."';
candQuotes[3] = '"Give me a stock clerk with a goal and I\'ll give you a man who will make history. Give me a man with no goals and I\'ll give you a stock clerk."';
candQuotes[4] = '"The secret of joy in work is contained in one word - excellence. To know how to do something well is to enjoy it."';
candQuotes[5] = '"The way to succeed is to double your error rate."';
candQuotes[6] = '"A man is a success if he gets up in the morning and goes to bed at night and in between does what he wants to do."';
candQuotes[7] = '"Find a job you love and you\'ll add 5 days to every week."';

var candNames = new Array(8);
candNames[0] = "Albert Schweitzer";
candNames[1] = "David Brinkley";
candNames[2] = "Henry David Thoreau";
candNames[3] = "J.C. Penney";
candNames[4] = "Pearl S. Buck";
candNames[5] = "Thomas Watson";
candNames[6] = "Bob Dylan";
candNames[7] = "H. Jackson Brown, Jr.";

var cliQuotes = new Array(8);
cliQuotes[0] = '"Success is not the key to happiness. Happiness is the key to success. If you love what you are doing, you will be successful."';
cliQuotes[1] = '"A successful person is one who can lay a firm foundation with the bricks that others throw at him or her."';
cliQuotes[2] = '"I have learned, that if one advances confidently in the direction of his dreams, and endeavors to live the life he has imagined, he will meet with a success unexpected in common hours."';
cliQuotes[3] = '"Give me a stock clerk with a goal and I\'ll give you a man who will make history. Give me a man with no goals and I\'ll give you a stock clerk."';
cliQuotes[4] = '"The secret of joy in work is contained in one word - excellence. To know how to do something well is to enjoy it."';
cliQuotes[5] = '"The way to succeed is to double your error rate."';
cliQuotes[6] = '"A man is a success if he gets up in the morning and goes to bed at night and in between does what he wants to do."';
cliQuotes[7] = '"Find a job you love and you\'ll add 5 days to every week."';

var cliNames = new Array(8);
cliNames[0] = "Albert Schweitzer";
cliNames[1] = "David Brinkley";
cliNames[2] = "Henry David Thoreau";
cliNames[3] = "J.C. Penney";
cliNames[4] = "Pearl S. Buck";
cliNames[5] = "Thomas Watson";
cliNames[6] = "Bob Dylan";
cliNames[7] = "H. Jackson Brown, Jr.";

function getQuote(qtype){
	if (qtype == "client") {
		var range = cliQuotes.length;
		var x = Math.floor(Math.random() * range);
		document.write(cliQuotes[x]);
		document.write('<p class="quotename"> - '+cliNames[x]+'</p>');
	}
	else { //candidate
		var range= candQuotes.length;
		var x = Math.floor(Math.random() * range);
		document.write(candQuotes[x]);
		document.write('<p class="quotename"> - '+candNames[x]+'</p>');
	}
}
