var testimonialIndex = 0;
var testimonials = new Array(
	'"There are just some things you can never really thank someone for. You have given me the one thing that far and away tops the list-life itself. What a truly charitable, loving and heroic thing you were able to do. Thank you."<br /><br /><b>Gary Weiler, Transplant Recipient</b>',
	'"I want to thank LifeNet Health for all the wonderful support you\'ve given me since David\'s death. The folks at LifeNet Health let me talk, cry or whatever I need to do. The support, love and compassion I feel every time I get a letter, package or call from LifeNet Health is incredible."<br /><br /><b>Jane Fleuret, Donor Wife</b>',
	'"Thanks to my donor family, I can now enjoy visiting our seven children and thirteen grandchildren in Virginia, North Carolina, Missouri and South Carolina."<br /><br /><b>Winnie Bischof, Transplant Recipient</b>',
	'"Whenever I go to the mailbox and see something from LifeNet Health, I embrace it in my arms and hold it near my heart. It\'s a material connection to my son. Thank you so much for all that you do for us."<br /><br /><b>Rozell Wright, Donor Mother</b>'
	);

function setTestimonials (parent) {
	var appended = 0;
	var num2Append = 2;
	var nodes = parent.childNodes;
	
	// clean out old stuff
	for (var i = nodes.length-1; i >= 0; i--) {
		parent.removeChild(nodes[i]);
	}
	
	// drop in new stuff
	while (appended < num2Append) {
		var newNode = document.createElement("DIV");
		newNode.innerHTML = testimonials[testimonialIndex++];
		newNode.className = "testimonial";
		parent.appendChild(newNode);
		
		appended++;
		if (testimonialIndex == testimonials.length) {
			testimonialIndex = 0;
		}
	}
}

function changeListener (form) {
	var otherForm = document.forms['thanks2u'];
	var objRadio = form.elements['style'];
	
	if(objRadio.length == undefined) {
		if(objRadio.checked) {
			return objRadio.value;
		} else {
			return;
		}
	}
	
	for(var i = 0; i < objRadio.length; i++) {
		if(objRadio[i].checked) {
			otherForm.elements['message'].value = objRadio[i].value;
			return;
		}
	}
}