//
//Image order/download form
//

function ImageReq(url,image) {
PreView = window.open("", "_blank", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=540");
PreView.document.open();
PreView.document.write("<HTML><HEAD>");
PreView.document.write("<TITLE>www.thomasbachand.com</TITLE>");
PreView.document.write("<META HTTP-EQUIV='Expires' CONTENT='0'>");

PreView.document.write("<SCRIPT LANGUAGE='JavaScript' SRC='http://www.thomasbachand.com/jslibrary.js'></SCRIPT>");
PreView.document.write("<LINK REL='stylesheet' TYPE='text/css' HREF='http://www.thomasbachand.com/bachand.css'>");
PreView.document.write("</HEAD>");

PreView.document.write("<BODY CLASS='iwindow'>");
PreView.document.write("<CENTER><A CLASS='logoname' HREF='http://www.thomasbachand.com/index.html'>THOMAS BACHAND</A><A CLASS='logosubject' HREF='http://www.thomasbachand.com/stock/index.html' TARGET='_blank'>PHOTOGRAPHY</A></CENTER>");

PreView.document.write("<BR><CENTER><DIV CLASS='iwindowimage'>");
PreView.document.write("<TABLE ALIGN='CENTER' BORDER=0 WIDTH=388 HEIGHT=388 CELLPADDING=0 CELLSPACING=0 BGCOLOR=#FFFFFF BACKGROUND='http://www.thomasbachand.com/stock/imagel/" + image + ".jpg' HSPACE='0' VSPACE='0'>");
PreView.document.write("<TR><TD><A HREF=\"javascript:void(0)\" onClick=\"alert('Please contact Thomas Bachand at 510-547-8622 or infoweb@thomasbachand.com for more information on this image. All content on this site, including photography, &copy;Thomas Bachand.  All rights reserved.')\">");
PreView.document.write("<IMG ALIGN=MIDDLE SRC='http://www.thomasbachand.com/stock/images/catchL.gif' BORDER=0></A></TD></TR></TABLE></DIV></CENTER>");
PreView.document.write("<form>");
PreView.document.write("<TABLE BORDER='0' WIDTH='100%' BGCOLOR='#FFFFFF' CELLPADDING='5' CELLSPACING='0' ALIGN='CENTER'>");
PreView.document.write("<TR><TD ALIGN=LEFT COLSPAN=8><B>Complete the Form to Download:</B> Fields marked with an <SPAN CLASS='star'>*</SPAN> are required.</FONT></TD></TR>"); 
PreView.document.write("<TR><TD CLASS='imagereq' COLSPAN=2 ALIGN=RIGHT>First: </TD><TD COLSPAN=2><input type='text' name='firstname' size=20> <SPAN CLASS='star'>*</SPAN></TD>");
PreView.document.write("	<TD CLASS='imagereq' COLSPAN=1 ALIGN=RIGHT>Last:  </TD><TD COLSPAN=3><input type='text' name='lastname' size=30> <SPAN CLASS='star'>*</SPAN></TD></TR>");
PreView.document.write("<TR><TD CLASS='imagereq' COLSPAN=2 ALIGN=RIGHT>Organization:  </TD><TD COLSPAN=6><input type='text' name='org' size=65></TD></TR>");
PreView.document.write("<TR><TD CLASS='imagereq' COLSPAN=2 ALIGN=RIGHT>Address:  </TD><TD COLSPAN=6><input type='text' name='street' size=65> <SPAN CLASS='star'>*</SPAN></TD></TR>");
PreView.document.write("<TR><TD CLASS='imagereq' COLSPAN=2 ALIGN=RIGHT>City: </TD><TD COLSPAN=2><input type='text' name='city' size=20> <SPAN CLASS='star'>*</SPAN></TD>");
PreView.document.write("	<TD CLASS='imagereq' ALIGN=RIGHT>State:  </TD><TD>");

PreView.document.write("<select CLASS='imagereq' name='state' size='1'>");
PreView.document.write("<option selected>select</option>");
PreView.document.write("<option value='AR'>AR</option>");
PreView.document.write("<option value='AK'>AK</option>");
PreView.document.write("<option value='AL'>AL</option>");
PreView.document.write("<option value='AZ'>AZ</option>");
PreView.document.write("<option value='CA'>CA</option>");
PreView.document.write("<option value='CO'>CO</option>");
PreView.document.write("<option value='CT'>CT</option>");
PreView.document.write("<option value='DC'>DC</option>");
PreView.document.write("<option value='DE'>DE</option>");
PreView.document.write("<option value='FL'>FL</option>");
PreView.document.write("<option value='GA'>GA</option>");
PreView.document.write("<option value='HI'>HI</option>");
PreView.document.write("<option value='IA'>IA</option>");
PreView.document.write("<option value='ID'>ID</option>");
PreView.document.write("<option value='IL'>IL</option>");
PreView.document.write("<option value='IN'>IN</option>");
PreView.document.write("<option value='KS'>KS</option>");
PreView.document.write("<option value='KY'>KY</option>");
PreView.document.write("<option value='LA'>LA</option>");
PreView.document.write("<option value='MA'>MA</option>");
PreView.document.write("<option value='MD'>MD</option>");
PreView.document.write("<option value='ME'>ME</option>");
PreView.document.write("<option value='MI'>MI</option>");
PreView.document.write("<option value='MN'>MN</option>");
PreView.document.write("<option value='MO'>MO</option>");
PreView.document.write("<option value='MS'>MS</option>");
PreView.document.write("<option value='MT'>MT</option>");
PreView.document.write("<option value='MI'>MI</option>");
PreView.document.write("<option value='NC'>NC</option>");
PreView.document.write("<option value='NE'>NE</option>");
PreView.document.write("<option value='ND'>ND</option>");
PreView.document.write("<option value='NH'>NH</option>");
PreView.document.write("<option value='NJ'>NJ</option>");
PreView.document.write("<option value='NM'>NM</option>");
PreView.document.write("<option value='NV'>NV</option>");
PreView.document.write("<option value='NY'>NY</option>");
PreView.document.write("<option value='OK'>OK</option>");
PreView.document.write("<option value='OH'>OH</option>");
PreView.document.write("<option value='OR'>OR</option>");
PreView.document.write("<option value='PA'>PA</option>");
PreView.document.write("<option value='PR'>PR</option>");
PreView.document.write("<option value='RI'>RI</option>");
PreView.document.write("<option value='SC'>SC</option>");
PreView.document.write("<option value='SD'>SD</option>");
PreView.document.write("<option value='TN'>TN</option>");
PreView.document.write("<option value='TX'>TX</option>");
PreView.document.write("<option value='UT'>UT</option>");
PreView.document.write("<option value='VA'>VA</option>");
PreView.document.write("<option value='VI'>VI</option>");
PreView.document.write("<option value='VT'>VT</option>");
PreView.document.write("<option value='WA'>WA</option>");
PreView.document.write("<option value='WI'>WI</option>");
PreView.document.write("<option value='WV'>WV</option>");
PreView.document.write("<option value='WY'>WY</option>");
PreView.document.write("</select>*</TD>");

PreView.document.write("	<TD CLASS='imagereq' ALIGN=RIGHT>ZIP:   </TD><TD><input type='text' name='postcode' size='10'></TD></TR>");
PreView.document.write("<TR><TD CLASS='imagereq' COLSPAN=2 ALIGN=RIGHT>Email:  </TD><TD COLSPAN=3><input type='text' name='email' size=30> <SPAN CLASS='star'>*</SPAN></TD>");
PreView.document.write("	<TD CLASS='imagereq' COLSPAN=1 ALIGN=RIGHT>Tel:  </TD><TD COLSPAN=2><input type='text' name='telephone' size=15> <SPAN CLASS='star'>*</SPAN></TD></TR><BR>");

PreView.document.write("</TABLE><TABLE BORDER='1' WIDTH='100%' BGCOLOR='#FFFFFF' CELLPADDING='5' CELLSPACING='0' ALIGN='CENTER'>");
PreView.document.write("<TR><TD CLASS='imagereq' COLSPAN=4 VALIGN=TOP><B>Fine Art Print:</B><BR>");
PreView.document.write("");
PreView.document.write("	<INPUT TYPE='radio' NAME='usage' VALUE='8x10'>8x10 - $100 ($15 shipping, 8.25% CA tax)<BR>");
PreView.document.write("	<INPUT TYPE='radio' NAME='usage' VALUE='11x14'>11x14 - $315 (BW prints, $25 shipping, 8.25% CA tax)<BR>");
PreView.document.write("	<INPUT TYPE='radio' NAME='usage' VALUE='13x19'>13x19 - $315 (Color prints, $25 shipping, 8.25% CA tax)<BR>");
//PreView.document.write("	<INPUT TYPE='radio' NAME='usage' VALUE='20x24'>20x24 - $540 ($35 shipping, 8.25% CA tax)<BR>");
PreView.document.write("	<INPUT TYPE='radio' NAME='usage' VALUE='custom'>Custom fine art print (Denote size you would like to order in Comments below)<BR><BR>");
PreView.document.write("<P CLASS='imagereq'>Dimensions denote paper size.  Actual image size varies with image proportions and printing method. All prints have a minimum border of 1/4\". A confirmation email itemizing charges will be sent to you.</P><BR>");
PreView.document.write("<select name='pay' size='1'>");
PreView.document.write("<option selected>select a payment method</option>");
PreView.document.write("<option value='charge'>credit card</option>");
PreView.document.write("<option value='check'>check / money order</option>");
PreView.document.write("</select>");
PreView.document.write("</TD>");
PreView.document.write("<TD CLASS='imagereq' COLSPAN=4 VALIGN=TOP><B>Free Downloads:</B><BR>");
PreView.document.write("");
PreView.document.write("	<INPUT TYPE='radio' NAME='usage' VALUE='comp'>Advertising Comp - Free*<BR>");
PreView.document.write("	<INPUT TYPE='radio' NAME='usage' VALUE='screen'>Wallpaper/Screensaver - Free*<BR>");
PreView.document.write("	<INPUT TYPE='radio' NAME='usage' VALUE='free'>Student project - Free*<BR><BR>");
PreView.document.write("	<INPUT TYPE='radio' NAME='usage' VALUE='call'>Call me with licensing information.<BR>");
PreView.document.write("</TD></TR>");
PreView.document.write("</TABLE><TABLE BORDER='0' WIDTH='100%' BGCOLOR='#FFFFFF' CELLPADDING='5' CELLSPACING='0' ALIGN='CENTER'>");

PreView.document.write("<TR><TD COLSPAN=8><B>Comments:</B><BR>");
PreView.document.write("");
PreView.document.write("<textarea name='comments' cols='75' rows='3'></textarea><BR>");
PreView.document.write("<P CLASS='imagereq'>*All photographs and illustrations contained within this website, and rights therein, including copyright, are the sole and exclusive property of Thomas Bachand. Downloaded images may only be used as screensavers, comps, or for student projects.  Not all images are available as screensavers. An image similar in concept and style will be sent to you if the image you select is unavailable. If ordering an Advertising Comp or Student Project image, describe your project in the Comments field. For more details on <A HREF='http://www.thomasbachand.com/prices.html' TARGET='_BLANK'>terms and pricing, click here</A>.</P>");
PreView.document.write("");
PreView.document.write("</TD></TR>");
PreView.document.write("<TR><TD ALIGN=LEFT COLSPAN=4 WIDTH='100%'>");
PreView.document.write("		<input type='hidden' name='image' value='" + image + "'>");
PreView.document.write("		<input type='hidden' name='pprice' value=''>");
PreView.document.write("		<input type='hidden' name='tprice' value=''>");
PreView.document.write("		<input type='hidden' name='paypallink' value=''>");
PreView.document.write("		<input type='hidden' name='tax' value=''>");
PreView.document.write("		<input type='hidden' name='taxrate' value=''>");
PreView.document.write("		<input type='hidden' name='ship' value=''>");
PreView.document.write("		<input type='hidden' name='subject' value='Photo Order'> ");
//PreView.document.write("		<input type='hidden' name='redirect  ' value='http://www.thomasbachand.com/forms/order.html'> ");
//PreView.document.write("		<input type='hidden' name='required_fields' value='firstname,lastname,street,city,state,postcode,email,telephone,use'> ");
PreView.document.write("		<INPUT TYPE='hidden' NAME='format_filename' value=''> ");
PreView.document.write("		<input type='hidden' name='url' value='" + url + "'>");
PreView.document.write("		<INPUT TYPE='hidden' NAME='format_username' value='bachand'> ");
PreView.document.write("	<input type='submit' NAME='s' value='Agree and Continue' onClick=\"return(s.value='Processing...'),Order(this.form)\">");
PreView.document.write("</TD><TD ALIGN=RIGHT COLSPAN=4><form><INPUT TYPE='button' VALUE='Close Window' onClick='window.close()'></form></TD></TR>");
PreView.document.write("</TABLE>");
PreView.document.write("</form>");
PreView.document.write("</BODY></HTML>");
    }

//
//order function - multiple variable submit
//

function Order(form)	{
	
	var s8 = 15;
	var s11 = 25;
	var s16 = 25;
	var s20 = 35;
	var p8 = 100;
	var p11 = 315;
	var p16 = 315;
	var p20 = 540;
	var taxrate = .0825;
	var tax;
	var tprice;
	var xprice;
	var ship;
	var pprice;
	var subject;
	var format_filename  = form.format_filename.value;
	var email = form.email.value;
	var use = form.usage.value;
	var state = form.state.value;
	var url = form.url.value;
	var image = form.image.value;
	var pay = form.pay.value;
	var confirm = "http://www.thomasbachand.com/forms/order.html";
	var paypallink;
	var decplaces = 2;


//Get radio object value

	for (var i = 0; i< form.usage.length; i++)	{
		if (form.usage[i].checked)	{
			break;
		}
	}
	var use = form.usage[i].value;

//Set values depending on radio selection

	if(use == '8x10')
	{	pprice = p8;
		format_filename = 'printorder.fmt';
		subject = '8x10 Print Order with Thomas Bachand Photography';
		ship = s8;	
	}

	else	{	if(use == '11x14')
				{	pprice = p11;
					format_filename = 'printorder.fmt';
					ship = s11;	
					subject = '11x14 Print Order with Thomas Bachand Photography';
				}
		
				else	{	if(use == '13x19')
							{	pprice = p16;
								format_filename = 'printorder.fmt';
								subject = '13x19 Color Print Order with Thomas Bachand Photography';
								ship = s16;	
							}
		
							else	{	if(use == '20x24')
										{	pprice = p20;
											format_filename = 'printorder.fmt';
											subject = '20x24 Print Order with Thomas Bachand Photography';
											ship = s20;	
										}
		
										else	{	if(use == 'screen')
													{	format_filename = 'screen.fmt';
														subject = 'Screensaver from Thomas Bachand Photography';
	
													}
		
												else	{	if(use == 'comp')
															{	format_filename = 'comp.fmt';
																subject = 'Comp from Thomas Bachand Photography';
		
															}
														else	{	if(use == 'edu') 
																	{	format_filename = 'edu.fmt';
																		subject = 'Educational Project Photo order with Thomas Bachand Photography';
																		}
																else	{	if(use == 'custom') 
																			{	format_filename = 'custom.fmt';
																				subject = 'Custom Print Order with Thomas Bachand Photography';
																				}
		
																		else	{ 	format_filename = 'call.fmt';
																					subject = 'Contact Request';
					  																}
				  														}
			  													}			
														} 
												}
						 			}
			 			}
 			} 
																

																
//Add CA tax

	if(state=='CA')	{
		tax = (pprice * taxrate);
		tax = rnd(tax,2);
//alert('tax =' + tax);
	}
	else	{	
		tax = 0;
		}

xprice = rnd((pprice + tax),2);
tprice = rnd((pprice + tax + ship),2);
paypallink = 'https://www.paypal.com/cart/add=1&business=tom%40thomasbachand.com&item_name=' + use + '+Print&item_number=' + image + '&amount=' + AddZeros(xprice) + '&shipping=' + ship + '&image_url=http%3A//www.thomasbachand.com/gifs/pp.gif&return=http%3A//www.thomasbachand.com/order.html&cancel_return=http%3A//www.thomasbachand.com/ppal.html';
//paypallink = 'https://www.paypal.com/cart/add=1&business=tom%40thomasbachand.com&item_name=' + use + '+Print&item_number=' + image + '&amount=' + AddZeros(xprice) + '&shipping=' + ship + '&shipping2=0.00&return=http%3A//www.thomasbachand.com/order.html&cancel_return=http%3A//www.thomasbachand.com/ppal.html';

//alert('xprice =' + AddZeros(xprice) + 'tprice =' + AddZeros(tprice) + 'tax =' + AddZeros(tax));
//	
//Credit Card Redirect
//	

	if((pay == 'charge') && ((use == '8x10') || (use == '11x14') || (use == '13x19') || (use == '20x24')))	{
		confirm = paypallink;
		}
		
	
		
//	
//Set values
//

	form.format_filename.value = format_filename;
	form.redirect.value = confirm;
	form.paypallink.value = paypallink;
	form.subject.value = subject;
	form.ship.value = AddZeros(ship);
	form.pprice.value = AddZeros(pprice);
	form.tprice.value = AddZeros(tprice);
	form.tax.value = AddZeros(tax);
	

	
		
//	
//Return values
//
//	return form.usage.value;

//	return form.pprice.value;
//	return form.ship.value;
//	return form.tax.value;
//	return form.tprice.value;

//	return form.subject.value;
//	return form.format_filename.value;
//	return form.redirect.value;
//	return form.paypallink.value;

PreView.document.open();
PreView.document.write("<HTML><HEAD>");
PreView.document.write("<TITLE>www.thomasbachand.com</TITLE>");
PreView.document.write("<META HTTP-EQUIV='Expires' CONTENT='0'>");

PreView.document.write("<SCRIPT LANGUAGE='JavaScript' SRC='http://www.thomasbachand.com/jslibrary.js'></SCRIPT>");
PreView.document.write("<LINK REL='stylesheet' TYPE='text/css' HREF='http://www.thomasbachand.com/bachand.css'>");
PreView.document.write("</HEAD>");

PreView.document.write("<BODY CLASS='iwindow'>");
PreView.document.write("<CENTER><A CLASS='logoname' HREF='http://www.thomasbachand.com/index.html'>THOMAS BACHAND</A><A CLASS='logosubject' HREF='http://www.thomasbachand.com/stock/index.html' TARGET='_blank'>PHOTOGRAPHY</A></CENTER>");

PreView.document.write("<BR><CENTER><DIV CLASS='iwindowimage'>");
PreView.document.write("<TABLE ALIGN='CENTER' BORDER=0 WIDTH=388 HEIGHT=388 CELLPADDING=0 CELLSPACING=0 BGCOLOR=#FFFFFF BACKGROUND='http://www.thomasbachand.com/stock/imagel/" + image + ".jpg' HSPACE='0' VSPACE='0'>");
PreView.document.write("<TR><TD><A HREF=\"javascript:void(0)\" onClick=\"alert('Please contact Thomas Bachand at 510-547-8622 or infoweb@thomasbachand.com for more information on this image. All content on this site, including photography, &copy;Thomas Bachand.  All rights reserved.')\">");
PreView.document.write("<IMG ALIGN=MIDDLE SRC='http://www.thomasbachand.com/stock/images/catchL.gif' BORDER=0></A></TD></TR></TABLE></DIV></CENTER>");
PreView.document.write("<form method=\"POST\" action=\"/cgi/gdform.cgi\">");
PreView.document.write("We will begin processing your order upon receipt of your payment.  Please verify your order information below. Click the Back button to make any changes. If you experience any problems with your order, please contact us - your feedback allows us to improve are service.");
PreView.document.write("<BR><BR>Order Type: " + subject); 
PreView.document.write("<BR>Name: " + firstname + " "+ lastname);
PreView.document.write("<BR>Organization:  " + org);
PreView.document.write("<BR>Address: " + street);
PreView.document.write("<BR>City: " + city + ", " + state + "  " + postcode);
PreView.document.write("Email: " + email);
PreView.document.write("<BR>Tel: " + elephone);

PreView.document.write("<BR><BR>Print: " + usage);
PreView.document.write("<BR><BR>Print Price: " + AddZeros(pprice));
PreView.document.write("<BR>Tax: " + AddZeros(tax));
PreView.document.write("<BR>Shipping: " + ship);
PreView.document.write("<BR>Total Price: " + AddZeros(tprice));
PreView.document.write("<BR><BR>Payment Type: " + pay);
PreView.document.write("<BR>Comments: "  + comments);
PreView.document.write("");
PreView.document.write("<P CLASS='imagereq'>PAYMENT:<P CLASS='imagereq'>- Check or Money Order: Please mail payment to address below.<P CLASS='imagereq'>- Credit Card: Clicking on \"Plac Order\" below will take you to the Pay Pal site where you can submit your credit card information.  If you are not taken to the Paypal site, click on the PayPal link below or cut and paste it into the \"address/location\" field at the top of your Internet browser.");

PreView.document.write("<P CLASS='imagereq'><B>PalPal Link:</B><BR><BR>");
PreView.document.write("<A HREF='"+ paypallink + "'>" + paypallink + "</A>");


PreView.document.write("<P CLASS='imagereq'>PAY PAL NOT WORKING?  If the Pay Pal link is not working, it may have been misconfigured by your browser.  Forward this email to me at infoweb@thomasbachand.com with a request for a link fix.");

PreView.document.write("<P CLASS='imagereq'>MULITPLE PRINT ORDERS: Each time you are brought to the PayPal invoice page (whether by the link above or by using the credit card option on the web site order form), your PayPal shopping cart is updated. Return to the site and submit another image request to add to your PayPal shopping cart.  PayPal will allow you to delete items before purchase.");
 
PreView.document.write("<P CLASS='imagereq'>CARING FOR YOUR PRINT:");

PreView.document.write("<P CLASS='imagereq'>I strive for the finest archival quality available when producing my prints.  Print processes and paper vary depending on the image and the presentation desired.  To maximise the life of your print, window mount with acid-free materials and frame under glass, leaving an air space between the print and the glass. Seal the back of the frame to prevent contamination by dirt and moisture.  Keep your print in a cool, dry environment and do not hang it in direct sunlight. ");

PreView.document.write("<P CLASS='imagereq'>Thank you for your patronage.");

PreView.document.write("<P CLASS='imagereq'>Sincerely,");

PreView.document.write("<P CLASS='imagereq'>Thomas Bachand<BR>Thomas Bachand Photography<BR>P.O. Box 20796<BR>Oakland, CA 94620<BR><BR>510.547.8622<BR>tom@thomasbachand.com<BR>http://www.thomasbachand.com<BR></P>");
PreView.document.write("<P CLASS='imagereq'>*All photographs and illustrations contained within this website, and rights therein, including copyright, are the sole and exclusive property of Thomas Bachand. Downloaded images may only be used as screensavers, comps, or for student projects.  Not all images are available as screensavers. An image similar in concept and style will be sent to you if the image you select is unavailable. If ordering an Advertising Comp or Student Project image, describe your project in the Comments field. For more details on <A HREF='http://www.thomasbachand.com/prices.html' TARGET='_BLANK'>terms and pricing, click here</A>.</P>");
PreView.document.write("");
PreView.document.write("</TD></TR>");
PreView.document.write("<TR><TD ALIGN=LEFT COLSPAN=4 WIDTH='100%'>");
PreView.document.write("		<input type='hidden' name='A01_firstname' value='" + firstname + "'>");
PreView.document.write("		<input type='hidden' name='A02_lastname' value='" + lastname + "'>");
PreView.document.write("		<input type='hidden' name='A03_org' value='" + org + "'>");
PreView.document.write("		<input type='hidden' name='A04_street' value='" + street + "'>");
PreView.document.write("		<input type='hidden' name='A05_city' value='" + city + "'>");
PreView.document.write("		<input type='hidden' name='A06_state' value='" + state + "'>");
PreView.document.write("		<input type='hidden' name='A07_postcode' value='" + postcode + "'> ");
PreView.document.write("		<input type='hidden' name='A08_telephone' value='" + telephone + "'>");
PreView.document.write("		<input type='hidden' name='A09_email' value='" + email + "'> ");
PreView.document.write("		<input type='hidden' name='email' value='" + email + "'> ");
PreView.document.write("		<input type='hidden' name='A10_image' value='" + image + "'>");
PreView.document.write("		<input type='hidden' name='A11_usage' value='" + usage + "'> ");

PreView.document.write("		<input type='hidden' name='A12_pprice' value='" + AddZeros(pprice) + "'>");
PreView.document.write("		<input type='hidden' name='A13_taxrate' value='" + taxrate + "'>");
PreView.document.write("		<input type='hidden' name='A14_tax' value='" + AddZeros(tax) + "'>");
PreView.document.write("		<input type='hidden' name='A15_ship' value='" + ship + "'>");
PreView.document.write("		<input type='hidden' name='A16_tprice' value='" + AddZeros(tprice) + "'>");
PreView.document.write("		<input type='hidden' name='subject' value='" + subject + "'> ");
PreView.document.write("		<input type='hidden' name='A17_paypallink' value='" + paypallink + "'>");
PreView.document.write("		<input type='hidden' name='A18_redirect  ' value='" + confirm + "'> ");
PreView.document.write("		<input type='hidden' name='redirect  ' value='" + confirm + "'> ");
//PreView.document.write("		<input type='hidden' name='required_fields' value='firstname,lastname,street,city,state,postcode,email,telephone,use'> ");
//PreView.document.write("		<INPUT TYPE='hidden' NAME='format_filename' value=''> ");
PreView.document.write("		<input type='hidden' name='url' value='" + url + "'>");
//PreView.document.write("		<INPUT TYPE='hidden' NAME='format_username' value='bachand'> ");
PreView.document.write("	<input type='submit' NAME='s' value='Place Order' onClick=\"return(s.value='Processing...')\">");
PreView.document.write("</TD><TD ALIGN=RIGHT COLSPAN=4><form><INPUT TYPE='button' VALUE='Close Window' onClick='window.close()'></form></TD></TR>");
PreView.document.write("</TABLE>");
PreView.document.write("</form>");
PreView.document.write("</BODY></HTML>");
}




//
// Set decimal places
//
function rnd(number,decplaces) {
// rounds number to 'decplaces' decimal places, defaults to 2
decplaces = (!decplaces ? 2 : decplaces);
number = (Math.round(number*Math.pow(10,decplaces))/Math.pow(10,decplaces));
return number;
}


//
//Add Zeros for JavaScript
//

function AddZeros(number) {
	var szero = '0'
	var dzero ='.00'
	
	if ((number - parseInt(number)) == 0)	{
		number = (number + dzero);
//		alert(number + ' + ' + dzero + '  = ' + number);
		}
	else {
			if (((number*10) - parseInt(number*10)) == 0)	
			{
				number = (number + szero);
//		alert(number + ' + ' + szero + '  = ' + number);
			}
			else {
			number = parseInt(number*100) / 100;
				}
		}
	
	return number;

}
//
// Set decimal places
//

	function format(expr)	
	{
		var decplaces = 2
		var str = ("" + Math.round(eval(expr) * Math.pow(10,decplaces)));
	
		While (str.length <= decplaces) 
		{
		str = "0" + str;
		
		}
	
	var decpoint = str.length - decplaces;
	
	return str.substring(0,decpoint) + "." + str.substring(decpoint,str.length);
	
	}

//
// convert number to dollar value using function decimalPoint
//

//function dollarize(expr){
//	return "$" + decimalPoint(expr,2)
//	}
	
	
//
// Get radio variable
//

function getUsage(form) {
	for (var i = 0; i< form.usage.length; i++)	{
		if (form.usage[i].checked)	{
			break
		}
	}
	var use = form.usage[i].value
}


		
//
//SF Quicktime window
//

function StartSF(image) {
PreView = window.open("", "_blank", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=440,height=500");
PreView.document.open();
PreView.document.write("<HTML><HEAD>");
PreView.document.write("<TITLE>www.thomasbachand.com</TITLE>");
PreView.document.write("<META HTTP-EQUIV='Expires' CONTENT='0'>");

PreView.document.write("<SCRIPT LANGUAGE='JavaScript' SRC='http://www.thomasbachand.com/jslibrary.js'></SCRIPT>");
PreView.document.write("<LINK REL='stylesheet' TYPE='text/css' HREF='http://www.thomasbachand.com/bachand.css'>");
PreView.document.write("</HEAD>");

PreView.document.write("</HEAD><BODY CLASS='iwindow' BGCOLOR='#000000'>");
PreView.document.write("<CENTER><A CLASS='logoname' HREF='../index.html'><FONT SIZE='+1' COLOR='#FFFFFF'>THOMAS BACHAND</FONT></A><A CLASS='logosubject' HREF='http://www.thomasbachand.com/stock/index.html' TARGET='_blank'><FONT SIZE='+1' COLOR='#666666'>PHOTOGRAPHY</FONT></A></CENTER>");
PreView.document.write("<BR><CENTER><SPAN CLASS='contactlink'><FONT SIZE='-1' COLOR='#FFFFFF'>Thomas Bachand&copy;2002</FONT></SPAN></CENTER><BR>");

PreView.document.write("<CENTER>");
PreView.document.write("<EMBED CACHE=FALSE CONTROLLER=TRUE ALIGN=CENTER HSPACE=15 VSPACE=15 " + "SRC=" + image + " PLUGINSPAGE=http://www.apple.com/quicktime/download/>");
PreView.document.write("<BR><BR><FONT SIZE='-1' COLOR='#FFFFFF'>Please wait as animation downloads.<BR>Click and drag on image to pan.</FONT><BR><FORM><INPUT TYPE='button' VALUE='Close' " + "onClick='window.close()'></FORM>");
PreView.document.write("</CENTER>");
PreView.document.write("</BODY></HTML>");
    }

//
//Thumbnail caption
//

function showMsg(text){

	window.status = text;

	return true;

	}
//
//Large image copright notice
//

function ImageClick(){

	alert('For more information or to download this image, complete the form below or contact Thomas Bachand at 510-547-8622 or infoweb@thomasbachand.com . All content on this site, including photography, ©Thomas Bachand.  All rights reserved.');

	return false;

	}


//
//Button change on submit
//

function submitForm(s)  {
s.value = "Thank You";
return true;
}

//
//Add address To Sendmail
//


function emailAdd() {
	var email = usermail + ",order@thomasbachand.com"
	}


	
function emailCheck(form)	{
	if (form.email.value=='email updates')	{
		alert('To subscribe to our email notification list, please type your email address into the Email Updates space and click subscribe. Your email address will not be shared with anyone. Subscribers will periodically recieve email notifications of our new projects and site updates.  To receive mailings, complete the form on our contact page.  Thank you for subscribing.');
	}	
	else {return(form.s.value='Thanks',form.u.value=window.location.href)
		}
}


//
// check email
//

function isEmail (s){

var digits = "0123456789";
var lowercaseLetters = "abcdefghijklmnopqrstuvwxyz";
var uppercaseLetters = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
var validDomainNameChars = digits + uppercaseLetters + lowercaseLetters + "-_.";
var whitespace = " \t\n\r";
var defaultEmptyOK = false;

    if (isEmpty(s)) 
       if (isEmail.arguments.length == 1) return defaultEmptyOK;
       else return (isEmail.arguments[1] == true);
    if (isWhitespace(s)) return false;
    var atloc = 0;
    var i = 1;
    var sLength = s.length;
    while ((i < sLength) && (s.charAt(i) != "@"))
    { i++ }
    if ((i >= sLength) || (s.charAt(i) != "@")) {alert (s + "  is not a valid email address"); return false}
//    if ((i >= sLength) || (s.charAt(i) != "@")) {alert ("no @ sign"); return false}
    else atloc = i;
    j = i+1;
    i += 1;
    while ((j < sLength) && (validDomainNameChars.indexOf(s.charAt(j)) != -1))
    { j++ }
    if (j < sLength) {alert(s + "  is not a valid email address"); return false};
//    if (j < sLength) {alert("invalid character in domain name: "+s.charAt(j)); return false};
    while ((i < sLength) && (s.charAt(i) != "."))
    { i++ }
    if (i == sLength) {alert(s + "  is not a valid email address"); return false}
//    if (i == sLength) {alert("no . in domain name"); return false}
    if (i == (atloc +1)) {alert(s + "  is not a valid email address"); return false}
//    if (i == (atloc +1)) {alert("not enough space between @ and ."); return false}
    k = atloc+1;
    while (k < sLength){
      if ((s.charAt(k) == ".") && (s.charAt(k+1) == ".")) {alert(s + "  is not a valid email address"); return false}
//      if ((s.charAt(k) == ".") && (s.charAt(k+1) == ".")) {alert("too many .'s"); return false}
      k++
    }
    l = sLength;
    while ((i < sLength -2) && (l != i) && (s.charAt(l) != "."))
    { l = l-1 }
    if ((i >= sLength - 2) || (s.charAt(i) != ".") || (l >= sLength - 2)) {alert(s + "  is not a valid email address"); return false}
//    if ((i >= sLength - 2) || (s.charAt(i) != ".") || (l >= sLength - 2)) {alert("not enough chars after ."); return false}
    else return true;


function isEmpty(s) {
    return ((s == null) || (s.length == 0))
}

function isWhitespace(s) {
    var i;

    if (isEmpty(s)) return true;
    for (i = 0; i < s.length; i++)
    {   
        var c = s.charAt(i);
        if (whitespace.indexOf(c) == -1) return false; // not whitespace
    }
    return true;
}

}
//
// ---------------------------  HOME PAGE ANIMATION  ---------------------------------
//


<!--
<!--
        if (document.images)  {

	    img1 = new Image();                       // Active Images

	    img1.src = "gifs/a5.gif";

	    img2 = new Image();

	    img2.src = "gifs/a4.gif";

	    img3 = new Image();

	    img3.src = "gifs/a3.gif";

	    img4 = new Image();

	    img4.src = "gifs/a2.gif";

	  
	    

	

	    img1on = new Image();

          img1on.src = "gifs/b5.gif";

	    img2on = new Image();

	    img2on.src = "gifs/b4.gif";

	    img3on = new Image();

	    img3on.src = "gifs/b3.gif";

	    img4on = new Image();

	    img4on.src = "gifs/b2.gif";


        }
// Function to 'activate' images.

        function img(imgName)  {

                if (document.images)  {

                        document[imgName].src = eval(imgName + ".src");

                }

        }
// Function to 'deactivate' images.

        function imgOn(imgName)  {

                if (document.images)  {

                        document[imgName].src = eval(imgName + "on.src");

                }

        }
//  -->

function MM_preloadImages() { //v2.0
  if (document.images) {
    var imgFiles = MM_preloadImages.arguments;
    if (document.preloadArray==null) document.preloadArray = new Array();
    var i = document.preloadArray.length;
    with (document) for (var j=0; j<imgFiles.length; j++) if (imgFiles[j].charAt(0)!="#"){
      preloadArray[i] = new Image;
      preloadArray[i++].src = imgFiles[j];
  } }
}
//-->



//
// HEADERS
//



//
//MAIN PHOTO HEADER - GALLERY, COM PHOTO, & STOCK INDEX
//

function headerPhotoMain(subject) {
document.write("<TABLE BORDER=\'0\' CELLPADDING=\'10\' CELLSPACING=\'0\' WIDTH=\'100%\'>");
document.write("	<TR>	");
document.write("		<TD VALIGN=TOP>");
document.write("		<A CLASS=\'pageindex\' TARGET=\'_TOP\' HREF=\'../whatsnew.html\'>what\'s new</A><BR>");
document.write("		<A CLASS=\'pageindex\' TARGET=\'_TOP\' HREF=\'../photography/index.html\'>gallery</A><BR>");
document.write("		<A CLASS=\'pageindex\' TARGET=\'_TOP\' HREF=\'../commercial_photography/index.html\'>assignment</A><BR>");
document.write("		<A CLASS=\'pageindex\' TARGET=\'_TOP\' HREF=\'../stock/index.html\'>stock</A><BR>");
document.write("		<A CLASS=\'pageindex\' TARGET=\'_TOP\' HREF=\'../prints.html\'>prints</A><BR>");
document.write("		</TD>");
document.write("<TD WIDTH=\'85%\'>");
document.write("<CENTER><A CLASS=\'logoname\' HREF=\'../index.html\'>THOMAS BACHAND</A><A CLASS=\'logosubject\' HREF=\'http://www.thomasbachand.com/stock/index.html\' TARGET=\'_blank\'>" + subject + "</A>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</CENTER>");
document.write("<HR WIDTH=\'90%\' ALIGN=RIGHT>");
document.write("		<DIV ALIGN=RIGHT>");
document.write("		<form method=\'POST\' action=\'../cgi/gdform.cgi\'>");
document.write("		<input CLASS=\'subscribeDentry\' type=\'text\' name=\'email\' size=\'30\' value=\"subscribe email for updates\">");
document.write("		<input type=\'hidden\' name=\'u\'> ");
document.write("		<input type=\'hidden\' name=\'subject\' value=\'SUBSCRIBE - EMAIL LIST\'>");
document.write("		<input type=\'hidden\' name=\'redirect\' value=\'../forms/reply.html\'> ");
document.write("		<input CLASS=\'subscribeDbutton\' type=\'submit\' name=\'s\' value=\'Subscribe\' onClick=\'emailCheck(this.form)\'>");
document.write("		</form>");
document.write("		</DIV>");
document.write("</TD>");
document.write("</TR></TABLE>");
   						 }


function headerComPhoto2Index(subject) {
document.write("<TABLE BORDER=\'0\' CELLPADDING=\'10\' CELLSPACING=\'0\' WIDTH=\'100%\'>");
document.write("	<TR>	");
document.write("		<TD VALIGN=TOP>");
document.write("		<A CLASS=\'pageindex\' TARGET=\'_TOP\' HREF=\'../../whatsnew.html\'>what\'s new</A><BR>");
document.write("		<A CLASS=\'pageindex\' TARGET=\'_TOP\' HREF=\'../../photography/index.html\'>gallery</A><BR>");
document.write("		<A CLASS=\'pageindex\' TARGET=\'_TOP\' HREF=\'../../commercial_photography/index.html\'>assignment</A><BR>");
document.write("		<A CLASS=\'pageindex\' TARGET=\'_TOP\' HREF=\'../../stock/index.html\'>stock</A><BR>");
document.write("		<A CLASS=\'pageindex\' TARGET=\'_TOP\' HREF=\'../../prints.html\'>prints</A><BR>");
document.write("		</TD>");
document.write("<TD WIDTH=\'85%\'>");
document.write("<CENTER><A CLASS=\'logoname\' HREF=\'../index.html\'>THOMAS BACHAND</A><A CLASS=\'logosubject\' HREF=\'http://www.thomasbachand.com/stock/index.html\' TARGET=\'_blank\'>" + subject + "</A>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</CENTER>");
document.write("<HR WIDTH=\'90%\' ALIGN=RIGHT>");
document.write("		<DIV ALIGN=RIGHT>");
document.write("		<form method=\'POST\' action=\'../../cgi/gdform.cgi\'>");
document.write("		<input CLASS=\'subscribeDentry\' type=\'text\' name=\'email\' size=\'30\' value=\"subscribe email for updates\">");
document.write("		<input type=\'hidden\' name=\'u\'> ");
document.write("		<input type=\'hidden\' name=\'subject\' value=\'SUBSCRIBE - EMAIL LIST\'>");
document.write("		<input type=\'hidden\' name=\'redirect\' value=\'../../forms/reply.html\'> ");
document.write("		<input CLASS=\'subscribeDbutton\' type=\'submit\' name=\'s\' value=\'Subscribe\' onClick=\'emailCheck(this.form)\'>");
document.write("		</form>");
document.write("		</DIV>");
document.write("</TD>");
document.write("</TR></TABLE>");
   						 }

function headerComPhoto2(subject) {
document.write("<CENTER><A CLASS=\'logoname\' HREF=\'../index.html\'>THOMAS BACHAND</A><A CLASS=\'logosubject\' HREF=\'http://www.thomasbachand.com/stock/index.html\' TARGET=\'_blank\'>" + subject + "</A>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</CENTER>");
document.write("<HR WIDTH=\'90%\' ALIGN=RIGHT>");
document.write("<TABLE BORDER=\'0\' CELLPADDING=\'20\' CELLSPACING=\'0\' ALIGN=\'CENTER\'>");
document.write("	<TR>	");
document.write("		<TD VALIGN=TOP>");
document.write("		<A CLASS=\'pageindex\' TARGET=\'_TOP\' HREF=\'../../whatsnew.html\'>what\'s new</A><BR>");
document.write("		<A CLASS=\'pageindex\' TARGET=\'_TOP\' HREF=\'../../photography/index.html\'>gallery</A><BR>");
document.write("		<A CLASS=\'pageindex\' TARGET=\'_TOP\' HREF=\'../../commercial_photography/index.html\'>assignment</A><BR>");
document.write("		<A CLASS=\'pageindex\' TARGET=\'_TOP\' HREF=\'../../stock/index.html\'>stock</A><BR>");
document.write("		<A CLASS=\'pageindex\' TARGET=\'_TOP\' HREF=\'../../prints.html\'>prints</A><BR>");
document.write("		</TD>");
   						 }



// HEADER - STOCK SUBJECT PAGES


function headerStock(subject) {
document.write("<TABLE BORDER=\'0\' CELLPADDING=\'10\' CELLSPACING=\'0\' WIDTH=\'100%\'>");
document.write("	<TR>	");
document.write("		<TD VALIGN=TOP>");
document.write("		<A CLASS=\'pageindex\' TARGET=\'_TOP\' HREF=\'../whatsnew.html\'>what\'s new</A><BR>");
document.write("		<A CLASS=\'pageindex\' TARGET=\'_TOP\' HREF=\'../photography/index.html\'>gallery</A><BR>");
document.write("		<A CLASS=\'pageindex\' TARGET=\'_TOP\' HREF=\'../commercial_photography/index.html\'>assignment</A><BR>");
document.write("		<A CLASS=\'pageindex\' TARGET=\'_TOP\' HREF=\'../stock/index.html\'>stock</A><BR>");
document.write("		<A CLASS=\'pageindex\' TARGET=\'_TOP\' HREF=\'../prints.html\'>prints</A><BR>");
document.write("		</TD>");
document.write("<TD WIDTH=\'85%\'>");
document.write("<CENTER><A CLASS=\'logoname\' HREF=\'../index.html\'>THOMAS BACHAND</A><A CLASS=\'logosubject\' HREF=\'http://www.thomasbachand.com/stock/index.html\' TARGET=\'_blank\'>" + subject + "</A>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</CENTER>");
document.write("<HR WIDTH=\'90%\' ALIGN=RIGHT>");
document.write("		<DIV ALIGN=RIGHT>");
document.write("		<form method=\'POST\' action=\'../cgi/gdform.cgi\'>");
document.write("		<input CLASS=\'subscribeDentry\' type=\'text\' name=\'email\' size=\'30\' value=\"subscribe email for updates\">");
document.write("		<input type=\'hidden\' name=\'u\'> ");
document.write("		<input type=\'hidden\' name=\'subject\' value=\'SUBSCRIBE - EMAIL LIST\'>");
document.write("		<input type=\'hidden\' name=\'redirect\' value=\'../../forms/reply.html\'> ");
document.write("		<input CLASS=\'subscribeDbutton\' type=\'submit\' name=\'s\' value=\'Subscribe\' onClick=\'emailCheck(this.form)\'>");
document.write("		</form>");
document.write("		</DIV>");
document.write("</TD>");
document.write("</TR></TABLE>");
   						 }


// HEADER - WRITER LEVEL 2


function headerWriter2(subject) {
document.write("<TABLE BORDER='0' CELLPADDING='10' CELLSPACING='0' WIDTH='100%'>");
document.write("	<TR>	");
document.write("		<TD VALIGN=TOP>");
document.write("		<A CLASS='pageindex' HREF='../../whatsnew.html'>what's new</A><BR>");
document.write("		<A CLASS='pageindex' HREF='../../photography/index.html'>photography</A><BR>");
document.write("		<A CLASS='pageindex' HREF='../../writer/index.html'>writer</A><BR>");
document.write("		<A CLASS='pageindex' HREF='../../contact.html'>contact</A><BR>");
document.write("		</TD>");
document.write("<TD WIDTH='85%'>");
document.write("<CENTER><A CLASS='logonamesand' HREF='../../index.html'>THOMAS BACHAND</A>");
document.write("<A CLASS='logosubjectsand' HREF='http://www.thomasbachand.com/photography/index.html' TARGET='_blank'>WRITER</A>");
document.write("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;");
document.write("</CENTER>");
document.write("<HR WIDTH='90%' ALIGN=RIGHT>");
document.write("		<DIV ALIGN=RIGHT>");
document.write("		<form method='POST' action='../../cgi/gdform.cgi\'>");
document.write("		<input CLASS='subscribeLight' type='text' name='email' size='18' value='email updates'>");
document.write("		<input type='hidden' name='u'> ");
document.write("		<input type='hidden' name='subject' value='SUBSCRIBE - EMAIL LIST'>");
document.write("		<input type='hidden' name='required_fields' value='email'>");
document.write("		");
document.write("		<input type='hidden' name='redirect' value='../../forms/reply.html'> ");
document.write("		<input CLASS='subscribeLight' type='submit' name='s' value='Subscribe' onClick='emailCheck(this.form)'>");
document.write("		</form>");
document.write("		</DIV>");
document.write("</TD>");
document.write("</TR></TABLE>");
	}

// HEADER - WEB


function headerWeb(subject) {
document.write("<TABLE BORDER='0' CELLPADDING='10' CELLSPACING='0' WIDTH='100%'>");
document.write("	<TR>	");
document.write("		<TD VALIGN=TOP NOWRAP>");
document.write("		<A CLASS='pageindex' HREF='../whatsnew.html'>what's new</A><BR>");
document.write("		<A CLASS='pageindex' HREF='../web/index.html'>web / graphic design</A><BR>");
document.write("		<A CLASS='pageindex' HREF='../animation/index.html'>animation</A><BR>");
document.write("		<A CLASS='pageindex' HREF='../photography/index.html'>photography</A><BR>");
document.write("		<A CLASS='pageindex' HREF='../writer/index.html'>writer</A><BR>");
document.write("		<A CLASS='pageindex' HREF='../contact.html'>contact</A><BR>");
document.write("		</TD>");
document.write("<TD WIDTH='85%'>");
document.write("<CENTER><A CLASS='logonamesand' HREF='../index.html'>THOMAS BACHAND</A>");
document.write("<A CLASS='logosubjectsand' HREF='http://www.thomasbachand.com/photography/index.html' TARGET='_blank'>" + subject + "</A>");
document.write("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;");
document.write("</CENTER>");
document.write("<HR WIDTH='90%' ALIGN=RIGHT>");
document.write("		<DIV ALIGN=RIGHT>");
document.write("		<form method='POST' action='../cgi/gdform.cgi\'>");
document.write("		<input CLASS='subscribeLight' type='text' name='email' size='18' value='email updates'>");
document.write("		<input type='hidden' name='u'> ");
document.write("		<input type='hidden' name='subject' value='SUBSCRIBE - EMAIL LIST'>");
document.write("		<input type='hidden' name='required_fields' value='email'>");
document.write("		");
document.write("		<input type='hidden' name='redirect' value='../forms/reply.html'> ");
document.write("		<input CLASS='subscribeLight' type='submit' name='s' value='Subscribe' onClick='emailCheck(this.form)'>");
document.write("		</form>");
document.write("		</DIV>");
document.write("</TD>");
document.write("</TR></TABLE>");
	}

//
// FOOTERS
//

//
//FOOTER  COM PHOTO MAIN AND STOCK
//
//function footerPhotoMain() {
//document.write("<CENTER><BR><BR><BR>");
//document.write("<TABLE BORDER='0' CELLPADDING='0' CELLSPACING='0' WIDTH='98%'>");
//document.write("<TR>	");
//document.write("<TD ALIGN=RIGHT VALIGN='TOP' WIDTH='80%'>");
//document.write("<HR ALIGN=LEFT VALIGN='TOP'></TD>");
//document.write("<TD ALIGN=RIGHT>");
//document.write("<A CLASS='pageindex' TARGET='_TOP' HREF='../index.html'>thomasbachand.com</A><BR>");
//document.write("<A CLASS='pageindex' TARGET='_TOP' HREF='../contact.html'>contact / mailing list</A><BR><BR>");
//document.write("<A CLASS='pageindex' TARGET='_TOP' HREF='../photography/index.html'>photography</A><BR>");
//document.write("<A CLASS='pageindex' TARGET='_TOP' HREF='../writer/index.html'>articles / books</A><BR>");
//document.write("<A CLASS='pageindex' TARGET='_TOP' HREF='../prints.html'>prints</A><BR>");
//document.write("</TD></TR>");
//document.write("</TABLE>");
//						}



//
//FOOTER  COM PHOTO Specialty pages
//
function footerComPhoto1() {
document.write("<CENTER><BR><BR><BR>");
document.write("		<A CLASS=\"pageindex\" HREF=\"architecture/index.html\">architecture</A> | ");
document.write("		<A CLASS=\"pageindex\" HREF=\"black_and_white/index.html\">black &amp; white</A> | ");
document.write("		<A CLASS=\"pageindex\" HREF=\"editorial/index.html\">editorial</A> | ");
document.write("		<A CLASS=\"pageindex\" HREF=\"landscape/index.html\">landscape</A> | ");
document.write("		<A CLASS=\"pageindex\" HREF=\"studio/index.html\">studio / digital</A> | ");
document.write("		<A CLASS=\"pageindex\" HREF=\"travel/index.html\">travel</A> | ");
document.write("		<A CLASS=\"pageindex\" HREF=\"../stock/index.html\">stock / archive</A></CENTER><BR>");
document.write("<TABLE BORDER='0' CELLPADDING='0' CELLSPACING='0' WIDTH='98%'>");
document.write("<TR>	");
document.write("<TD ALIGN=RIGHT VALIGN='TOP' WIDTH='80%'>");
document.write("<HR ALIGN=LEFT VALIGN='TOP'></TD>");
document.write("<TD ALIGN=RIGHT>");
document.write("<A CLASS='pageindex' TARGET='_TOP' HREF='../index.html'>thomasbachand.com</A><BR>");
document.write("<A CLASS='pageindex' TARGET='_TOP' HREF='../contact.html'>contact / mailing list</A><BR><BR>");
document.write("<A CLASS='pageindex' TARGET='_TOP' HREF='../photography/index.html'>photography</A><BR>");
document.write("<A CLASS='pageindex' TARGET='_TOP' HREF='../writer/index.html'>articles / books</A><BR>");
document.write("<A CLASS='pageindex' TARGET='_TOP' HREF='../prints.html'>prints</A><BR>");
document.write("</TD></TR>");
document.write("</TABLE>");
						}
//
//FOOTER  COM PHOTO Specialty pages INDEX
//
function footerComPhoto2Index() {
document.write("<CENTER><BR><BR><BR>");
document.write("		<A CLASS=\"pageindex\" HREF=\"../architecture/index.html\">architecture</A> | ");
document.write("		<A CLASS=\"pageindex\" HREF=\"../black_and_white/index.html\">black &amp; white</A> | ");
document.write("		<A CLASS=\"pageindex\" HREF=\"../editorial/index.html\">editorial</A> | ");
document.write("		<A CLASS=\"pageindex\" HREF=\"../landscape/index.html\">landscape</A> | ");
document.write("		<A CLASS=\"pageindex\" HREF=\"../studio/index.html\">studio / digital</A> | ");
document.write("		<A CLASS=\"pageindex\" HREF=\"../travel/index.html\">travel</A> | ");
document.write("		<A CLASS=\"pageindex\" HREF=\"../../stock/index.html\">stock / archive</A></CENTER><BR>");
document.write("<TABLE BORDER='0' CELLPADDING='0' CELLSPACING='0' WIDTH='98%'>");
document.write("<TR>	");
document.write("<TD ALIGN=RIGHT VALIGN='TOP' WIDTH='80%'>");
document.write("<HR ALIGN=LEFT VALIGN='TOP'></TD>");
document.write("<TD ALIGN=RIGHT>");
document.write("<A CLASS='pageindex' TARGET='_TOP' HREF='../../index.html'>thomasbachand.com</A><BR>");
document.write("<A CLASS='pageindex' TARGET='_TOP' HREF='../../contact.html'>contact / mailing list</A><BR><BR>");
document.write("<A CLASS='pageindex' TARGET='_TOP' HREF='../../photography/index.html'>photography</A><BR>");
document.write("<A CLASS='pageindex' TARGET='_TOP' HREF='../../writer/index.html'>articles / books</A><BR>");
document.write("<A CLASS='pageindex' TARGET='_TOP' HREF='../../prints.html'>prints</A><BR>");
document.write("</TD></TR>");
document.write("</TABLE>");
						}

//
//FOOTER  COM PHOTO 2ND LEVEL
//
function footerComPhoto2() {
document.write("<TD VALIGN=TOP>");
document.write("		<DIV ALIGN=RIGHT>");
document.write("		<form method=\'POST\' action=\'../../cgi/gdform.cgi\'>");
document.write("		<input CLASS=\'subscribeDentry\' type=\'text\' name=\'email\' size=\'30\' value=\"subscribe email for updates\">");
document.write("		<input type=\'hidden\' name=\'u\'> ");
document.write("		<input type=\'hidden\' name=\'subject\' value=\'SUBSCRIBE - EMAIL LIST\'>");
document.write("		<input type=\'hidden\' name=\'redirect\' value=\'../../forms/reply.html\'> ");
document.write("		<input CLASS=\'subscribeDbutton\' type=\'submit\' name=\'s\' value=\'Subscribe\' onClick=\'emailCheck(this.form)\'>");
document.write("		</form>");
document.write("		</DIV>");
document.write("</TD></TR>");
document.write("<TR><TD VALIGN='BOTTOM' NOWRAP>");
document.write("	<SPAN CLASS=\'logosubject\'><B>Assignment Portfolios</B><BR></SPAN>");	
document.write("		<A CLASS=\"pageindex\" HREF=\"../architecture/index.html\">architecture</A><BR>");
document.write("		<A CLASS=\"pageindex\" HREF=\"../black_and_white/index.html\">black &amp; white</A><BR>");
document.write("		<A CLASS=\"pageindex\" HREF=\"../editorial/index.html\">editorial</A><BR>");
document.write("		<A CLASS=\"pageindex\" HREF=\"../landscape/index.html\">landscape</A><BR>");
document.write("		<A CLASS=\"pageindex\" HREF=\"../studio/index.html\">studio / digital</A><BR>");
document.write("		<A CLASS=\"pageindex\" HREF=\"../travel/index.html\">travel</A><BR>");
document.write("		<A CLASS=\"pageindex\" HREF=\"../../stock/index.html\">stock / archive</A><BR>");
document.write("</TD><TD VALIGN=BOTTOM>");
document.write("<A CLASS='pageindex' TARGET='_TOP' HREF='../../index.html'>thomasbachand.com</A><BR>");
document.write("<A CLASS='pageindex' TARGET='_TOP' HREF='../../contact.html'>contact / mailing list</A><BR><BR>");
document.write("<A CLASS='pageindex' TARGET='_TOP' HREF='../../photography/index.html'>photography</A><BR>");
document.write("<A CLASS='pageindex' TARGET='_TOP' HREF='../../writer/index.html'>articles / books</A><BR>");
document.write("<A CLASS='pageindex' TARGET='_TOP' HREF='../../prints.html'>prints</A><BR>");
document.write("</TD></TR>");
document.write("</TABLE>");
						}


//
//FOOTER GALLERY
//
function footerGallery() {
document.write("<CENTER><BR><BR><BR>");
document.write("<A HREF='index.html'>Artist\'s Statement</A> &middot; ");
document.write("<A HREF='1.html'>1</A> &middot; ");
document.write("<A HREF='2.html'>2</A> &middot; ");
document.write("<A HREF='3.html'>3</A> &middot; ");
document.write("<A HREF='4.html'>4</A> &middot; ");
document.write("<A HREF='5.html'>5</A> &middot; ");
document.write("<A HREF='6.html'>6</A> &middot; ");
document.write("<A HREF='7.html'>7</A> &middot; ");
document.write("<A HREF='8.html'>8</A> &middot; ");
document.write("<A HREF='9.html'>9</A> &middot; ");
document.write("<A HREF='10.html'>10</A> &middot; ");
document.write("<A HREF='11.html'>11</A> &middot;"); 
document.write("<A HREF='12.html'>12</A>&middot; ");
document.write("<A HREF='bio.html'>bio</A></CENTER><BR><BR>");
document.write("<TABLE BORDER='0' CELLPADDING='0' CELLSPACING='0' WIDTH='98%'>");
document.write("<TR>	");
document.write("<TD ALIGN=RIGHT VALIGN='TOP' WIDTH='80%'>");
document.write("<HR ALIGN=LEFT VALIGN='TOP'></TD>");
document.write("<TD ALIGN=RIGHT>");
document.write("<A CLASS='pageindex' TARGET='_TOP' HREF='../index.html'>thomasbachand.com</A><BR>");
document.write("<A CLASS='pageindex' TARGET='_TOP' HREF='../contact.html'>contact / mailing list</A><BR><BR>");
document.write("<A CLASS='pageindex' TARGET='_TOP' HREF='../photography/index.html'>photography</A><BR>");
document.write("<A CLASS='pageindex' TARGET='_TOP' HREF='../writer/index.html'>articles / books</A><BR>");
document.write("<A CLASS='pageindex' TARGET='_TOP' HREF='../photography/prints.html'>prints</A><BR>");
document.write("</TD></TR>");
document.write("</TABLE>");
						}

//
//THUMBNAIL TABLE STOCK
//

function thumbTable(image1,caption1,image2,caption2,image3,caption3) {
document.write("<TABLE WIDTH='100%'>");
document.write("  <TR> ");
document.write("<TD ALIGN='CENTER' WIDTH='33%'>");

document.write("<!--1-->");

document.write("<A CLASS='imageborder' HREF=\"javascript:ImageReq(window.location.href,'" + image1 + "') \"; OnMouseOver=\"return showMsg('" + caption1 + "')\">");
document.write("<IMG CLASS='imageWIN' ALT='keywords1' ALIGN='MIDDLE' HSPACE='10' VSPACE='15' BORDER='4' SRC='images/" + image1 + ".jpg'></A><BR>");
document.write("<A CLASS='download' HREF=\"javascript:ImageReq('" + image1 + "') \"; OnMouseOver=\"return showMsg('click to begin download')\">^ enlarge - download ^</A>");
document.write("</TD><TD ALIGN='CENTER' WIDTH='33%'>");

document.write("<!--2-->");

document.write("<A CLASS=\"imageborder\" HREF=\"javascript:ImageReq(window.location.href,'" + image2 + "') \"; OnMouseOver=\"return showMsg('" + caption2 + "')\">");
document.write("<IMG CLASS='imageWIN' ALT='keywords2' ALIGN='MIDDLE' HSPACE='10' VSPACE='15' BORDER='4' SRC='images/" + image2 + ".jpg'></A><BR>");
document.write("<A CLASS='download' HREF=\"javascript:ImageReq(window.location.href,'" + image2 + "') \"; OnMouseOver=\"return showMsg('click to begin download')\">^ enlarge - download ^</A>");
document.write("</TD><TD ALIGN='CENTER' WIDTH='33%'>");

document.write("<!--3-->");

document.write("<A CLASS=\"imageborder\" HREF=\"javascript:ImageReq(window.location.href,'" + image3 + "') \"; OnMouseOver=\"return showMsg('" + caption3 + "')\">");
document.write("<IMG CLASS='imageWIN' ALT='keywords3' ALIGN='MIDDLE' HSPACE='10' VSPACE='15' BORDER='4' SRC='images/" + image3 + ".jpg'></A><BR>");
document.write("<A CLASS='download' HREF=\"javascript:ImageReq(window.location.href,'" + image3 + "') \"; OnMouseOver=\"return showMsg('click to begin download')\">^ enlarge - download ^</A>");

document.write("</TD></TR></TABLE>");
						}
						
						
						
//
//PORTFOLIO IMAGE
//

function portImage(image1,caption1) {
document.write("<table width='388'  height='388' CELLSPACING='0' background='../../stock/imagel/" + image1 + ".jpg' border='0'  cellpadding='0' BGCOLOR='FFFFFF'><tr><td>");
document.write("<A CLASS='imageblack' HREF=''; OnMouseOver='return showMsg('" + caption1 + "')'>");
document.write("<IMG SRC='../../stock/images/catchL.gif' ALIGN=MIDDLE WIDTH='388' HEIGHT='388' HSPACE='0' VSPACE='0' ALT='keywords1' BORDER='0'></A>");
document.write("</td></tr></table>");
						}
						

//
//GALLERY IMAGE
//

function galleryImage(image1,caption1) {
document.write("<table width='388'  height='388' CELLSPACING='0' background='../stock/imagel/" + image1 + ".jpg' border='0'  cellpadding='0' BGCOLOR='FFFFFF'><tr><td>");
document.write("<A CLASS='imageblack' HREF=''; OnMouseOver='return showMsg('" + caption1 + "')'>");
document.write("<IMG SRC='../stock/images/catchL.gif' ALIGN=MIDDLE WIDTH='388' HEIGHT='388' HSPACE='0' VSPACE='0' ALT='alt1' BORDER='0'></A>");
document.write("</td></tr></table>");
						}

//
//FOOTER WRITER LEVEL 2 - Vagabond World
//

function footerVagabond ()	{
document.write("<CENTER>");
document.write("<TABLE><TR><TD ALIGN=CENTER><BR>");
document.write("<A CLASS='index' HREF='../../whatsnew.html'>what's new</A> | ");
document.write("<A CLASS='index' HREF='../../photography/index.html'>photography</A> | ");
document.write("<A CLASS='index' HREF='../../writer/index.html'>writer</A> | ");
document.write("<A CLASS='index' HREF='../../contact.html'>contact</A> | ");
document.write("<A CLASS='index' HREF='../../index.html'>thomasbachand.com</A></TD></TR>");
document.write("</TABLE></CENTER>");
document.write("<CENTER><P>&copy;2003 Thomas Bachand</CENTER>");
	}


//
//FOOTER WRITER LEVEL 2 - Grand Ambition
//

function footerGrand ()	{
document.write("<CENTER>");
document.write("<TABLE><TR><TD ALIGN=CENTER><BR>");
document.write("<A CLASS='index' HREF='../../whatsnew.html'>what's new</A> | ");
document.write("<A CLASS='index' HREF='../../photography/index.html'>photography</A> | ");
document.write("<A CLASS='index' HREF='../../writer/index.html'>writer</A> | ");
document.write("<A CLASS='index' HREF='../../contact.html'>contact</A> | ");
document.write("<A CLASS='index' HREF='../../index.html'>thomasbachand.com</A></TD></TR>");
document.write("</TABLE></CENTER>");
document.write("<CENTER><P>&copy;2003 Thomas Bachand</CENTER>");
	}

//
//TAHOE INDEX
//

function tahoeIndex() {
document.write("<BR><BR><BR>");
document.write("<CENTER>");
//document.write("<TABLE><TR><TD ALIGN=CENTER>");
document.write("<A HREF='1.html'>1</A> \&middot; ");
document.write("<A HREF='2.html'>2</A> \&middot; ");
document.write("<A HREF='3.html'>3</A> \&middot; ");
document.write("<A HREF='4.html'>4</A> \&middot; ");
document.write("<A HREF='5.html'>5</A> \&middot; ");
document.write("<A HREF='6.html'>6</A> \&middot; ");
document.write("<A HREF='7.html'>7</A> \&middot; ");
document.write("<A HREF='8.html'>8</A> \&middot; ");
//document.write("</TD></TR><TR><TD ALIGN='CENTER'>");
document.write("<A HREF='9.html'>9</A> \&middot; ");
document.write("<A HREF='10.html'>10</A> \&middot; ");
document.write("<A HREF='11.html'>11</A> \&middot; ");
document.write("<A HREF='12.html'>12</A> \&middot; ");
document.write("<A HREF='index.html'>proposal</A>");
//document.write("</TD></TR></TABLE>");
document.write("</CENTER>");
	}

//document.write("<A HREF='13.html'>13</A> \&middot; ");
//document.write("<A HREF='14.html'>14</A> \&middot; ");
//document.write("<A HREF='15.html'>15</A> \&middot; ");
//document.write("<A HREF='16.html'>16</A> \&middot; ");
//document.write("<A HREF='17.html'>17</A> \&middot; ");
//document.write("<A HREF='18.html'>18</A> \&middot; ");
//document.write("<A HREF='19.html'>19</A> &middot; ");
//document.write("<A HREF='20.html'>20</A> &middot; ");
//document.write("<A HREF='21.html'>21</A> &middot; ");
//document.write("<A HREF='22.html'>22</A> &middot; ");
//document.write("<A HREF='23.html'>23</A> &middot; ");
//document.write("<A HREF='24.html'>24</A> &middot; ");
//document.write("<A HREF='25.html'>25</A> &middot; ");

//
//FOOTER WRITER LEVEL 2 - Grand Ambition
//

function footerWeb ()	{
document.write("<CENTER>");
document.write("<TABLE><TR><TD ALIGN=CENTER><BR>");
document.write("<A CLASS='index' HREF='../whatsnew.html'>what's new</A> | ");
document.write("<A CLASS='index' HREF='../web/index.html'>web / graphic design</A> | ");
document.write("<A CLASS='index' HREF='../animation/index.html'>animation</A> | ");
document.write("<A CLASS='index' HREF='../photography/index.html'>photography</A> | ");
document.write("<A CLASS='index' HREF='../writer/index.html'>writer</A> | ");
document.write("<A CLASS='index' HREF='../contact.html'>contact</A> | ");
document.write("<A CLASS='index' HREF='../index.html'>thomasbachand.com</A></TD></TR>");
document.write("</TABLE></CENTER>");
document.write("<CENTER><P>&copy;2003 Thomas Bachand</CENTER>");
	}
