<!--
/*
function submithidden(formref) {	
formref.action = 'https:\/\/www.paypal.com\/cgi-bin\/webscr';	
formref.cmd.value = '_cart';	
var name = "billing";	
var at = "@";	
var url = "bravenewniche.com";	
formref.business.value = name + at + url;
}
*/

function submithiddenbuynow(formref) {	
formref.action = 'https:\/\/www.paypal.com\/cgi-bin\/webscr';	
formref.cmd.value = '_xclick';	
//var name = "billing";	
//var at = "@";	
//var url = "bravenewniche.com";	
//formref.business.value = name + at + url;
}

function includeEmail() {
var f = document.PayPalForm;
var name = "billing";
var at = "@";
var url = "bravenewniche.com";
f.business.value = name + at + url;
return true;
}

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.whitneymcmillan.com/program-thanks/">');
//document.write ('<input type="hidden" name="cancel_return" value="http://www.bnnmediacoaching.com/pages/services/cancel.php">');
//document.write ('<input type="hidden" name="cn" value="">');
document.write ('<input type="hidden" name="currency_code" value="USD">');
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 ('<input type="hidden" name="handling_cart" value="">');
document.write ('</form>');
}

function buyNowButtonBuilder(productName,productPrice,productNote) {
document.write ('<form style="padding: 0; border: 0; margin: 0;" target="paypal" method="post" name="PayPalForm" onsubmit="submithiddenbuynow(this)">');
//document.write ('<input type="text" name="promo" maxlength="8" size="9"><span id="promotitle">If you have a promotional code, enter it here</span><br>');
document.write ('<input type="hidden" name="cmd" value="_xclick">');
document.write ('<input type="hidden" name="lc" value="CA">');
document.write ('<input type="hidden" name="business" value="DJUBZAU27HFLE">');
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="item_number" value="' + productNote + '">');
document.write ('<input type="hidden" name="amount" value="' + productPrice + '">');
document.write ('<input type="hidden" name="return" value="http://www.whitneymcmillan.com/program-thanks/">');
//document.write ('<input type="hidden" name="cancel_return" value="http://www.bnnmediacoaching.com/pages/services/cancel.php">');
document.write ('<input type="hidden" name="currency_code" value="USD">');
document.write ('<input type="hidden" name="bn" value="PP-BuyNowBF:btn_buynowCC_LG.gif:NonHosted">');
document.write ('<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">');
document.write ('<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">');
document.write ('<input type="hidden" name="no_shipping" value="2">');
document.write ('<input type="hidden" name="no_note" value="1">');
document.write ('<input type="hidden" name="handling" value="">');
document.write ('</form>');
}


-->
