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.item_price_1.value=paymentOptions[b].price;a.item_name_1.value=(paymentOptions[b].payment_option).replace(/&quot;/g,'"')}var paymentOptions=new Object();paymentOptions[27265]=new paymentOption(27265,"10&quot; X 8&quot; GICLEE PRINT","35.00");paymentOptions[27435]=new paymentOption(27435,"20&quot; X 16&quot; GICLEE PRINT","49.00");paymentOptions[38173]=new paymentOption(38173,"20&quot; X 11&quot; GICLEE PRINT","43.00");paymentOptions[41478]=new paymentOption(41478,"24&quot; x 14&quot; GICLEE PRINT","50.00");paymentOptions[19379]=new paymentOption(19379,"12&quot; X 5&quot; GICLEE PRINT","35.00");paymentOptions[26193]=new paymentOption(26193,"18 X 7.5 GICLEE PRINT","39.00");paymentOptions[12262]=new paymentOption(12262,"24&quot; X 10&quot; GICLEE PRINT","45.00");paymentOptions[41285]=new paymentOption(41285,"36&quot; X 15 &quot; GICLEE PRINT","60.00");paymentOptions[40081]=new paymentOption(40081,"12&quot; X 6&quot; GICLEE PRINT","35.00");paymentOptions[43161]=new paymentOption(43161,"18&quot; X 9&quot; GICLEE PRINT","40.00");paymentOptions[40080]=new paymentOption(40080,"24&quot; X 12 &quot; GICLEE PRINT","47.00");paymentOptions[41284]=new paymentOption(41284,"36&quot; X 18 &quot; GICLEE PRINT","66.00");paymentOptions[55790]=new paymentOption(55790,"24&quot; x 14&quot; GICLEE PRINT","50.00");paymentOptions[55791]=new paymentOption(55791,"18&quot; X 10.5&quot; GICLEE PRINT","42.00");paymentOptions[55792]=new paymentOption(55792,"12&quot; X 7&quot; GICLEE PRINT","36.00");var paymentGroups=new Object();paymentGroups[11780]=new paymentGroup(11780,"OTHER SIZES","38173");paymentGroups[3343]=new paymentGroup(3343,"PANORAMIC","19379,26193,12262,41285");paymentGroups[17017]=new paymentGroup(17017,"PANORAMIC 3","55790,55791,55792");paymentGroups[12415]=new paymentGroup(12415,"PANORAMIC SIZE 2","40081,43161,40080,41284");paymentGroups[8394]=new paymentGroup(8394,"STANDARD","27265,27435");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};