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[19671]=new paymentOption(19671,"Max possible size on A4  satin/gloss card","19.50");paymentOptions[20170]=new paymentOption(20170,"With one other print of your choice","15.00");paymentOptions[20171]=new paymentOption(20171,"With two other prints of your choice","12.00");paymentOptions[20196]=new paymentOption(20196,"With three other prints of your choice","10.00");paymentOptions[20197]=new paymentOption(20197,"With four other prints of your choice","9.00");paymentOptions[20198]=new paymentOption(20198,"As one of six or more prints","8.00");var paymentGroups=new Object();paymentGroups[0]=new paymentGroup(0,"Default group","19671,20170,20171,20196,20197,20198");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};