/************************************************
*                                               *
*	For use with riverbanks.org                 *
*                                               *
*	written by Michael Rathmann                 *
*	(c)RathmannDesign.com. All rights reserved. *
*                                               *
************************************************/

//	Form Generator
if (is_nav6up || is_ie5up) {
	dynaCode = ' ID="textbox" onFocus="formFocus(this)" onBlur="formBlur(this)"';
	bigField = 'width:400px; height:20px'; midField = 'width:172px; height:20px'; smlField = 'width:36px; height:20px';
	sml2Field = 'width:82px; height:20px'; amtField = 'width:60px; height:20px'; areaField = 'width:100%; height:80px';

	if (curTime >= 201111080000) {
	document.writeln('<DIV STYLE="padding:0px 5px 15px 5px"><STRONG>SORRY! THIS ORDER FORM IS NO LONGER AVAILABLE.</STRONG><BR>Thank you for your interest in purchasing through our Bulb Sale Order Form. Please come back next year when we reopen.</DIV>');

	} else {
	document.writeln('<DIV STYLE="padding:0px 5px 15px 5px"><strong>ORDERS WILL BE ACCEPTED THROUGH NOVEMBER 7, 2011.</strong></DIV>'
	+ '<FORM NAME="form" ACTION="/cgi-bin/forms/bulbsale.pl" TARGET="submission" METHOD="post" onSubmit="return validateForm(this)">'
	+ '<INPUT TYPE="hidden" NAME="sectLevel" VALUE="1">'
	+ '<INPUT TYPE="hidden" NAME="action" VALUE="0">');

	document.writeln('<TABLE ID="sect1" STYLE="width:760px; display:block" CELLSPACING="0" CELLPADDING="5" BORDER="0">'
	+ '<TR BGCOLOR="#f8e7c4"><TD CLASS="subheader">* required fields</TD></TR>');

	document.writeln('<TR BGCOLOR="#e2cfa6"><TD CLASS="header">Order Options: <SPAN STYLE="font-size:11px; font-weight:normal">(NOTE: You may click on the bulb\'s name to see an image and description.)</SPAN></TD></TR>'
	+ '<TR><TD CLASS="listEntry" STYLE="padding:1px"><IMG SRC="../../assets/graphics/clearpixel.gif" WIDTH="1" HEIGHT="1" ALT=""></TD></TR>');

	var bulbType = ['DAFFODILS','PERENNIAL TULIPS','TULIPS','MISCELLANEOUS BULBS','CRINUMS']; //'TULIP COMBOS',
	var bulbEntries = [6,3,4,11,3]; var k = 0; //2,
	var bulbInfo = ['','','','','',''];
	bulbInfo[0] = 'Check out this year\'s selection of daffodils! These are some of our favorites and great choices for the Southern climate.';
	bulbInfo[1] = 'Perennial tulips? Yes, it\'s true! These varieties will bring joy to your garden for years to come.';
//	bulbInfo[2] = 'For the first time, we are offering mixes of tulips. Each combo is designed so the bulbs in each will bloom at the same time, providing an amazing splash of color to your display.';
	bulbInfo[2] = 'Even though most tulips are considered annuals in the South, they are a sure sign that spring is on the way. These varieties are guaranteed to brighten up your garden.';
	bulbInfo[3] = 'A choice selection of some of our favorites at Riverbanks.';
	bulbInfo[4] = 'An old-time treasure in the Southern garden. One of the most durable and reliable bulbs you\'ll ever find. Crinums are limited. Order early!';
	for (var i=0; i<=4; i+=1) {
		document.writeln('<TR BGCOLOR="#f8e7c4"><TD CLASS="subheader">'+bulbType[i]+'</TD></TR>'
		+ '<TR><TD CLASS="listEntry" STYLE="padding:2px 2px 10px 2px"><DIV STYLE="padding:3px">'+bulbInfo[i]+'</DIV>'
			+ '<DIV ID="photoDisplay'+i+'" STYLE="display:none; z-index:4; position:absolute; margin-top:-50px" ALIGN="center">'
				+ '<DIV STYLE="width:760px; height:550px; background-image:url(assets/graphics/bulbsale/overlay.png); background-repeat:no-repeat; padding-top:44px">'
				+ '<TABLE STYLE="width:299px" CELLPADDING="0" CELLSPACING="0" BORDER="0">'
				+ '<TR><TD ALIGN="center"><IFRAME NAME="photoFrame'+i+'" WIDTH="299" HEIGHT="350" SCROLLING="no" FRAMEBORDER="0" STYLE="background-color: black"></IFRAME></TD></TR>'
				+ '<TR><TD CLASS="header" STYLE="font-size:11px; background-color:#ff9933; padding:5px" ALIGN="center"><A HREF="javascript:openTable(\'photoDisplay'+i+'\');photoFrame'+i+'.location.replace(\'../events/blank.htm\')">CLOSE PHOTO</A></TD></TR>'
				+ '</TABLE></DIV></DIV>'
			+ '<TABLE STYLE="display:block; margin-top:4px" CELLSPACING="0" CELLPADDING="3" BORDER="0">'
			+ '<TR><TD STYLE="font-size:9pt; font-weight:bold; text-decoration:underline; border-right:1px solid #f8e7c4" COLSPAN="2">QUANTITY OF BAGS PER ITEM</TD>'
				+ '<TD STYLE="font-size:9pt; font-weight:bold; text-decoration:underline; border-right:1px solid #f8e7c4" ALIGN="center"># BULBS/BAG</TD>'
				+ '<TD STYLE="font-size:9pt; font-weight:bold; text-decoration:underline; border-right:1px solid #f8e7c4" ALIGN="center">PRICE/BAG</TD></TR>');
	
		if (i == 0) {
			var itemName = ['<EM>Narcissus</EM> \'Ice Follies\'',
				'<EM>Narcissus</EM> \'Tahiti\'',
				'<EM>Narcissus</EM> \'Itzim\'',
				'<EM>Narcissus</EM> \'Pink Charm\'',
				'<EM>Narcissus</EM> \'Actaea\'',
				'<EM>Narcissus</EM> \'Spellbinder\''];
			var itemSold  = [0,0,0,0,0,0];
			var itemBulbs = [10,10,10,10,10,10];
			var itemPrice = [5,5,5,6,5,6];
			var itemPhoto = [1,1,1,1,1,1];
		} if (i == 1) {
			var itemName = ['<EM>Tulipa</EM> \'Lady Jane\'',
				'<EM>Tulipa</EM> \'Tinka\'',
				'<EM>Tulipa clusiana var chrysantha</EM> \'Tubergen\'s Gem\''];
			var itemSold  = [0,0,0];
			var itemBulbs = [20,20,20];
			var itemPrice = [7,5,5];
			var itemPhoto = [1,1,1];
		}/* if (i == 2) {
			var itemName = ['<EM>Tulipa</EM> \'Big Smile\' &amp; \'Maureen\'',
				'<EM>Tulipa</EM> \'Kingsblood\' &amp; \'Big Smile\''];
			var itemSold  = [0,0];
			var itemBulbs = [50,50];
			var itemPrice = [20,20];
			var itemPhoto = [1,1];
		}*/ if (i == 2) {
			var itemName = ['<EM>Tulipa</EM> \'Monsella\'',
				'<EM>Tulipa</EM> \'Antoinette\'',
				'<EM>Tulipa</EM> \'Angelique\'',
				'<EM>Tulipa</EM> \'Ad Rem\''];
			var itemSold  = [0,0,0,0];
			var itemBulbs = [10,10,10,10];
			var itemPrice = [5,5,5,5];
			var itemPhoto = [1,1,1,1];
		} if (i == 3) {
			var itemName = ['<EM>Iris</EM> \'Purple Moon\'',
				'<EM>Iris</EM> \'Symphony\'',
				'<EM>Allium schubertii</EM>',
				'<EM>Allium hollandicum</EM> \'Purple Sensation\'',
				'<EM>Allium</EM> \'Ambassador\'',
				'<EM>Hyacinthus orientalis</EM> \'Carnegie\'',
				'<EM>Hyacinthus orientalis</EM> \'Blue Jacket\'',
				'<EM>Dracunculus vulgaris</EM>',
				'<EM>Crocus vernus</EM> \'Flower Record\'',
				'<EM>Leucojum aestivum</EM>',
				'<EM>Triteleia laxa</EM> \'Queen Fabiola\''];
			var itemSold  = [0,0,0,0,0,0,0,0,0,0,0];
			var itemBulbs = [10,10,3,5,3,10,10,1,20,5,20];
			var itemPrice = [5,5,5,4,12,6,6,4,4,4,4];
			var itemPhoto = [1,1,1,1,1,1,1,1,1,1,1];
		} if (i == 4) {
			var itemName = ['<EM>Crinum</EM> \'Walter Flory\'',
				'<EM>Crinum</EM> \'Sangria\'',
				'<EM>xAmarcrinum memoria-corsii</EM>'];
			var itemSold  = [0,0,0];
			var itemBulbs = [1,1,1];
			var itemPrice = [20,20,8];
			var itemPhoto = [1,1,1];
		}

		for (var j=0; j<bulbEntries[i]; j+=1) {
			if (k<=9) { numCode = "0"+(k); } else { numCode = (k); }
			url = "javascript:openTable('photoDisplay"+i+"'); photoFrame"+i+".location.replace('https://www.riverbanks.org/cgi-bin/content/popups-bulbsale.pl?item="+(k)+"')";
			orderCode = itemName[j]+"|"+itemPrice[j];
			if (itemSold[j]) {
				document.writeln('<TR><TD><INPUT TYPE="text" NAME="qty'+numCode+'" VALUE="SOLD OUT" STYLE="'+amtField+'; font-size:6pt; font-weight:bold; padding:4px 2px 4px 3px" MAXLENGTH="3"'+dynaCode+' DISABLED></TD>');
			} else {
				document.writeln('<TR><TD><INPUT TYPE="text" NAME="qty'+numCode+'" STYLE="'+amtField+'" MAXLENGTH="3"'+dynaCode+'></TD>');
			}

			if (itemPhoto[j]) {
				document.writeln('<TD STYLE="width:300px; font-size:9pt; border-right:1px solid #f8e7c4" NOWRAP><A HREF="'+url+'">'+itemName[j]+'</A></TD>');
			} else {
				document.writeln('<TD STYLE="width:300px; font-size:9pt; font-weight:bold; border-right:1px solid #f8e7c4" NOWRAP>'+itemName[j]+'</TD>');
			}

			document.writeln('<TD STYLE="font-size:9pt; border-right:1px solid #f8e7c4" ALIGN="center" NOWRAP>'+itemBulbs[j]+'</TD>');
			document.writeln('<TD STYLE="font-size:9pt; border-right:1px solid #f8e7c4" ALIGN="center" NOWRAP>$'+itemPrice[j]+'.00</TD></TR>');

			k+=1;
		}

		document.writeln('</TABLE></TD></TR>');
	}

	document.writeln('<TR><TD CLASS="listEntry" STYLE="padding:2px 2px 10px 2px"><TABLE STYLE="margin-top:4px" CELLSPACING="0" CELLPADDING="3" BORDER="0">'
		+ '<TR><TD><STRONG>*MAY WE SUBSTITUTE SIMILAR BULBS IF NECESSARY?</STRONG></TD>'
			+ '<TD STYLE="padding:0px 0xp 0px 3px"><INPUT TYPE="radio" NAME="orderSubstitute" VALUE="yes"></TD>'
			+ '<TD STYLE="font-size:9pt">Yes</TD>'
			+ '<TD STYLE="padding:0px 0xp 0px 14px"><INPUT TYPE="radio" NAME="orderSubstitute" VALUE="no"></TD>'
			+ '<TD STYLE="font-size:9pt">No</TD></TR>'
		+ '</TABLE><TABLE STYLE="margin-top:8px" CELLSPACING="0" CELLPADDING="3" BORDER="0">'
		+ '<TR><TD><STRONG>*HAVE YOU ORDERED FROM US BEFORE?</STRONG></TD>'
			+ '<TD STYLE="padding:0px 0xp 0px 3px"><INPUT TYPE="radio" NAME="orderPrior" VALUE="yes"></TD>'
			+ '<TD STYLE="font-size:9pt">Yes</TD>'
			+ '<TD STYLE="padding:0px 0xp 0px 14px"><INPUT TYPE="radio" NAME="orderPrior" VALUE="no"></TD>'
			+ '<TD STYLE="font-size:9pt">No</TD></TR>'
		+ '</TABLE><TABLE STYLE="margin-top:8px" CELLSPACING="0" CELLPADDING="3" BORDER="0">'
		+ '<TR><TD><STRONG>*PICK-UP ORDER OR HAVE IT SHIPPED?</STRONG></TD>'
			+ '<TD STYLE="padding:0px 0xp 0px 3px"><INPUT TYPE="radio" NAME="orderMethod" VALUE="pick-up1"></TD>'
			+ '<TD STYLE="font-size:9pt">11/19, 9:00am-12:00pm Pick-up</TD>'
			+ '<TD STYLE="padding:0px 0xp 0px 14px"><INPUT TYPE="radio" NAME="orderMethod" VALUE="pick-up2"></TD>'
			+ '<TD STYLE="font-size:9pt">11/22, 9:00am-5:00pm Pick-up</TD></TR>'
		+ '<TR><TD STYLE="padding-top:0px; font-size:9pt">&nbsp;&nbsp;(**Shipping $5 Minimum or 15% of order)</TD>'
			+ '<TD STYLE="padding:0px 0xp 0px 14px"><INPUT TYPE="radio" NAME="orderMethod" VALUE="pick-up3"></TD>'
			+ '<TD STYLE="font-size:9pt">11/25, 9:00am-5:00pm Pick-up</TD>'
			+ '<TD STYLE="padding:0px 0xp 0px 14px"><INPUT TYPE="radio" NAME="orderMethod" VALUE="shipped"></TD>'
			+ '<TD STYLE="font-size:9pt">Shipped**</TD></TR>'
	+ '</TABLE></TD></TR>');

	document.writeln('<TR BGCOLOR="#e2cfa6"><TD CLASS="header">Purchaser\'s Information:</TD></TR>'
	+ '<TR><TD CLASS="listEntry" STYLE="padding:2px 2px 10px 2px"><TABLE STYLE="width:100%" CELLSPACING="0" CELLPADDING="3" BORDER="0">'
		+ '<TR><TD><STRONG>*NAME:</STRONG></TD>'
			+ '<TD ALIGN="right"><INPUT TYPE="text" NAME="contactName" STYLE="'+bigField+'"'+dynaCode+'></TD></TR>'
		+ '<TR><TD><STRONG>*EMAIL ADDRESS:</STRONG></TD>'
			+ '<TD ALIGN="right"><INPUT TYPE="text" NAME="contactEmail" STYLE="'+bigField+'"'+dynaCode+'></TD></TR>'
		+ '<TR><TD><STRONG>*SHIPPING ADDRESS:</STRONG></TD>'
			+ '<TD ALIGN="right"><INPUT TYPE="text" NAME="contactAddress" STYLE="'+bigField+'"'+dynaCode+'></TD></TR>'
		+ '<TR><TD><STRONG>*CITY/STATE/ZIP:</STRONG></TD>'
			+ '<TD ALIGN="right"><TABLE STYLE="'+bigField+'" CELLSPACING="0" CELLPADDING="0" BORDER="0">'
			+ '<TR><TD><TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0">'
				+ '<TR><TD><INPUT TYPE="text" NAME="contactCity" STYLE="'+midField+'"'+dynaCode+'></TD>'
					+ '<TD STYLE="width:10px; font-size:9pt" ALIGN="center">/</TD>'
					+ '<TD><INPUT TYPE="text" NAME="contactState" STYLE="'+smlField+'" MAXLENGTH="12"'+dynaCode+'></TD>'
					+ '<TD STYLE="width:10px; font-size:9pt" ALIGN="center">/</TD>'
					+ '<TD><INPUT TYPE="text" NAME="contactZip" STYLE="'+midField+'"'+dynaCode+'></TD></TR>'
				+ '</TABLE></TD></TR>'
			+ '</TABLE></TD></TR>'
		+ '<TR><TD><STRONG>*DAYTIME PHONE NUMBER:</STRONG></TD>'
			+ '<TD ALIGN="right"><TABLE STYLE="'+bigField+'" CELLSPACING="0" CELLPADDING="0" BORDER="0">'
			+ '<TR><TD><TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0">'
				+ '<TR><TD><INPUT TYPE="text" NAME="contactPhone" STYLE="'+midField+'" MAXLENGTH="12"'+dynaCode+'></TD>'
					+ '<TD STYLE="padding-left:5px; font-size:8pt">(###-###-####)</TD>'
					+ '<TD STYLE="padding-left:15px; font-weight:bold">EXT:<TD>'
					+ '<TD STYLE="padding-left:5px"><INPUT TYPE="text" NAME="contactPhoneExt" STYLE="'+smlField+'" MAXLENGTH="4"'+dynaCode+'><TD></TR>'
				+ '</TABLE></TD></TR>'
			+ '</TABLE></TD></TR>'
		+ '</TABLE></TD></TR>');

	document.writeln('<TR BGCOLOR="#e2cfa6"><TD CLASS="header">Method of Payment Information:</TD></TR>'
	+ '<TR><TD CLASS="listEntry" STYLE="padding:1px"><IMG SRC="../../assets/graphics/clearpixel.gif" WIDTH="1" HEIGHT="1" ALT=""></TD></TR>'
	+ '<TR BGCOLOR="#f8e7c4"><TD STYLE="padding:0px"><TABLE CELLSPACING="0" CELLPADDING="0" BORDER="0">'
		+ '<TR><TD STYLE="padding:3px 0px 3px 0px"><INPUT TYPE="radio" NAME="paymentMethod" VALUE="check"></TD>'
			+ '<TD><STRONG>Check</STRONG> -- You will be provided with a printable form.</TD></TR>'
		+ '</TABLE></TD></TR>'
	+ '<TR><TD CLASS="listEntry" STYLE="padding:1px"><IMG SRC="../../assets/graphics/clearpixel.gif" WIDTH="1" HEIGHT="1" ALT=""></TD></TR>'
	+ '<TR BGCOLOR="#f8e7c4"><TD STYLE="padding:0px"><TABLE CELLSPACING="0" CELLPADDING="0" BORDER="0">'
		+ '<TR><TD STYLE="padding:3px 0px 3px 0px"><INPUT TYPE="radio" NAME="paymentMethod" VALUE="credit"></TD>'
			+ '<TD><STRONG>Credit Card</STRONG> -- The following information is required for credit card payment:</TD></TR>'
		+ '</TABLE></TD></TR>'
	+ '<TR><TD CLASS="listEntry" STYLE="padding:2px 2px 10px 2px"><TABLE STYLE="width:100%" CELLSPACING="0" CELLPADDING="3" BORDER="0">'
		+ '<TR><TD><STRONG>*TYPE OF SUBMISSION:</STRONG></TD>'
			+ '<TD ALIGN="right"><TABLE STYLE="'+bigField+'" CELLSPACING="0" CELLPADDING="0" BORDER="0">'
			+ '<TR><TD><TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0">'
				+ '<TR><TD><INPUT TYPE="radio" NAME="cardSubmission" VALUE="print" onClick="paymentMethod[1].checked=true"></TD>'
					+ '<TD STYLE="font-size:9pt" ALIGN="center">Print and mail in</TD>'
					+ '<TD STYLE="padding-left:14px"><INPUT TYPE="radio" NAME="cardSubmission" VALUE="submit" onClick="paymentMethod[1].checked=true"></TD>'
					+ '<TD STYLE="font-size:9pt">Submit electronically</TD></TR>'
				+ '</TABLE></TD></TR>'
			+ '</TABLE></TD></TR>'
		+ '<TR><TD><STRONG>*TYPE OF CARD:</STRONG></TD>'
			+ '<TD ALIGN="right"><TABLE STYLE="'+bigField+'" CELLSPACING="0" CELLPADDING="0" BORDER="0">'
			+ '<TR><TD><TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0">'
				+ '<TR><TD><INPUT TYPE="radio" NAME="cardType" VALUE="Mastercard" onClick="paymentMethod[1].checked=true"></TD>'
					+ '<TD STYLE="font-size:9pt" ALIGN="center">MC</TD>'
					+ '<TD STYLE="padding-left:20px"><INPUT TYPE="radio" NAME="cardType" VALUE="VISA" onClick="paymentMethod[1].checked=true"></TD>'
					+ '<TD STYLE="font-size:9pt">VISA</TD>'
					+ '<TD STYLE="padding-left:20px"><INPUT TYPE="radio" NAME="cardType" VALUE="American Express" onClick="paymentMethod[1].checked=true"></TD>'
					+ '<TD STYLE="font-size:9pt">AMEX</TD>'
					+ '<TD STYLE="padding-left:20px"><INPUT TYPE="radio" NAME="cardType" VALUE="Discover" onClick="paymentMethod[1].checked=true"></TD>'
					+ '<TD STYLE="font-size:9pt">Discover</TD></TR>'
				+ '</TABLE></TD></TR>'
			+ '</TABLE></TD></TR>'
		+ '<TR><TD><STRONG>*NAME ON CARD:</STRONG></TD>'
			+ '<TD ALIGN="right"><INPUT TYPE="text" NAME="cardName" STYLE="'+bigField+'"'+dynaCode+'></TD></TR>'
		+ '<TR><TD><STRONG>*ACCOUNT NUMBER:</STRONG></TD>'
			+ '<TD ALIGN="right"><INPUT TYPE="text" NAME="cardNumber" STYLE="'+bigField+'"'+dynaCode+'></TD></TR>'
		+ '<TR><TD><STRONG>*SECURITY CODE:</STRONG></TD>'
			+ '<TD ALIGN="right"><TABLE STYLE="'+bigField+'" CELLSPACING="0" CELLPADDING="0" BORDER="0">'
			+ '<TR><TD><TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0">'
				+ '<TR><TD><INPUT TYPE="text" NAME="cardId" STYLE="'+sml2Field+'" MAXLENGTH="3"'+dynaCode+'></TD>'
					+ '<TD STYLE="padding-left:5px; font-size:8pt">[ <A HREF="/forms/popup/cid.htm" onClick="mediaWindow(560,490)" TARGET="media">help me find it</A> ]</TD></TR>'
				+ '</TABLE></TD></TR>'
			+ '</TABLE></TD></TR>'
		+ '<TR><TD><STRONG>*EXPIRATION DATE:</STRONG></TD>'
			+ '<TD ALIGN="right"><TABLE STYLE="'+bigField+'" CELLSPACING="0" CELLPADDING="0" BORDER="0">'
			+ '<TR><TD><TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0">'
				+ '<TR><TD><INPUT TYPE="text" NAME="cardExpiration" STYLE="'+sml2Field+'" MAXLENGTH="5"'+dynaCode+'></TD>'
					+ '<TD STYLE="padding-left:5px; font-size:8pt">(mm/yy)</TD></TR>'
				+ '</TABLE></TD></TR>'
			+ '</TABLE></TD></TR>'
		+ '</TABLE></TD></TR>');
	document.writeln('</TABLE>');

	document.writeln('<TABLE ID="sect2_1" STYLE="width:760px;display:none" CELLSPACING="0" CELLPADDING="5" BORDER="0">'
	+ '<TR BGCOLOR="#e2cfa6"><TD CLASS="header" ALIGN="center">Please verify that the information below is correct and then click \'Submit Order\':</TD></TR>'
	+ '<TR><TD CLASS="listEntry" ALIGN="center">By submitting this order online, you are hereby authorizing that Riverbanks Zoo and Garden<BR>may charge the grand total amount of this order to the credit card indicated below.</TD></TR>'
	+ '<TR><TD STYLE="padding:0px"><IMG SRC="../assets/graphics/clearpixel.gif" WIDTH="760" HEIGHT="1" ALT=""></TD></TR>');
	document.writeln('</TABLE>');

	document.writeln('<TABLE ID="sect2_2" STYLE="width:760px;display:none" CELLSPACING="0" CELLPADDING="5" BORDER="0">'
	+ '<TR BGCOLOR="#e2cfa6"><TD CLASS="header" ALIGN="center">Please verify that the information below is correct and then click \'Print Order\':</TD></TR>'
	+ '<TR><TD STYLE="padding:0px"><IMG SRC="../assets/graphics/clearpixel.gif" WIDTH="760" HEIGHT="1" ALT=""></TD></TR>');
	document.writeln('</TABLE>');

	document.writeln('<TABLE ID="sect3" STYLE="width:760px;display:none" CELLSPACING="0" CELLPADDING="5" BORDER="0">'
	+ '<TR BGCOLOR="#e2cfa6"><TD CLASS="header" ALIGN="center">Thank you, your order has been transmitted!</TD></TR>'
	+ '<TR><TD CLASS="listEntry" ALIGN="center">A confirmation of your bulb sale order will be emailed to you shortly.<BR>If you have any further questions, please contact us <A HREF="mailto:bulbsale@riverbanks.org">via email</A>.<BR><BR>If for any reason you don\'t receive an email response immediately after your submission,<BR>please be sure to check your spam filter for a message from bulbsale@riverbanks.org.</TD></TR>'
	+ '<TR BGCOLOR="#f8e7c4"><TD ALIGN="center"><TABLE CELLSPACING="0" CELLPADDING="0" BORDER="0">'
		+ '<TR><TD ID="formBtm" STYLE="padding-right:5px"><INPUT TYPE="button" ID="button" NAME="printBtn2" VALUE="Print Order" STYLE="font-weight:bold; margin:0px 2px 0px 2px" onClick="printFrame()"></TD>'
			+ '<TD ID="formBtm"><INPUT TYPE="Reset" ID="button" VALUE="Place Another Order" STYLE="font-weight:bold" onClick="sectLevel.value=1; action.value=0; submission.document.open(); submission.document.close(); window.location.reload(false)"></TD></TR>'
		+ '</TABLE></TD></TR>'
	+ '<TR><TD STYLE="padding:0px"><IMG SRC="../assets/graphics/clearpixel.gif" WIDTH="760" HEIGHT="1" ALT=""></TD></TR>');
	document.writeln('</TABLE>');

	document.writeln('<TABLE ID="printDisplay" STYLE="width:760px;display:none" CELLSPACING="0" CELLPADDING="5" BORDER="0">'
	+ '<TR><TD CLASS="listEntry" ALIGN="center"><IFRAME NAME="submission" SCROLLING="Auto" WIDTH="100%" HEIGHT="350" MARGINWIDTH="0" MARGINHEIGHT="0" FRAMEBORDER="No"></IFRAME></TD></TR>'
	+ '<TR><TD STYLE="padding:0px"><IMG SRC="../assets/graphics/clearpixel.gif" WIDTH="760" HEIGHT="1" ALT=""></TD></TR>');
	document.writeln('</TABLE>');

	document.writeln('<TABLE ID="btm" STYLE="width:760px;display:block" CELLSPACING="0" CELLPADDING="5" BORDER="0">'
	+ '<TR BGCOLOR="#f8e7c4"><TD><INPUT TYPE="Reset" ID="button" NAME="btn03" VALUE="Start Over" STYLE="font-weight:bold" onClick="form.submitBtn.value=\'Continue »\'; if(sectLevel.value==2){sectLevel.value=1; action.value=0; openTable(\'sect1\'); openTable(\'sect2_2\'); openTable(\'printDisplay\'); btn01.style.display=\'none\'; printBtn.style.display=\'none\'; submitBtn.style.display=\'block\'; submission.document.open(); submission.document.close()}; if(sectLevel.value==3){sectLevel.value=1; action.value=0; openTable(\'sect1\'); openTable(\'sect2_1\'); openTable(\'printDisplay\'); btn01.style.display=\'none\'; submitBtn.style.display=\'block\'; submission.document.open(); submission.document.close()}"></TD>'
		+ '<TD ALIGN="right"><TABLE CELLSPACING="0" CELLPADDING="0" BORDER="0">'
		+ '<TR><TD STYLE="padding-right:5px"><INPUT TYPE="button" ID="button" NAME="btn01" VALUE="&laquo; Back" STYLE="font-weight:bold; display:none" onClick="form.submitBtn.value=\'Continue &raquo;\'; if(sectLevel.value==2){sectLevel.value=1; action.value=0; openTable(\'sect1\'); openTable(\'sect2_2\'); openTable(\'printDisplay\'); btn01.style.display=\'none\'; printBtn.style.display=\'none\'; submitBtn.style.display=\'block\'; submission.document.open(); submission.document.close()}; if(sectLevel.value==3){sectLevel.value=1; action.value=0; openTable(\'sect1\'); openTable(\'sect2_1\'); openTable(\'printDisplay\'); btn01.style.display=\'none\'; submitBtn.style.display=\'block\'; submission.document.open(); submission.document.close()}"></TD>'
			+ '<TD><INPUT TYPE="button" ID="button" NAME="printBtn" VALUE="Print Order" onClick="printFrame()" STYLE="display:none; font-weight:bold"></TD>'
			+ '<TD><INPUT TYPE="submit" ID="button" NAME="submitBtn" VALUE="Continue &raquo;" STYLE="font-weight:bold"></TD></TR>'
		+ '</TABLE></TD></TR>'
	+ '<TR><TD COLSPAN="2" STYLE="padding:0px"><IMG SRC="../assets/graphics/clearpixel.gif" WIDTH="760" HEIGHT="1" ALT=""></TD></TR>');
	document.writeln('</TABLE>');

	document.writeln('</FORM>');
	}
} else {
	document.writeln('<TABLE STYLE="width:760px" CELLSPACING="0" CELLPADDING="5" BORDER="0">'
	+ '<TR BGCOLOR="#f8e7c4"><TD CLASS="subheader">* Incompatible Browser</TD></TR>'
	+ '<TR><TD><P><STRONG>Sorry, this form is only compatible with Microsoft Internet Explorer 5.0+higher, Netscape Navigator 6.0+higher, and Firefox 1.5+higher browsers.</STRONG></P>'
		+ '<P>Please use one of these browsers if you wish to use this online form. If you are currently using the appropriate browser, please make sure that you have it set to be <B>JavaScript enabled</B>. After JavaScript has been enabled, simply reload this page and then the form will appear. Thank you.</P></TD></TR>'
	+ '</TABLE>');
}

function CheckIsIE() {
	if (navigator.appName.toUpperCase() == 'MICROSOFT INTERNET EXPLORER') { return true; }
	else { return false; }
}

function printFrame() {
	if (CheckIsIE() == true) { document.submission.focus(); document.submission.print(); }
	else { window.frames['submission'].focus(); window.frames['submission'].print(); }
}
