function paymentOption(c,a,b){this.id=c;this.payment_option=a;this.price=b}function paymentGroup(c,b,a){this.id=c;this.payment_group=b;this.options=a.split(",")}function updateItemValues(a,b){a.amount.value=paymentOptions[b].price;a.item_name.value=(paymentOptions[b].payment_option).replace(/&quot;/g,'"')}var paymentOptions=new Object();paymentOptions[9340]=new paymentOption(9340,"Paper Size Approx 30cm x 20cm Open","45.00");paymentOptions[9341]=new paymentOption(9341,"Paper Size Approx 30cm x 20cm Ltd","55.00");paymentOptions[9342]=new paymentOption(9342,"Paper Size Approx 42cm x 30cm Open","65.00");paymentOptions[9343]=new paymentOption(9343,"Paper Size Approx 42cm x 30cm Ltd","75.00");paymentOptions[23381]=new paymentOption(23381,"Print Size Approx 30cm x 10cm Open","45.00");paymentOptions[23382]=new paymentOption(23382,"Print Size Approx 40cm x 14cm Open","65.00");paymentOptions[17990]=new paymentOption(17990,"Pack of Eight with envelopes, one of each image, 'BOGOF' SPECIAL PRICE 8 cards for the price of 4! (Price includes £2 P&P)","12.00");paymentOptions[61818]=new paymentOption(61818,"Pack of Eight 'square' glossy cards with envelopes, email your selection (Price includes £2 P&P)","19.50");paymentOptions[54682]=new paymentOption(54682,"Print size approximately 42cm x 42cm","65.00");var paymentGroups=new Object();paymentGroups[5438]=new paymentGroup(5438,"Greeting Cards","17990,61818");paymentGroups[2784]=new paymentGroup(2784,"Limited Edition Print","9341,9343");paymentGroups[2785]=new paymentGroup(2785,"Open Print","9340,9342");paymentGroups[7084]=new paymentGroup(7084,"Panoramic","23381,23382");paymentGroups[14650]=new paymentGroup(14650,"Sorry Not for Sale - Enquire by email","");paymentGroups[16588]=new paymentGroup(16588,"Square","54682");paymentGroups[18915]=new paymentGroup(18915,"Square glossy cards","61818");function getPaymentOptions(a){var b="";if(paymentGroups[a].options[0]!=""){for(var c in paymentGroups[a].options){paymentOption=paymentOptions[paymentGroups[a].options[c]];b=b+'<option  value="'+paymentOption.id+'">'+paymentOption.payment_option+" - 				&pound;"+paymentOption.price+"</option>"}}return b};