function fetchCartForm(_itemName, _itemNumber, _itemAmount) {
    var itemName, itemNumber, itemAmount;
itemName = _itemName;
itemNumber = _itemNumber;
itemAmount = _itemAmount;
  var myContent = '<td><form action="https://www.paypal.com/cgi-bin/webscr" method="post">';
  myContent += '<input type="image" class="cartButton" src="https://www.paypal.com/en_US/i/btn/btn_cart_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">';
  myContent += '<img alt="" class="cartButton" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">';
  myContent += '<input type="hidden" name="add" value="1">';
  myContent += '<input type="hidden" name="cmd" value="_cart">';
  myContent += '<input type="hidden" name="business" value="sandym@templeisraelnc.org">';
  myContent += '<input type="hidden" name="shipping" value="0.00">';
  myContent += '<input type="hidden" name="no_shipping" value="1">';
  myContent += '<input type="hidden" name="return" value="http://www.templeisraelnc.com/donations/response.html">';
  myContent += '<input type="hidden" name="currency_code" value="USD">';
  myContent += '<input type="hidden" name="tax" value="0.00">';
  myContent += '<input type="hidden" name="lc" value="US">';
  myContent += '<input type="hidden" name="bn" value="PP-ShopCartBF">';
  myContent += '<input type="hidden" name="shopping_url" value="http://www.templeisraelnc.com/donations/PayPledge.html">';
  myContent += '<input type="hidden" name="item_name" value="' + itemName + '">';
  myContent += '<input type="hidden" name="item_number" value="' + itemNumber + '">';
myContent += '<input type="hidden" name="amount" value="' + itemAmount + '">';
myContent += '</form></td>';
  return myContent;
}

function getViewCart() {
    var viewCart = '<form action="https://www.paypal.com/cgi-bin/webscr" method="post">'
      + '<input type="hidden" name="cmd" value="_cart">'
      + '<input type="hidden" name="business" value="sandym@templeisraelnc.org">'
      + '<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_viewcart_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">'
      + '<input type="hidden" name="display" value="1">'
      + '<input type="hidden" name="shopping_url" value="http://www.templeisraelnc.com/donations/PayPledge.html">'
      + '</form>';
  return viewCart;
}

/* Visit http://www.yaldex.com/ for full source code
and get more free JavaScript, CSS and DHTML scripts! */
function filterNum(str) {
re = /^\$|,/g;
// remove "$" and ","
return str.replace(re, "");
}


