//javascript for the post and packaging details
	//prices
	//IF YOU CHANGE THESE FIGURES - UPDATE PandPClass.php
	var p_and_p = new Array( new Array( 0, 0, 0 ),
								new Array( 1, 100, 0.90 ),
								new Array( 101, 250, 1.62 ),
								new Array( 251, 500, 2.14 ),
								new Array( 501, 750, 2.65 ),
								new Array( 751, 1000, 3.25 ),
								new Array( 1001, 1250, 4.45 ),
								new Array( 1251, 1500, 5.15 ),
								new Array( 1501, 1750, 5.85 ),
								new Array( 1751, 2000, 6.55 ),
								new Array( 2001, 4000, 8.22 ),
								new Array( 4001, 6000, 11.02 ),
								new Array( 6001, 9999999, 13.82 )
							);
		
	function newPPCost( total_weight ){
		for( var i = 0; i < p_and_p.length; i++ ){
			if( p_and_p[ i ][ 0 ] <= total_weight && p_and_p[ i ][ 1 ] >= total_weight )
				return p_and_p[ i ][ 2 ];
		}
		
		//if the order is over £100,000 then return the maximum amount and rejoice
		return p_and_p[ p_and_p.length - 1 ][ 2 ];
	}
	