function addToCart( myName, myNumber, myPrice ) {
	var cart = document.getElementById("shoppingcart").getElementsByTagName("tbody")[0];
	var theRow = document.createElement("tr");
	var cell;
	cell = document.createElement("td");
	cell.appendChild(document.createTextNode(myName));
	theRow.appendChild( cell );
	cell = document.createElement("td");
	cell.appendChild(document.createTextNode(myNumber));
	theRow.appendChild( cell );
	cell.style.display = "none";
	cell = document.createElement("td");
	cell.appendChild(document.createTextNode(myPrice));
	theRow.appendChild( cell );
	cell = document.createElement("td");
	removeLink = document.createElement("a")
	removeLink.href="#"
	//removeLink.setAttribute("onClick","removeRow(this); return false;");
	removeLink.onclick=function(){removeRow(this);return false;}
	removeLink.appendChild(document.createTextNode("remove"));
	cell.appendChild(removeLink);
	theRow.appendChild( cell );
	cart.appendChild( theRow );
	cart.appendChild( document.createTextNode("\n") );
}

function removeRow( obj ) {
	var row = obj.parentNode.parentNode;
	row.parentNode.removeChild( row );
}

function makeCart() {
	var theForm = document.createElement("form");
	theForm.action = "https://www.paypal.com/cgi-bin/webscr";
	theForm.setAttribute("target", "_top");
	theForm.method = "post";
	
	var cart=document.getElementById("shoppingcart");
	var x = cart.getElementsByTagName('tr');
	theForm.appendChild(document.createTextNode("\n"));
	for( var i = 1; i < x.length; i++ ) {
		var y=x[i].getElementsByTagName('td');
		var child;
		  child = document.createElement("input");
		  child.name="item_name_" + i ;
		  child.value=y[0].innerHTML;
  		  child.type="hidden";
		theForm.appendChild( child );
		  child = document.createElement("input");
		  child.name="item_number_" + i;
		  child.value=y[1].innerHTML;
  		  child.type="hidden";
		theForm.appendChild( child );
		  child = document.createElement("input");
		  child.name="amount_" + i;
		  child.value=y[2].innerHTML;
  		  child.type="hidden";
		theForm.appendChild( child );
		  child = document.createElement("input");
		  child.name="quantity_" + i;
		  child.value="1";
		  child.type="hidden";
		theForm.appendChild( child );
		theForm.appendChild(document.createTextNode("\n"));
	}
	
	var child;
	  child = document.createElement("input");
	  child.name="cmd";
	  child.value="_cart";
  	  child.type="hidden";
	theForm.appendChild( child );
	theForm.appendChild(document.createTextNode("\n"));
	  child = document.createElement("input");
	  child.name="business";
	  child.value="FrankATuma@cs.com";
  	  child.type="hidden";
	theForm.appendChild( child );
	theForm.appendChild(document.createTextNode("\n"));
	  child = document.createElement("input");
	  child.name="upload";
	  child.value="1";
  	  child.type="hidden";
	theForm.appendChild( child );
	theForm.appendChild(document.createTextNode("\n"));
	  child = document.createElement("input");
	  child.name="Submit";
	  child.value="Check Out";
  	  child.type="Submit";
	//theForm.appendChild( child );
	theForm.appendChild(document.createTextNode("\n"));
		
	var theBody = document.getElementsByTagName('body')[0];
	theBody.appendChild(document.createTextNode("\n"));
	theBody.appendChild(theForm);
	theBody.appendChild(document.createTextNode("\n"));
	theForm.submit();
}