function wantit(){


//get pic source
picsrc=document.images[1].src
picsrctotal=picsrc

//pull out pic file name ******
var howmany = 0
separatesrc = picsrc.split("/")
howmany=separatesrc.length


picname=separatesrc[separatesrc.length-1]
picname=picname.substr(0,picname.length-4)
picsrc=""
for (i = 0; i <= separatesrc.length-2; i++)
{
picsrc= picsrc + separatesrc[i] + "/"
}
picsrc = picsrc + "t_" + separatesrc[i]   



//create page
//*********************************************************************
//*********************************************************************


document.write('   <head>')
document.write('<title>Digital Eclectic Images - David Vandre Photography</title>')

//*Write Javascript to stop right-clicking
document.writeln('<script >') 
document.write('var clickmessage=\"For more information')
document.write(', please contact')
document.write(' David Vandre\"')
document.writeln('')
document.writeln('function disableclick(e) {')
document.writeln(' if (document.all) {')
document.writeln(' if (event.button==2||event.button==3) {')
document.writeln(' if (event.srcElement.tagName==\"IMG\"){')
document.writeln(' alert(clickmessage);')
document.writeln(' return false;')
document.writeln(' }')
document.writeln(' }')
document.writeln(' }')
document.writeln(' else if (document.layers) {')
document.writeln(' if (e.which == 3) {')
document.writeln(' alert(clickmessage);')
document.writeln(' return false;')
document.writeln(' }')
document.writeln(' }')
document.writeln(' else if (document.getElementById){')
document.writeln(' if (e.which==3&&e.target.tagName==\"IMG\"){')
document.writeln(' alert(clickmessage)')
document.writeln(' return false')
document.writeln(' }')
document.writeln(' }')
document.writeln(' }')
document.writeln('function associateimages(){')
document.writeln(' for(i=0;i<document.images.length;i++)')
document.writeln(' document.images[i].onmousedown=disableclick;')
document.writeln(' }')
document.writeln('if (document.all)')
document.writeln(' document.onmousedown=disableclick')
document.writeln(' else if (document.getElementById)')
document.writeln(' document.onmouseup=disableclick')
document.writeln(' else if (document.layers)')
document.writeln(' associateimages()')
document.writeln(' </script>')
//****************************End Javascript to prevent right-click copy







document.write('<link href=\"http://www.digitaleclecticimages.com/stylesheets/master_style.css\" rel=\"stylesheet\" type=\"text/css\" />')
document.write('<style type=\"text/css\">')
document.write('<!--')
document.write('body {')
document.write('	background-color: #666666;')
document.write('}')
document.write('.style6 {font-size: 18px}')
document.write('.style7 {font-size: 16; }')
document.write('.style5 {font-family: Arial, Helvetica, sans-serif}')
document.write('.style9 {font-size: 24px; color: #FFFFFF; font-weight: bold; font-family: Arial, Helvetica, sans-serif; }')
document.write('.style13 {font-family: Arial, Helvetica, sans-serif; font-weight: bold; color: #FFFFFF; }')
document.write('-->')
document.write('</style></head>')
document.write('')
document.write('<body>')
document.write('<div align=\"center\">')
document.write('<meta http-equiv=\"imagetoolbar\" content=\"no\" />')
document.write('<meta name=\"mssmarttagspreventparsing\" content=\"true\" />')
document.write('<style type=\"text/css\">')
document.write('<!--')
document.write('body {')
document.write('	background-color: #666666;')
document.write('}')
document.write('-->')
document.write('</style>')
document.write('<link href=\"http://www.digitaleclecticimages.com/stylesheets/master_style.css\" rel=\"stylesheet\" type=\"text/css\" />')
document.write('<style type=\"text/css\">')
document.write('<!--')
document.write('.style1 {')
document.write('	font-family: Arial, Helvetica, sans-serif;')
document.write('	font-size: 18px;')
document.write('}')
document.write('.style2 {font-size: 14px}')
document.write('-->')
document.write('</style>')
document.write('<table width=\"630\" border=\"0\" align=\"center\" bgcolor=\"#666666\">')
document.write(' <tr>')
document.write('   <td width=\"624\" height=\"20\" align=\"center\">')
document.write('   <div align=\"center\" class=\"title\"><strong>')
document.write('Digital Eclectic Images</strong>&nbsp;')
document.write('<img src=\"http://www.digitaleclecticimages.com/images/site_images/t_logo1_2.jpg\" ')
document.write('   width=\"24\" height=\"21\" align=\"absmiddle\" />&nbsp;<strong>David Vandr&eacute; </strong>')
document.write('Photography </div></td>')
document.write(' </tr>')
document.write(' <tr>')
document.write('   <td height=\"5\" align=\"center\"><hr align=\"center\" width=\"500\" /></td>')
document.write(' </tr>')
document.write(' <tr>')
document.write('   <td align=\"center\"><a href=\"http://www.digitaleclecticimages.com/index.htm\" ')
document.write('class=\"header_menu\">Home</a><strong>&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;')
document.write('</strong><a href=\"http://www.digitaleclecticimages.com/photogallery.htm\" class=\"header_menu\">Photo Galleries</a>')
document.write('<strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</strong>')
document.write('<a href=\"http://www.digitaleclecticimages.com/prints.htm\" class=\"header_menu\">Prints</a>')
document.write('<strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</strong>')
document.write('<a href=\"http://www.digitaleclecticimages.com/about.htm\" class=\"header_menu\">About</a>')
document.write('<strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</strong>')
document.write('<a href=\"http://www.digitaleclecticimages.com/contact.htm\" class=\"header_menu\">Contact</a>')
document.write('<strong> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ')
document.write('<span class=\"style1\">&nbsp;</span></strong><span class=\"style1\">')
document.write('<span class=\"style2\">')
document.write('<a href=\"http://www.digitaleclecticimages.com/links.htm\" class=\"header_menu\">Links</a>')
document.write('<strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;')
document.write('</strong><a href=\"http://www.digitaleclecticimages.com/sitemap.htm\" class=\"header_menu\">Site Map</a>')
document.write('<strong><a href=\"#\" class=\"header_menu\"></a>&nbsp;&nbsp;</strong></span></span></td>')
document.write(' </tr>')
document.write('</table><!-- #EndLibraryItem --><br />')
document.write('<table width=\"654\" border=\"1\" cellpadding=\"0\" ')
document.write('   cellspacing=\"0\" bordercolor=\"#FFFFFF\" bgcolor=\"#999999\">')
document.write(' <tr>')
document.write('   <td colspan=\"2\"><div align=\"center\" class=\"style9\">Purchase Order Form </div></td>')
document.write('   </tr>')
document.write(' <tr>')

document.write('   <td  valign=\"top\"><div align=\"left\"><span class=\"master_text\"><strong>')
document.write('&nbsp;&nbsp;You have selected:&nbsp;&nbsp;&nbsp;')



document.write(" " + picname)

document.write('<br></strong></span>')	
//place thumbnail of selected pic on the page			   
document.write('<div align=\"center\"><img vspace=3 src=\"')
document.write(picsrctotal)
document.write(' \"></div>')	
			   
			   
document.write('</div></td>')
document.write(' </tr>')
document.write('</table>')
document.write(' <table width=\"650\"  border=\"1\" ')
document.write('   align=\"center\" cellpadding=\"0\" cellspacing=\"0\" bordercolor=\"#FFFFFF\" bgcolor=\"#999999\">')
document.write('   <tr>')
document.write('     <td width=\"650\">')
//paypal code  ******************************************************************************************  paypal code***//**
document.write('<form name=\"_xclick\" method=\"post\" action=\"https://www.paypal.com/us/cgi-bin/webscr\">')
document.write('<input type=\"hidden\" name=\"cmd\" value=\"_xclick\">')
document.write('<input type=\"hidden\" name=\"business\" value=\"david.vandre@gmail.com\">')
document.write('<input type=\"hidden\" name=\"currency_code\" value=\"USD\">')
//************    set US as default nation in select Country option on Paypal site
document.write('<input type=\"hidden\" name=\"lc\" value=\"US\">')
document.write('<input type=\"hidden\" name=\"bn\" value=\"PP-BuyNowBF\">')



//*****   put picture name in a hidden field so it can be used to concatenate with paper finish
//*****   and allow user to change their mind, clicking matte, glossy, and then matte:  the pic name
//*****   is picked up from here, so that we don't get ak01matteglossymatteglossy  if they change their mind
document.write('<input type=\"hidden\" name=\"workname\" value=\"')
document.write(picname)
document.write('\">')
//*******   put size, when selected, in this field to concatenate with picture name and paper finish
document.write('<input type=\"hidden\" name=\"picsize\" value=\" 8.5 x 11 inches\">')
//*******   put paper finish , when selected, in this field to concatenate with picture name and size
document.write('<input type=\"hidden\" name=\"paperfinish\" value=\" glossy\">')

//****  Item name concatenated with default size and paper finish:
defaultname = _xclick.workname.value+' printed on '+_xclick.paperfinish.value+", "+_xclick.picsize.value;

document.write('<input type=\"hidden\" name=\"item_name\" value=\"')
document.write(defaultname)
document.write('\">')



document.write('<input type=\"hidden\" name=\"amount\" value=\"50\" >')
//*****  tell Paypal not to charge for shipping
document.write('<input type=\"hidden\" name=\"no_shipping\" value=\"2\">')
//*****   DEI page user will return to after completing Paypal order
document.write('<input type=\"hidden\" name=\"return\" value=\"http://www.digitaleclecticimages.com/thankyou.htm\">')
//*****   DEI page user will return to if they choose to cancel the Paypal order
document.write('<input type=\"hidden\" name=\"cancel_return\" value=\"http://www.digitaleclecticimages.com/cancelpayment.htm\">')


document.write('<input type=\"hidden\" name=\"item_number\" value=\"1.0\">')




//start of paypal option fields


document.write('<br />')
document.write('<table width=\"650\" border=\"1\" align=\"center\" cellpadding=\"2\">')
document.write('<tr>')
document.write(' <td colspan=\"2\" valign=\"top\"><div align=\"center\" class=\"style9\">Ordering Information </div></td>')
document.write(' </tr>')
document.write('<tr>')
document.write(' <td colspan=\"2\" valign=\"top\" class=\"style13\">')
document.write('<p>To order a print, either:</p><ul><li>use the form below to order and pay by credit card through')
document.write(' PayPal</li><li>or go to the <a href=\"http://www.digitaleclecticimages.com/prints.htm\" class=\"master_text\">PRINTS</a> page ')
document.write(' for other options, to order by phone or email and pay by check or money order<p></li></td>')



document.write('</tr>')
document.write('<tr>')
document.write(' <td height=\"183\" colspan=\"2\" valign=\"top\"><span class=\"style13\">Select Size: ')
document.write('   </span>    <table width=\"316\" border=\"1\" align=\"center\" cellpadding=\"0\" cellspacing=\"1\">')
document.write('     <tr>')
document.write('       <td width=\"39\" class=\"style5\">&nbsp;</td>')
document.write('       <td width=\"158\" height=\"31\" class=\"style5\"><div align=\"left\">')
document.write('   <span class=\"style13\">Size</span></div></td>')
document.write('       <td width=\"107\" height=\"31\" class=\"style5\">')
document.write('   <div align=\"left\"><span class=\"style13\">Price </span></div></td>')
document.write('     </tr>')
document.write('     <tr>')
document.write('       <td width=\"39\" class=\"style5\">')

document.write('<input name=\"size\" type=\"radio\" value=\"50\" checked ')
//********Javascript to put value in paypal amount  field	
//********Javascript to put value in paypal amount field, update DEI size and update paypal name

document.write('onclick=\"_xclick.amount.value=this.value;_xclick.picsize.value=\'8.5 x 11 inches\';_xclick.item_name.value=_xclick.workname.value+\' printed on \'+_xclick.paperfinish.value+\', \'+_xclick.picsize.value;\"')   
document.write('/></td>')

document.write('<td height=\"35\" class=\"style13\"><div align=\"left\">')
document.write('<span class=\"style13\">8.5 x 11 inches</span></div></td>')
document.write('       <td height=\"35\" class=\"style13\"><div align=\"left\"><span class=\"style13\">$ 50 </span></div></td>')
document.write('     </tr>')
document.write('     <tr>')
document.write('       <td width=\"39\" class=\"style5\"><input name=\"size\" type=\"radio\" value=\" 75\" ')
//********Javascript to put value in paypal amount field, update DEI size and update paypal name
document.write('onclick=\"_xclick.amount.value=this.value;_xclick.picsize.value=\'11x14 inches\';_xclick.item_name.value=_xclick.workname.value+\' printed on \'+_xclick.paperfinish.value+\', \'+_xclick.picsize.value;\"')  
document.write('/></td>')

document.write('       <td height=\"35\" class=\"style13\"><div align=\"left\">')
document.write('   <span class=\"style13\">11 x 14 inches</span></div></td>')
document.write('       <td height=\"35\" class=\"style13\"><div align=\"left\"><span class=\"style13\">$ 75</span></div></td>')
document.write('     </tr>')
document.write('     <tr>')
document.write('       <td width=\"39\" class=\"style5\"><input name=\"size\" type=\"radio\" value=\"100\" ')
//********Javascript to put value in paypal amount field, update DEI size and update paypal name
document.write('onclick=\"_xclick.amount.value=this.value;_xclick.picsize.value=\'11 x 17 inches\';_xclick.item_name.value=_xclick.workname.value+\' printed on \'+_xclick.paperfinish.value+\', \'+_xclick.picsize.value;\"') 
document.write('/></td>')

document.write('       <td height=\"35\" class=\"style13\"><div align=\"left\">')
document.write('   <span class=\"style13\">11 x 17 inches</span></div></td>')
document.write('       <td height=\"35\" class=\"style13\"><div align=\"left\">')
document.write('   <span class=\"style13\"> $100</span></div></td>')
document.write('     </tr>')
document.write('     <tr>')
document.write('       <td width=\"39\" class=\"style5\"><input name=\"size\" type=\"radio\" value=\"125\" ')
//********Javascript to put value in paypal amount field, update DEI size and update paypal name
document.write('onclick=\"_xclick.amount.value=this.value;_xclick.picsize.value=\'13 x 19 inches\';_xclick.item_name.value=_xclick.workname.value+\' printed on \'+_xclick.paperfinish.value+\', \'+_xclick.picsize.value;\"') 
document.write('/></td>')

document.write('       <td height=\"35\" class=\"style13\"><div align=\"left\">')
document.write('   <span class=\"style13\">13 x 19 inches</span></div></td>')
document.write('       <td height=\"35\" class=\"style13\"><div align=\"left\"><span class=\"style13\">$125</span></div></td>')
document.write('     </tr>')
document.write('   </table></td>')
document.write(' </tr>')
//*************shipping
//*****  paypal's indicators for the field are os0 and on0
document.write(' <tr>')
 document.write('   <td><span class=\"master_text\"><strong>')
document.write('<input type="hidden" name="on0" value="Shipping Method">')
document.write('<span class=\"style13\">Select shipping method:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;')
document.write('    <span class=\"style13\">UPS </span>')
document.write('            <input name=\"os0\" type=\"radio\" value=\"UPS \"  checked />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;')
document.write('            <span class=\"style13\"> FedEx </span>')
document.write('            <input name=\"os0\" type=\"radio\" value=\"FedEx\" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;')
document.write('            <span class=\"style13\">USPS</span>')
document.write('            <input name=\"os0\" type=\"radio\" value=\"USPS\" /></strong></span>')
document.write('    </div></td>')
document.write('  </tr>')

//************* ship rolled or flat?
//*****  paypal's indicators for the field are os1 and on1
document.write('<tr>')
document.write(' <td><span class=\"style13\">Select packaging preference:&nbsp;&nbsp;&nbsp;&nbsp; ')
document.write(' <input type=\"hidden\" name=\"on1\" value=\"Packaging preference\">')
document.write(' Flat')
document.write('         <input name=\"os1\" type=\"radio\" value=\"Flat\"  checked/>')
document.write('  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Rolled (tube)')
document.write('     </span>')
document.write('   <input name=\"os1\" type=\"radio\" value=\"Rolled (tube)\" />')
document.write(' </div></td>')
document.write('</tr>')


//*************Paper finish is concatenated onto the name
document.write('<tr>')
document.write(' <td><span class=\"style13\">Select Paper Finish:&nbsp;&nbsp;&nbsp;&nbsp; ')
//**************   Glossy is the default
document.write(' &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Glossy')
document.write('<input name=\"finish\" type=\"radio\" value=\"glossy\" checked ')
document.write('onclick=\"_xclick.paperfinish.value=this.value;_xclick.item_name.value=_xclick.workname.value+\' printed on \'+_xclick.paperfinish.value+\', \'+_xclick.picsize.value;\"')

document.write('/>')
document.write('  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Matte')
document.write('     </span>')
document.write('   <input name=\"finish\" type=\"radio\" value=\"matte\" ')
//****************************************************************************************
document.write('onclick=\"_xclick.paperfinish.value=this.value;_xclick.item_name.value=_xclick.workname.value+\' printed on \'+_xclick.paperfinish.value+\', \'+_xclick.picsize.value;\"')
document.write('  />')
document.write(' </div></td>')
document.write('</tr>')








document.write('<tr> ')
document.write('<td width=\"284\"><div align=\"left\" class=\"master_text\">')
document.write('<input type=\"submit\" name=\"Submit order through PayPal\"    value=\"Submit order through PayPal\">')
//document.write('<input type=\"reset\" name=\"Reset\" value=\"Reset\" />')


//Paypal graphic code********************************************
document.write('<center> ')
document.write('<!-- PayPal Logo --><table border=\"0\" cellpadding=\"10\" cellspacing=\"0\" align=\"center\"><tr><td align=\"center\"></td></tr>')
document.write('<tr><td align=\"center\">')
document.write('<a href=\"#\" onclick=\"javascript:window.open(\'https://www.paypal.com/cgi-bin/webscr?cmd=xpt/popup/OLCWhatIsPayPal-outside\',\'olcwhatispaypal\',\'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=no, width=400, height=350\');\">')
document.write('<img  src=\"https://www.paypal.com/en_US/i/bnr/horizontal_solution_PP.gif\" border=\"0\" alt=\"Find out more about Paypal\"></a></td></tr></table>')
document.write('<!-- PayPal Logo -->')
document.write('</center> ')




document.write('</td>')
document.write(' </tr>')

document.write(' </table>')



/



document.write('</form> ')
document.write('</div>')


document.write('</p>')

document.write('  <p>&nbsp;</p>')
document.write('</div>')
document.write('</body>')
document.write('</html>')
document.close()

}
