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[40242]=new paymentOption(40242," 6&quot;x4&quot; standard print","5.00");paymentOptions[40243]=new paymentOption(40243,"7&quot;x5&quot;","8.00");paymentOptions[40244]=new paymentOption(40244,"9&quot;x6&quot;","12.00");paymentOptions[40245]=new paymentOption(40245,"10&quot;x8&quot;","15.00");paymentOptions[58138]=new paymentOption(58138,"12&quot;x6&quot; long print","15.00");paymentOptions[44509]=new paymentOption(44509,"5&quot;x5&quot; square","5.00");paymentOptions[44510]=new paymentOption(44510,"8&quot;x8&quot; square","12.00");paymentOptions[47914]=new paymentOption(47914,"10x10 square","18.00");paymentOptions[58096]=new paymentOption(58096,"20x8 long print ","26.00");paymentOptions[60505]=new paymentOption(60505,"20x8 framed print","52.00");paymentOptions[40246]=new paymentOption(40246,"12&quot;x16&quot; Enlargements","30.00");paymentOptions[40247]=new paymentOption(40247,"16&quot;x20&quot; ","40.00");paymentOptions[40248]=new paymentOption(40248,"20&quot;x30&quot; ","50.00");paymentOptions[60494]=new paymentOption(60494,"teddy bear","12.00");paymentOptions[60495]=new paymentOption(60495,"5  Acrylic Keyrings","10.00");paymentOptions[60496]=new paymentOption(60496,"Single Acrylic keyring","2.50");paymentOptions[60497]=new paymentOption(60497,"Mousemat","8.00");paymentOptions[60498]=new paymentOption(60498,"Mug","10.00");paymentOptions[60499]=new paymentOption(60499,"40 piece puzzel","10.00");paymentOptions[60500]=new paymentOption(60500,"120 piece puzzel","15.00");paymentOptions[60503]=new paymentOption(60503,"Beer Mug","18.00");paymentOptions[60501]=new paymentOption(60501,"Bottle opener","5.00");paymentOptions[60502]=new paymentOption(60502,"Pen","2.50");paymentOptions[60504]=new paymentOption(60504,"Crystal Heart ","23.00");paymentOptions[44931]=new paymentOption(44931,"10&quot;x8&quot; canvas print","35.00");paymentOptions[44932]=new paymentOption(44932,"8&quot;x8&quot;  square canvas print","40.00");paymentOptions[44933]=new paymentOption(44933,"10&quot;x12&quot; canvas print","45.00");paymentOptions[44934]=new paymentOption(44934,"10&quot;x10&quot;  square canvas print","45.00");paymentOptions[44935]=new paymentOption(44935,"12&quot;x12&quot; square canvas print","50.00");paymentOptions[44936]=new paymentOption(44936,"16&quot;x12&quot; canvas prints","58.00");paymentOptions[44937]=new paymentOption(44937,"20&quot;x16&quot; canvas print","70.00");paymentOptions[44938]=new paymentOption(44938,"20&quot;x20&quot; square canvas print","80.00");paymentOptions[44939]=new paymentOption(44939,"40&quot;x10&quot;  Long canvas Print","120.00");paymentOptions[51093]=new paymentOption(51093,"10&quot;x30&quot; long canvas print","110.00");paymentOptions[44940]=new paymentOption(44940,"30&quot;x20&quot; canvas prints","140.00");paymentOptions[44941]=new paymentOption(44941,"30&quot;x30&quot; square canvas print","165.00");paymentOptions[44942]=new paymentOption(44942,"40&quot;x30&quot; canvas print","170.00");paymentOptions[44943]=new paymentOption(44943,"40&quot;x40&quot; square canvas print","185.00");paymentOptions[49462]=new paymentOption(49462," 5&quot;X4&quot; Table top ice block ","30.00");paymentOptions[49463]=new paymentOption(49463,"6&quot;X4&quot; Table top ice block","32.00");paymentOptions[49464]=new paymentOption(49464,"7&quot;x5&quot; Table top ice block","38.00");paymentOptions[49465]=new paymentOption(49465,"8&quot;x6&quot; Table top ice block","45.00");paymentOptions[49466]=new paymentOption(49466,"10&quot;x8&quot; Table top ice block","58.00");paymentOptions[58313]=new paymentOption(58313,"12x6  table top  ice","69.00");paymentOptions[49467]=new paymentOption(49467,"12&quot;x10 Table top ice block","69.00");paymentOptions[49468]=new paymentOption(49468,"11&quot;x5&quot; Table top ice block","69.00");paymentOptions[49469]=new paymentOption(49469,"x3 single row 6&quot;x4&quot;/5&quot;x5&quot; reposition ice ","159.00");paymentOptions[49470]=new paymentOption(49470,"x4 single row 6&quot;x4&quot;/5&quot;x5&quot; reposition ice ","199.00");paymentOptions[49473]=new paymentOption(49473,"X6 in 2 rows 6&quot;x4&quot;/5&quot;x5&quot; reposition ice","299.00");paymentOptions[49474]=new paymentOption(49474,"x3 single row 7&quot;x5&quot; repostion ice","199.00");paymentOptions[49475]=new paymentOption(49475,"x4 single row 7&quot;x5&quot; reposition ice","249.00");paymentOptions[49476]=new paymentOption(49476,"x6 2 rows 7&quot;x5&quot; repostion blocks","379.00");paymentOptions[46692]=new paymentOption(46692,"Photo book of session images","125.00");paymentOptions[46693]=new paymentOption(46693,"Personalised Dvd of images with licence for use","200.00");paymentOptions[46688]=new paymentOption(46688,"Makeover session  gift voucher ","35.00");paymentOptions[46689]=new paymentOption(46689,"Bump and baby session gift voucher","35.00");paymentOptions[46690]=new paymentOption(46690,"Family Portrait gift voucher","30.00");paymentOptions[46691]=new paymentOption(46691,"Children's portrait session gift voucher","25.00");var paymentGroups=new Object();paymentGroups[0]=new paymentGroup(0,"Default group","40242,40243,40244,40245,58138,44509,44510,47914,58096,60505,40246,40247,40248,60494,60495,60496,60497,60498,60499,60500,60503,60501,60502,60504,44931,44932,44933,44934,44935,44936,44937,44938,44939,51093,44940,44941,44942,44943,49462,49463,49464,49465,49466,58313,49467,49468,49469,49470,49473,49474,49475,49476,46692,46693,46688,46689,46690,46691");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};