// All HTML, JavaScript & text (c) 2006 Compelling Press. All rights reserved.
// http://www.compellingpress.com/

function book_buyitnow(bookname, authorname, itemcode, storeid, price)
{
	document.write(
			'<form style="margin-bottom:1em; " action=http://www.romancart.com/cart.asp method=post onSubmit="javascript:__utmLinkPost(this);">\n'
+				'<table border="2" cellspacing="0" cellpadding="8" style="border-style:outlier; width:14em; margin-bottom:0px">\n'
+					'<tr style="height:100%;">\n'
+						'<td>\n'
+							'<div class="yellow" align="center">\n'
+	bookname   + '<br>\n'
+	authorname + '<br>\n'
+	'<input type=hidden name=itemcode    value="' + itemcode + '">\n'
+	'<input type=hidden name=storeid     value="' + storeid  + '">\n'
+	'<input type=hidden name=displayCart value="yes">\n'
+	'<input type=hidden name=clearbasket value="yes">\n'
+	price      + '<br>\n'
+				 '<br>\n'
+	'<input type=submit value="&nbsp;&nbsp;Click Here\nTo Buy It Direct!">\n'
+							'</div>\n'
+						'</td>\n'
+					'</tr>\n'
+				'</table>\n'
+			'</form>\n'
+	'</td>'
+	'<td valign="top">'
+		'<div style="color:#F0A040; margin:1em; " align="center">\n'
+			'<i>Shopping cart<br>software supplied<br>by</i> RomanCart<br>'
+			'<br>'
+			'<i>Payments securely<br>transferred via<br></i>PayPal'
+		'</div>'
	);
}

function book_buyitviaPayPal()
{
   if (0)
   {
	document.write(
'		<td><img src="../images/yr_dottedarrow.gif" alt="" border="0"></td>\n'
+' 		<td><br /><img src="../images/uk-reprinting.gif"></td>\n'
+' 		<td><br /><img src="../images/eu-reprinting.gif"></td>\n'
+' 		<td><br /><img src="../images/world-reprinting.gif"></td>\n');
   }
   else
   {
	document.write(
'		<td><img src="../images/yr_dottedarrow.gif" alt="" border="0"></td>\n'
+' 		<td><br />\n'
+'<form action="https://www.paypal.com/cgi-bin/webscr" method="post">'
+'<input type="hidden" name="cmd" value="_s-xclick">'
+'<input type="hidden" name="hosted_button_id" value="TJPWVU3U8YXS8">'
+'<input type="image" src="http://www.compellingpress.com/images/uk-buynow.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online.">'
+'<img alt="" border="0" src="https://www.paypal.com/en_GB/i/scr/pixel.gif" width="1" height="1">'
+'</form>\n'
+'		</td>\n'
	);

	document.write(
'		<td><br />\n'
+'<form action="https://www.paypal.com/cgi-bin/webscr" method="post">'
+'<input type="hidden" name="cmd" value="_s-xclick">'
+'<input type="hidden" name="hosted_button_id" value="NKULTU7PYGXJ6">'
+'<input type="image" src="http://www.compellingpress.com/images/eu-buynow.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online.">'
+'<img alt="" border="0" src="https://www.paypal.com/en_GB/i/scr/pixel.gif" width="1" height="1">'
+'</form>\n'
+'		</td>\n'
	);
	
	document.write(
'		<td><br />\n'
+'<form action="https://www.paypal.com/cgi-bin/webscr" method="post">'
+'<input type="hidden" name="cmd" value="_s-xclick">'
+'<input type="hidden" name="hosted_button_id" value="6HM83ALBWYT9E">'
+'<input type="image" src="http://www.compellingpress.com/images/world-buynow.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online.">'
+'<img alt="" border="0" src="https://www.paypal.com/en_GB/i/scr/pixel.gif" width="1" height="1">'
+'</form>\n'
+'		</td>\n'
	);
	
	}
}
