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[32703]=new paymentOption(32703,"8&quot;x10&quot; Signed Print with Backing","60.00");paymentOptions[42122]=new paymentOption(42122,"8&quot;x10&quot; Signed Print - Matted & Framed","100.00");paymentOptions[32704]=new paymentOption(32704,"11&quot;x14&quot; Signed Print with Backing","100.00");paymentOptions[42123]=new paymentOption(42123,"11&quot;x14&quot; Signed Print - Matted & Framed","175.00");paymentOptions[32705]=new paymentOption(32705,"16&quot;x20&quot; Signed Print with Backing","175.00");paymentOptions[42124]=new paymentOption(42124,"16&quot;x20&quot; Signed Print - Matted & Framed","300.00");paymentOptions[32706]=new paymentOption(32706,"7&quot;x21&quot; Signed Print with Backing","200.00");paymentOptions[32707]=new paymentOption(32707,"10&quot;x30&quot; Signed Print with Backing","275.00");paymentOptions[32708]=new paymentOption(32708,"14&quot;x40&quot; Signed Print with Backing","350.00");var paymentGroups=new Object();paymentGroups[10148]=new paymentGroup(10148,"Panoramic Prints","32706,32707,32708");paymentGroups[10147]=new paymentGroup(10147,"Standard Prints","32703,42122,32704,42123,32705,42124");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+" - 				$"+paymentOption.price+"</option>"}}return b};