function popup(winFile,winHeight,winWidth) {
	newWin = window.open(winFile, 'ElainesToffee', 'height=' + winHeight + ',width=' + winWidth + ',scrollbars=yes');
	newWin.focus();
}

function reqFieldsPopulated()
{
	for(i=0; i<arguments.length; i++)
	{
		if(arguments[i].value == null || arguments[i].value == "")
		{	
			return false;
		}
	}
	return true;
}

function random_quote()
{
var quote = new Array()
quote[1]="This toffee is really marvelous!"
quote[2]="Top notch toffee!"
quote[3]="The toffee is buttery, sweet, and perfectly crunchy.  There's no need to get a hammer."
quote[4]="It will be amazing if one piece of this toffee gets into a gift basket.  I already ate two Toffee Bars!  It tasted even better than I remember at the gourmet show."
quote[5]="If you were to go into the kitchen and make the best toffee you could ever imagine making, that's what Elaine's Toffee is doing."
quote[6]="...MORSELS OF HEAVENLY DELIGHT!"

var custName = new Array()
custName[1]="-Narsai David<br>KCBS Food News<br>San Francisco"
custName[2]="-Chicago Tribune, January 2006"
custName[3]="-Sacramento Bee, November 2005"
custName[4]="-Josephine, Baskets Bellisimo"
custName[5]="-Narsai David<br>KCBS Food News<br>San Francisco"
custName[6]="-H. Johnson"

var randomNum = Math.floor(Math.random()*quote.length)
if (randomNum == 0) randomNum=1

var output = "<font class=\"quotes\">"
	output += quote[randomNum]
	output += "</font><br><br><br><font class=\"quotes_small\">"
	output += custName[randomNum]
	output += "</font>"

document.write(output)
}
