<!--

function submithidden(formref) {
	formref.action = 'https:\/\/www.paypal.com\/cgi-bin\/webscr';
	formref.cmd.value = '_cart';
	formref.business.value = 'info@diannabonder.com';
}


function submithiddenbuynow(formref) {
	formref.action = 'https:\/\/www.paypal.com\/cgi-bin\/webscr';
	formref.cmd.value = '_xclick';
	formref.business.value = 'info@diannabonder.com';
}


function includeEmail() {

var f = document.PayPalForm;
var name = "info";
var at = "@";
var url = "diannabonder.com";
f.business.value = name + at + url;
return true;

}


function viewCart() {

document.write('<form style="padding: 0; border: 0; margin: 0;" target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">');

document.write('<input type="hidden" name="cmd" value="_cart">');

document.write('<input type="hidden" name="business" value="info@diannabonder.com">');

document.write('<input type="image" src="https://www.paypal.com/en_US/i/btn/view_cart_02.gif" border="0" name="submit" alt="Make payments with PayPal - it\'s fast, free and secure!">');

document.write('<input type="hidden" name="display" value="1"></form>');

}


function buttonBuilder(productName,productPrice) {

document.write ('<form style="padding: 0; border: 0; margin: 0;" target="paypal" method="post" name="PayPalForm" onsubmit="submithidden(this)">');
document.write ('<input type="hidden" name="cmd" value="">');
document.write ('<input type="hidden" name="business" value="">');
document.write ('<input type="hidden" name="item_name" value="' + productName + '">');
document.write ('<input type="hidden" name="amount" value="' + productPrice + '">');
document.write ('<input type="hidden" name="return" value="http://www.diannabonder.com/pages/store/thanks.php">');
document.write ('<input type="hidden" name="cancel_return" value="http://www.diannabonder.com/pages/store/cancel.php">');
//document.write ('<input type="hidden" name="cn" value="">');
document.write ('<input type="hidden" name="currency_code" value="CAD">');
document.write ('<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but22.gif" border="0" vspace="3" hspace="3" name="submit" alt="Make payments with PayPal - it"s fast, free and secure!">');
document.write ('<input type="hidden" name="add" value="1">');
document.write ('<input type="hidden" name="bn" value="PP-ShopCartBF">');
document.write ('<input type="hidden" name="no_shipping" value="2">');
document.write ('<input type="hidden" name="no_note" value="1">');
document.write ('</form>');

}


function buttonBuyNow(productName,productPrice) {

document.write ('<form style="padding: 0; border: 0; margin: 0;" target="paypal" method="post" name="PayPalBuyNow" onsubmit="submithiddenbuynow(this)">');
document.write ('<input type="hidden" name="cmd" value="">');
document.write ('<input type="hidden" name="business" value="">');
document.write ('<input type="hidden" name="undefined_quantity" value="1">');
document.write ('<input type="hidden" name="item_name" value="' + productName + '">');
document.write ('<input type="hidden" name="amount" value="' + productPrice + '">');
document.write ('<input type="hidden" name="return" value="http://www.diannabonder.com/pages/store/thanks.php">');
document.write ('<input type="hidden" name="cancel_return" value="http://www.diannabonder.com/pages/store/cancel.php">');
//document.write ('<input type="hidden" name="cn" value="">');
document.write ('<input type="hidden" name="currency_code" value="CAD">');
document.write ('<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but23.gif" border="0" vspace="3" hspace="3" name="submit" alt="Make payments with PayPal - it"s fast, free and secure!">');
document.write ('<input type="hidden" name="add" value="1">');
document.write ('<input type="hidden" name="lc" value="CA">');
document.write ('<input type="hidden" name="bn" value="PP-BuyNowBF">');
document.write ('<input type="hidden" name="no_shipping" value="2">');
document.write ('<input type="hidden" name="no_note" value="1">');
document.write ('</form>');

}

-->