rnd.today=new Date();
rnd.seed=rnd.today.getTime();

function rnd() {
        rnd.seed = (rnd.seed*9301+49297) % 233280;
        return rnd.seed/(233280.0);
};

function rand(number) {
	var result = Math.ceil(rnd()*number);
	if (!result)result++;
        return result
};

function getTest(ada,rtnType) {
	var linka;
	var adBannera;
	var widtha
	var heighta
	if (ada==1) {
	linka="http://www.thegutterbrush.com/index.php?main_page=page&id=12#test1";
	adBannera="\"The installation went off without a hitch!  We are both very pleased with the performance and even more excited about not climbing around on a ladder anymore!  Thank You!\"<br><span class=\"testRotateCredit\">Joanne Whitestone – Rockport, MA</span>";
	}
	if (ada==2) {
	linka="http://www.thegutterbrush.com/index.php?main_page=page&id=12#test2";
	adBannera="\"Your product makes so much more sense and at a fraction of the price!  I know I have made a good decision with GutterBrush and I hope to eventually lose the buyers remorse from my previous mistake.\"<br><span class=\"testRotateCredit\">Nancy Austin – Red Bank, NJ</span> ";
	}
	if (ada==3) {
	linka="http://www.thegutterbrush.com/index.php?main_page=page&id=12#test3";
	adBannera="It\'s simple design to fill the gutters, yet prevent those leaves and pine needles from entering the gutter system will extend the life of the gutters and in effect reduce the maintenance factors.\"<br><span class=\"testRotateCredit\">Bill Jarvis - Housemaster Home Inspections - Placerville, CA</span>";
	}
	if (ada==4) {
	linka="http://www.thegutterbrush.com/index.php?main_page=page&id=12#test4";
	adBannera="\"Rained all day yesterday and water is still flowing through the gutters and downspouts. Thanks for a good product at a reasonable price.\"<br><span class=\"testRotateCredit\">Mike Cooper - Murfreesboro, TN</span>";
	}
	if (ada==5) {
	linka="http://www.thegutterbrush.com/index.php?main_page=page&id=12#test5";
	adBannera="\"First of all, thank you for offering a product that has provided a value to me that surpasses the price I paid.\"<br><span class=\"testRotateCredit\">Don Householder - Minneapolis, MN</span>";
	}
	if (ada==6) {
	linka="http://www.thegutterbrush.com/index.php?main_page=page&id=12#test6";
	adBannera="\"The GutterBrush was very easy to install o­n my second story.\"<br><span class=\"testRotateCredit\">Mitch Carnie - Elk Grove, CA</span>";
	}
	if (ada==7) {
	linka="http://www.thegutterbrush.com/index.php?main_page=page&id=12#test7";
	adBannera="\"During a major storm which dropped over 3.7 inches of rain, I observed that my gutters clogged and overflowed except for the section where I had installed GutterBrush. I was so impressed that I immediately ordered a full box to finish off the rest of my gutters.\"<br><span class=\"testRotateCredit\">Ted Williams - Grantsburg, WI</span>";
	}
	if (ada==8) {
	linka="http://www.thegutterbrush.com/index.php?main_page=page&id=12#test8";
	adBannera="\"Just wanted to say that I installed The GutterBrush and have been very pleased with the results. \"<br><span class=\"testRotateCredit\">Vic Windle - Cooper City, FL</span>";
	}
	if (ada==9) {
	linka="http://www.thegutterbrush.com/index.php?main_page=page&id=12#test5";
	adBannera="\"Since I installed the brushes there has been no need to get up on the roof to clear my gutters.\"<br><span class=\"testRotateCredit\">Don Householder - Minneapolis, MN";
	}
	if (ada==10) {
	linka="http://www.thegutterbrush.com/index.php?main_page=page&id=12#test5";
	adBannera="\"I am eager to tell anyone and everyone I know who has a similar problem about the brushes.\"<br><span class=\"testRotateCredit\">Don Householder - Minneapolis, MN</span>";
	}
	if (ada==11) {
	linka="http://www.thegutterbrush.com/index.php?main_page=page&id=12#test5";
	adBannera="\"The gutterbrushes are working well, as intended. I have squirrels clip the ends of a juniper tree and previously they had fallen and blocked the gutters. They can eat  all they want now.\"<br><span class=\"testRotateCredit\">Howard - Lafayette, LA</span>";
	}

	if (rtnType == "link") {
		return linka;
	} else {
		return adBannera;
	}
}
