
ajaxEngine.registerRequest('updateOps','/ajax/shop_prod_ops.php');
ajaxEngine.registerAjaxElement('options');
ajaxEngine.registerAjaxElement('prices');
	
Rico.Corner.round('addcart');
	
function updateOps (prod,select_num) {
	
	var allThings = this.document.optform.length;
	allThings=allThings-3;
	var opts = new Array();
	var product = prod;
	var tier = select_num;
	for (i=0; i<allThings; i++) {
		var other = this.document.optform[i].options[document.optform[i].selectedIndex].value;
		opts[i]=other;
	 }
	
	 ajaxEngine.sendRequest('updateOps',
							"o=" + opts,
							 "p=" + product,
							 "t=" + tier);
}