
var customerNames = new Array(
		"",
		"",
		"",
		""
	);

var customerPlaces = new Array(
		"MICHIGAN",
		"OHIO",
		"MICHIGAN",
		"WEST VIRGINIA"
	);

var customerStories = new Array(
		"I am very satisfied with my experience - I recommend you to my family and friends.  I am happy with my agent's service as well.  Thank you!",
		"Our house was the first one done on our street with all the repairs made. My neighbors are so envious of us.",
		"Excellent service in auto and home repairs.  Another satisfied customer.  Thank you!" ,
		"They truly made my crisis a nearly stress-free one."
	);

var customerLinks = new Array(
		"../testimonial/pg.jsp?page=westfieldreviews",
		"../testimonial/pg.jsp?page=westfieldreviews",
		"../testimonial/pg.jsp?page=westfieldreviews",
		"../testimonial/pg.jsp?page=westfieldreviews"
	);

function selectStory() {
	var storyNumber = Math.floor(Math.random() * customerNames.length);
	
	document.getElementById("customer_story_name").firstChild.nodeValue = customerNames[storyNumber];
	document.getElementById("customer_story_place").firstChild.nodeValue = customerPlaces[storyNumber];
	document.getElementById("customer_story_text").firstChild.nodeValue = customerStories[storyNumber];
	document.getElementById("customer_story_link").setAttribute("href",customerLinks[storyNumber]);

}
