function processStore(form)
{		
	//var elem = document.getElementById('frmMain').elements;
	var elem = form.elements;
	var count = 1;
	
	//var price = $(Obj).parent('tr').find('span.price').text();
	
	for(var i = 0; i < elem.length; i++)
	{
		if (elem[i].type == "text" && elem[i].value > 0 && elem[i].name != "total")
		{
			var Obj = elem[i].parentNode.parentNode;
			var price = $(Obj).find('span.price').text();
			var updates = $(Obj).find('span.updates').text();
			
			//Quantity
			//	itemName = itemName + "\n" + elem[i].name
			var input = document.createElement("input");
			input.setAttribute("type", "hidden");
			input.setAttribute("name", "quantity_"+count); //paypal special value
			input.setAttribute("value", elem[i].value); //keywork on webstore
			form.appendChild(input);					
			
			//Item Name
			var input = document.createElement('input');					
			input.setAttribute("type", "hidden");
			input.setAttribute("name", "item_name_"+count);
			input.setAttribute("value", elem[i].name);
			form.appendChild(input);

			//Item Number
			var input = document.createElement('input');					
			input.setAttribute("type", "hidden");
			input.setAttribute("name", "item_number_"+count);
			input.setAttribute("value", elem[i].id);
			form.appendChild(input);				
			
			//Amount
			var input = document.createElement('input');					
			input.setAttribute("type", "hidden");
			input.setAttribute("name", "amount_"+count);
			input.setAttribute("value", price);
			form.appendChild(input);					
			
			//License Length
			
			//On0
			var input = document.createElement('input');					
			input.setAttribute("type", "hidden");
			input.setAttribute("name", "on0_"+count);
			input.setAttribute("value", "Free Updates");
			form.appendChild(input);		
			
			//Os0
			var input = document.createElement('input');					
			input.setAttribute("type", "hidden");
			input.setAttribute("name", "os0_"+count);
			input.setAttribute("value", updates);
			form.appendChild(input);			

			count = count + 1;
		}
	}
	
	if (count == 1) //no items added to purchase
	{
		$('#total').qtip({
		   content: 'Select One Or More Items To Purchase',
		   position: {
			  corner: {
				 target: 'topLeft',
				 tooltip: 'bottomLeft'
			  }
		   },
		   show: {
				when: false,
				ready: true
			},
		   style: { 
				name: 'cream',
				tip: true
		   }
		});
		return false; //don't go to paypal page
	}
	else
		return true; //go to paypal page
		
	
	//form.item_name.value = itemName;
	//form.amount.value = form.total.value;

}
