// hgc.js - utility for handling quotations

/* updated Sep 29, 2006 */
/* declare random number gen variables for random() - see ORA book p468 */
var m=714025;
var a=4096;
var c=150889;
var seed = (new Date()).getTime()%m;

function random() 
/* documentation
	returns a value between 0 and 1 */
{
	seed = (seed*a + c)%m;
	var r = seed/m;
	return r;
}

function getquote(set)
{
var quoteno = 0;
var noquotes = 10;
var quote = new Array();

quote[0] = '"Quotation 1" - Author 1';
quote[1] = '"If there is intelligent life in outer space<br>possibly they play chess;<br>most certainly, they play Go."<br>Edward Lasker'
quote[2] = '"The board is a mirror of the mind of the players as the moments pass. When a master studies the record of a game he can tell at what point greed overtook the pupil, when he became tired, when he fell into stupidity, and when the maid came by with tea."<br>Anonymous'
quote[3] = '"Just one game, they said,<br> and started to play. That was yesterday."<br> Anonymous'
quote[4] = '"Just before dawn<br>Still hungry for dreams<br>My little go players?"<br> Shodo'
quote[5] = '"One of the great things about the game of Go is<br>there really isn\'t that much to memorize."<br>Janice Kim'
quote[6] = '"The most important thing to do<br> if you want to become strong<br> is to find opponents to play with."<br>Cho Chikun'
quote[7] = '"Most importantly, Go is a means of communication<br> between two people, a friendly debate, point-counterpoint."<br>Karl Baker'
quote[8] = '"He who counts, wins."<br>Anonymous'
quote[9] = '"Go uses the most elemental materials and concepts -- line and circle, wood and stone, black and white -- combining them with simple rules to generate subtle strategies and complex tactics that stagger the imagination."<br>Iwamoto Kaoru'
quote[10] = '"You\'re striving for harmony, and,<br>if you try to take too much,<br> you\'ll come to grief."<br>Michael Redmond'

/* get a random number, rn 1 to noquotes */
var rn = Math.floor(noquotes*random())+1;
// alert("rn = " + rn);

/* show random quote */
quoteno = rn;

/* return this randomly selected quote */

return (quote[quoteno]);
}



