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[35519]=new paymentOption(35519,"9&quot;x6&quot; Print (Lustre)","8.00");paymentOptions[35520]=new paymentOption(35520,"9&quot;x6&quot; Print (Glossy)","8.00");paymentOptions[32812]=new paymentOption(32812,"12&quot;x8&quot; Print (Lustre)","12.00");paymentOptions[35518]=new paymentOption(35518,"12&quot;x8&quot; Print (Glossy)","12.00");paymentOptions[35521]=new paymentOption(35521,"18&quot;x12&quot; Print (Lustre)","25.00");paymentOptions[35522]=new paymentOption(35522,"18&quot;x12&quot; Print (Glossy)","25.00");paymentOptions[35523]=new paymentOption(35523,"20&quot;x13.3&quot; Print (Lustre)","40.00");paymentOptions[35524]=new paymentOption(35524,"20&quot;x13.3&quot; Print (Glossy)","40.00");paymentOptions[61249]=new paymentOption(61249,"23&quot;x8&quot; (Lustre)","25.00");paymentOptions[61250]=new paymentOption(61250,"36&quot;x13&quot; (Lustre)","55.00");paymentOptions[61275]=new paymentOption(61275,"23&quot;x6.5&quot; (Lustre)","25.00");paymentOptions[61276]=new paymentOption(61276,"36&quot;x10&quot; (Lustre)","55.00");var paymentGroups=new Object();paymentGroups[11561]=new paymentGroup(11561,"6x4 Prints","35519,35520,32812,35518,35521,35522,35523,35524");paymentGroups[18743]=new paymentGroup(18743,"Panorama (non-standard)","61275,61276");paymentGroups[18736]=new paymentGroup(18736,"Panoramas","61249,61250");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};