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[7355]=new paymentOption(7355,"10&quot;x 8&quot; Semi-Glossy","12.00");paymentOptions[7356]=new paymentOption(7356,"10&quot;x 8&quot; Matte","12.00");paymentOptions[5476]=new paymentOption(5476,"12&quot;x 8&quot; Semi-Glossy","16.00");paymentOptions[5477]=new paymentOption(5477,"12&quot;x 8&quot; Matte","16.00");paymentOptions[7360]=new paymentOption(7360,"12&quot;x 10&quot; Semi-Glossy","20.00");paymentOptions[7361]=new paymentOption(7361,"12&quot;x 10&quot; Matte","20.00");paymentOptions[5478]=new paymentOption(5478,"15&quot;x 10&quot; Semi-Glossy","24.00");paymentOptions[5479]=new paymentOption(5479,"15&quot;x 10&quot; Matte","24.00");paymentOptions[5480]=new paymentOption(5480,"16&quot;x 12&quot; Semi-Glossy","28.00");paymentOptions[5481]=new paymentOption(5481,"16&quot;x 12&quot; Matte","28.00");paymentOptions[5482]=new paymentOption(5482,"18&quot;x 12&quot; Semi-Glossy","32.00");paymentOptions[5483]=new paymentOption(5483,"18&quot;x 12&quot; Matte","32.00");paymentOptions[34105]=new paymentOption(34105,"8&quot;x 6&quot; Glossy","4.00");paymentOptions[34106]=new paymentOption(34106,"8&quot;x 6&quot; Matte/Lustre","4.00");paymentOptions[34107]=new paymentOption(34107,"9&quot;x 6&quot; Glossy","4.75");paymentOptions[34108]=new paymentOption(34108,"9&quot;x 6&quot; Matte/Lustre","4.75");paymentOptions[34109]=new paymentOption(34109,"10&quot;x 8&quot; Glossy","5.50");paymentOptions[34110]=new paymentOption(34110,"10&quot;x 8&quot; Matte/Lustre","5.50");paymentOptions[34113]=new paymentOption(34113,"12&quot;x 8&quot; Glossy ","7.00");paymentOptions[34114]=new paymentOption(34114,"12&quot; x 8&quot; Matte/Lustre","7.00");paymentOptions[34115]=new paymentOption(34115,"12&quot;x10&quot; Glossy","9.50");paymentOptions[34116]=new paymentOption(34116,"12&quot;x10&quot; Matte/Lustre","9.50");paymentOptions[34117]=new paymentOption(34117,"15&quot;x 10&quot; Glossy","12.00");paymentOptions[34118]=new paymentOption(34118,"15&quot;x10&quot; Matte/Lustre","12.00");paymentOptions[34119]=new paymentOption(34119,"16&quot;x 12&quot; Glossy","14.50");paymentOptions[34120]=new paymentOption(34120,"16&quot;x 12&quot; Matte/Lustre","14.50");paymentOptions[54321]=new paymentOption(54321,"18&quot;x12&quot; Glossy","17.00");paymentOptions[54322]=new paymentOption(54322,"18&quot;x12&quot; Matte/Lustre","17.00");var paymentGroups=new Object();paymentGroups[10544]=new paymentGroup(10544,"Commissioned Work","34105,34106,34107,34108,34109,34110,34113,34114,34115,34116,34117,34118,34119,34120,54321,54322");paymentGroups[10545]=new paymentGroup(10545,"Speculative Work","7355,7356,5476,5477,7360,7361,5478,5479,5480,5481,5482,5483");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};