var Orders = {
	agree: function() {
		if ($('agreeCheckBox').checked) {
			$('agree').style.background = 'white';
			return true;
		}
		$('agree').style.background = 'yellow';
		return false;
	},
	
	placeOrder: function() {
		if (Orders.agree()) {
			Utils.updater('OrderCheckout', '/orders/placeOrder');
		} else {
			alert('Please check the agreement checkbox');
		}
	},
	
	abletrendDetail: function(pid) {
		Utils.cssWindow('/orders/abletrendDetail/'+pid, 'AbleTrend');
	},
	
	productLists: function(orderId) {
		Utils.cssWindow('/orders/productLists/'+orderId, 'Details');
	}
}
	