	function postageDetails (a, b, c, d, e, f, g, h) {
		this.id = a;
		this.country = b;
		this.base_rate = c;
		this.add_rate = d;
		this.use_special_del = e;
		this.special_time = f;
		this.special_price = g;
		this.free = h;
	}

	function prodDetails (a, b, c) {
		this.id = a;
		this.price = b;
		this.weight = c;
	}
	
	function calculatePrices () {
		var country_id = document.getElementById('country_ddl').selectedIndex;
		var selected_product_id = document.getElementById('product_id_ddl').selectedIndex;
		var base_rate = parseFloat (postage[country_id].base_rate);
		var add_rate = parseFloat (postage[country_id].add_rate);
		var free = parseFloat (postage[country_id].free);
		
		var selected_weight = parseFloat (prod[selected_product_id].weight);
		var selected_price = parseFloat (prod[selected_product_id].price);
		
		document.getElementById('price').innerHTML = (prod[selected_product_id].price);

		var postage_total = base_rate + ( parseInt(selected_weight/65) * add_rate);
		
		if (selected_price > free) {
			//' free post!
			postage_total = 0;
		}

		document.getElementById('postage_html').innerHTML = '&nbsp;Postage: ' + String.fromCharCode(163) + postage_total.toFixed(2);
	}
	
	var prod = new Array ();
	var postage = new Array ();
