// 3.Create Product Group // 3.1.Add All Selections (by ID) // 3.2.Add All Options (by ID) // 3.3.Product Assign Array // 3.4.Create // Products var pOptSel_20372_105_51 = new Selection(51,"Turnaround 4 - 6 Business Days","
Normal 4 - 6 Day
turnaround is fine. Please note
this is the manufacture time which only starts
from the time your Artwork is completed and
approved so the job is ready to go to print.
","Normal 4-6 Business Days from Artwork Sign off","","10",true,0.0,0,0,0); var pOptSel_20372_105_52 = new Selection(52,"Turnaround 2 Business days","
Rush Order 2 Days.
Quick drop everything!

              I need them super fast!
","Rush Order 2 Business Days","","1",false,0.0,0,0,0); var pOptSel_20372_95_86 = new Selection(86,"Single Sided","
One side
of your cards will be printed in full colour.
","One Side in Full Colour","","",true,0.0,0,0,0); var pOptSel_20372_98_91 = new Selection(91,"Upload - Print Ready","
Upload Print Ready -
Already have your file ready to upload, then this is the option for you","Print Ready inc 3mm bleed","","",true,0.0,0,0,0); var pOptSel_20372_95_94 = new Selection(94,"Full Colour Double Sided","
Both sides
of your cards will be printed in full colour.","Full Colour Both Sides","","",false,0.0,0,0,0); var pOptSel_20372_98_97 = new Selection(97,"Design Services","
Full Artwork Design -
Let us do it for you, send your logo
and text and any other information to art@front.com.au
and place your order now, but please email all the details at
the time of placing your order as later changes will incur
additional costs. Also our stated turnaround time only
starts once your artwork has been completed and approved.
","Artwork Design Services","","",false,0.0,0,0,0); var pOptSel_20372_98_110 = new Selection(110,"Design Online","
Design Online
Use our online design tool to let your creative mind run wild.  Pick from different templates and backgrounds.","Design Online","","",false,0.0,0,0,0); var pOptSel_20372_98_263 = new Selection(263,"Make Artwork Press Ready","
Need a little help -
I have existing Artwork but need some small changes made.
Please email what you have to art@front.com.au and
place your order through our system now.
","I need a little help","","",false,0.0,0,0,0); var pOptSel_20372_177_288 = new Selection(288,"Barcoding","
Yes
 - Please advise Barcode Symbology required - Our default is Code 128
and remember a 3 digit barcode ie 001 will only give you
999 cards in your range so it might be better to start
at 0001 or even 00001.


","Default is Code 128","","",false,0.0,0,0,0); var pOptSel_20372_195_288 = new Selection(288,"Barcoding","
Yes
 - Please advise Barcode Symbology required - Our default is Code 128
and remember a 3 digit barcode ie 001 will only give you
999 cards in your range so it might be better to start
at 0001 or even 00001.


","Default is Code 128","","",true,0.0,0,0,0); var pOptSel_20372_178_289 = new Selection(289,"Numbering","
Yes - Please advise Starting Number required - and
remember a 3 digit number ie 001 will only give you
999 in your range so it might be better to start
at 0001 or even 00001.
","Serial No\'s Added","","",false,0.0,0,0,0); var pOptSel_20372_179_290 = new Selection(290,"All Over Writable Matt Back","
Yes - A Matt Writable back is an all over matt finish
to the back of the card that can be written on
using a normal ball point pen, This is ideal for
Gift cards where you want to fill in a name/expiry
date or dollar amount on each card when sold.
 
","All Over Writable Matt Back","","",false,0.0,0,0,0); var pOptSel_20372_181_291 = new Selection(291,"Slot Punched","
Yes - Can be on either the short or long
edge of the card.
","Slot Punch specify top or side","","",false,0.0,0,0,0); var pOptSel_20372_181_293 = new Selection(293,"Hole Drilled","","Hole Drilled","","",false,0.0,0,0,0); var pOptSel_20372_194_310 = new Selection(310,"Starting Number","
Yes - Please advise Start Number required ","Starting Number -","","",true,0.0,0,0,0); var pOptSel_20372_177_312 = new Selection(312,"Not Required","","Not Required","","",true,0.0,0,0,0); var pOptSel_20372_178_312 = new Selection(312,"Not Required","","Not Required","","",true,0.0,0,0,0); var pOptSel_20372_179_312 = new Selection(312,"Not Required","","Not Required","","",true,0.0,0,0,0); var pOptSel_20372_181_312 = new Selection(312,"Not Required","","Not Required","","",true,0.0,0,0,0); var pOptSel_20372_179_314 = new Selection(314,"Signature Strip","
Yes - Signature Strips are normally 12.7mm wide 
and can be anywhere on the back of the card and
usually cover the entire long edge of the card.
","Signature Strip 12.7mm high","","",false,0.0,0,0,0); var pOptSel_20372_179_316 = new Selection(316,"All Over Matt Both Sides","","All Over Matt Finish 2 sides","","",false,0.0,0,0,0); var pOptSel_20372_204_330 = new Selection(330,"Pick-up (Sydney Only)","","Pick-up (7.30 -6.00pm Mon-Fri)","","",false,0.0,0,0,0); var pOptSel_20372_204_388 = new Selection(388,"FREE DELIVERY Aust wide","
FREE DELIVERY AUSTRALIA WIDE 
We use TNT, FASTWAY & Express Post
for Free Overnight delivery to your work or home.
Please specify in the comments field if you have
a preference & please make sure someone is
there to accept the delivery.
","Overnight Free Delivery","","",true,0.0,0,0,0); var pOptSel_20372_204_389 = new Selection(389,"FREE DELIVERY Same Day Urgent","","Urgent VIP same day at additional cost","","",false,0.0,0,0,0); var pOptSel_20372_95_396 = new Selection(396,"PET Full Col 1 side B&W other","","Full Col 1 Side, B & W 1 side","","",false,0.0,0,0,0); var pOptSel_20372_177_398 = new Selection(398,"Barcoding Option 2","
Yes
 - Code 39 Barcode Symbology required 
and remember a 3 digit barcode ie 001 will only give you
999 cards in your range so it might be better to start
at 0001 or even 00001.


","Code 39 Barcode","","",false,0.0,0,0,0); var pOptSel_20372_177_399 = new Selection(399,"Barcoding Option 3","
Yes
 - Please advise your Barcode Symbology required in
the comments field below
and remember a 3 digit barcode ie 001 will only give you
999 cards in your range so it might be better to start
at 0001 or even 00001.


","Other Barcode Type","","",false,0.0,0,0,0); var pOptSel_20372_177_444 = new Selection(444,"Barcoding Option 5","
Yes
 - QR Barcodes in sequential numbering or from your database

Remember a 3 digit barcode ie 001 will only give you
999 cards in your range so it might be better to start
at 0001 or even 00001.


","QR Barcodes","","",false,0.0,0,0,0); var pOpt_20372_95 = new Option(95,"Number of Sides Printed","","Number of Sides Printed","Number of Sides Printed ","

Choose between:

","DropDown","1","Base Modifier","-1","","1","Table","vertical","SingleLine","","","","1","0",0,[pOptSel_20372_95_86, pOptSel_20372_95_94, pOptSel_20372_95_396],true); var pOpt_20372_98 = new Option(98,"Artwork Options","","Artwork Options","Artwork Options ","

Your selection is:

","DropDown","5","Design Option","-1","","1","Table","vertical","SingleLine","","","","1","0",0,[pOptSel_20372_98_110, pOptSel_20372_98_91, pOptSel_20372_98_97, pOptSel_20372_98_263],true); var pOpt_20372_105 = new Option(105,"Turn Around Time","","Turn Around Time","Turn Around Time ","

How quick do you need it:

","DropDown","2","Turn Around","-1","","1","Table","vertical","SingleLine","","","","1","0",0,[pOptSel_20372_105_51, pOptSel_20372_105_52],true); var pOpt_20372_177 = new Option(177,"Plastic Card Barcoding","","Plastic Card Barcoding","Barcodes Sequential ","

Barcoding required:


","DropDown","4","Finishing Option","-1","","1","Table","horizontal","SingleLine","","","","1","0",0,[pOptSel_20372_177_312, pOptSel_20372_177_288, pOptSel_20372_177_398, pOptSel_20372_177_399, pOptSel_20372_177_444],true); var pOpt_20372_178 = new Option(178,"Sequential Numbering","","","Serial Numbers ","

Numbering required:

","DropDown","-1","","-1","","1","Table","vertical","SingleLine","","","","1","0",0,[pOptSel_20372_178_312, pOptSel_20372_178_289],true); var pOpt_20372_179 = new Option(179,"PET Plastic Card Writing panel","","","Signature Strip or Writing Panel ","

Use this option for Signature Strips or an Allover Writable Matt finish on the back of the card:

","DropDown","-1","","-1","","1","Table","vertical","SingleLine","","","","1","0",0,[pOptSel_20372_179_312, pOptSel_20372_179_314, pOptSel_20372_179_290, pOptSel_20372_179_316],true); var pOpt_20372_181 = new Option(181,"Plastic Card Hole Drilled or Slot","","","Slot or Hole for Lanyard ","

Hole Drilling required:

","DropDown","-1","","-1","","1","Table","vertical","SingleLine","","","","1","0",0,[pOptSel_20372_181_312, pOptSel_20372_181_293, pOptSel_20372_181_291],true); var pOpt_20372_194 = new Option(194,"Starting Number","","Starting Number","Starting Number ","","TextBox","-1","","-1","","1","Table","vertical","SingleLine","","","","0","0",0,[pOptSel_20372_194_310],true); var pOpt_20372_195 = new Option(195,"Starting Number Barcoding","","Starting Number Barcoding","Barcode Start No. ","","TextBox","-1","","-1","","1","Table","vertical","SingleLine","","","","0","0",0,[pOptSel_20372_195_288],true); var pOpt_20372_204 = new Option(204,"FREE DELIVERY Aust Wide","","","FREE DELIVERY Aust Wide ","","DropDown","-1","","-1","","1","Table","vertical","SingleLine","","","","1","0",0,[pOptSel_20372_204_388, pOptSel_20372_204_330, pOptSel_20372_204_389],true); var pq_143823_95_86 = new SelectionsPrice(95, 86, 0.000) var pq_143823_98_110 = new SelectionsPrice(98, 110, 0.000) var pq_143823_105_51 = new SelectionsPrice(105, 51, 0.000) var pq_143823_177_312 = new SelectionsPrice(177, 312, 0.000) var pq_143823_178_312 = new SelectionsPrice(178, 312, 0.000) var pq_143823_179_312 = new SelectionsPrice(179, 312, 0.000) var pq_143823_181_312 = new SelectionsPrice(181, 312, 0.000) var pq_143823_194_310 = new SelectionsPrice(194, 310, 0.000) var pq_143823_195_288 = new SelectionsPrice(195, 288, 0.000) var pq_143823_95_94 = new SelectionsPrice(95, 94, 14.000) var pq_143823_98_91 = new SelectionsPrice(98, 91, 0.000) var pq_143823_105_52 = new SelectionsPrice(105, 52, 50.000) var pq_143823_177_288 = new SelectionsPrice(177, 288, 20.000) var pq_143823_178_289 = new SelectionsPrice(178, 289, 20.000) var pq_143823_179_314 = new SelectionsPrice(179, 314, 18.000) var pq_143823_181_293 = new SelectionsPrice(181, 293, 18.000) var pq_143823_204_388 = new SelectionsPrice(204, 388, 0.000) var pq_143823_95_396 = new SelectionsPrice(95, 396, 0.000) var pq_143823_98_97 = new SelectionsPrice(98, 97, 90.000) var pq_143823_177_398 = new SelectionsPrice(177, 398, 0.000) var pq_143823_179_290 = new SelectionsPrice(179, 290, 18.000) var pq_143823_181_291 = new SelectionsPrice(181, 291, 22.000) var pq_143823_204_330 = new SelectionsPrice(204, 330, 0.000) var pq_143823_98_263 = new SelectionsPrice(98, 263, 40.000) var pq_143823_177_399 = new SelectionsPrice(177, 399, 0.000) var pq_143823_179_316 = new SelectionsPrice(179, 316, 36.000) var pq_143823_204_389 = new SelectionsPrice(204, 389, 0.000) var pq_143823_177_444 = new SelectionsPrice(177, 444, 0.000) var pq_143823 = new ProductQuantities(143823, 20372, 10, 75.0000, [pq_143823_95_86, pq_143823_98_110, pq_143823_105_51, pq_143823_177_312, pq_143823_178_312, pq_143823_179_312, pq_143823_181_312, pq_143823_194_310, pq_143823_195_288, pq_143823_95_94, pq_143823_98_91, pq_143823_105_52, pq_143823_177_288, pq_143823_178_289, pq_143823_179_314, pq_143823_181_293, pq_143823_204_388, pq_143823_95_396, pq_143823_98_97, pq_143823_177_398, pq_143823_179_290, pq_143823_181_291, pq_143823_204_330, pq_143823_98_263, pq_143823_177_399, pq_143823_179_316, pq_143823_204_389, pq_143823_177_444]); var pq_143821_95_86 = new SelectionsPrice(95, 86, 0.000) var pq_143821_98_110 = new SelectionsPrice(98, 110, 0.000) var pq_143821_105_51 = new SelectionsPrice(105, 51, 0.000) var pq_143821_177_312 = new SelectionsPrice(177, 312, 0.000) var pq_143821_178_312 = new SelectionsPrice(178, 312, 0.000) var pq_143821_179_312 = new SelectionsPrice(179, 312, 0.000) var pq_143821_181_312 = new SelectionsPrice(181, 312, 0.000) var pq_143821_194_310 = new SelectionsPrice(194, 310, 0.000) var pq_143821_195_288 = new SelectionsPrice(195, 288, 0.000) var pq_143821_95_94 = new SelectionsPrice(95, 94, 14.000) var pq_143821_98_91 = new SelectionsPrice(98, 91, 0.000) var pq_143821_105_52 = new SelectionsPrice(105, 52, 50.000) var pq_143821_177_288 = new SelectionsPrice(177, 288, 20.000) var pq_143821_178_289 = new SelectionsPrice(178, 289, 20.000) var pq_143821_179_314 = new SelectionsPrice(179, 314, 18.000) var pq_143821_181_293 = new SelectionsPrice(181, 293, 18.000) var pq_143821_204_388 = new SelectionsPrice(204, 388, 0.000) var pq_143821_95_396 = new SelectionsPrice(95, 396, 0.000) var pq_143821_98_97 = new SelectionsPrice(98, 97, 90.000) var pq_143821_177_398 = new SelectionsPrice(177, 398, 0.000) var pq_143821_179_290 = new SelectionsPrice(179, 290, 18.000) var pq_143821_181_291 = new SelectionsPrice(181, 291, 22.000) var pq_143821_204_330 = new SelectionsPrice(204, 330, 0.000) var pq_143821_98_263 = new SelectionsPrice(98, 263, 40.000) var pq_143821_177_399 = new SelectionsPrice(177, 399, 0.000) var pq_143821_179_316 = new SelectionsPrice(179, 316, 36.000) var pq_143821_204_389 = new SelectionsPrice(204, 389, 0.000) var pq_143821_177_444 = new SelectionsPrice(177, 444, 0.000) var pq_143821 = new ProductQuantities(143821, 20372, 20, 95.0000, [pq_143821_95_86, pq_143821_98_110, pq_143821_105_51, pq_143821_177_312, pq_143821_178_312, pq_143821_179_312, pq_143821_181_312, pq_143821_194_310, pq_143821_195_288, pq_143821_95_94, pq_143821_98_91, pq_143821_105_52, pq_143821_177_288, pq_143821_178_289, pq_143821_179_314, pq_143821_181_293, pq_143821_204_388, pq_143821_95_396, pq_143821_98_97, pq_143821_177_398, pq_143821_179_290, pq_143821_181_291, pq_143821_204_330, pq_143821_98_263, pq_143821_177_399, pq_143821_179_316, pq_143821_204_389, pq_143821_177_444]); var pq_143816_95_86 = new SelectionsPrice(95, 86, 0.000) var pq_143816_98_110 = new SelectionsPrice(98, 110, 0.000) var pq_143816_105_51 = new SelectionsPrice(105, 51, 0.000) var pq_143816_177_312 = new SelectionsPrice(177, 312, 0.000) var pq_143816_178_312 = new SelectionsPrice(178, 312, 0.000) var pq_143816_179_312 = new SelectionsPrice(179, 312, 0.000) var pq_143816_181_312 = new SelectionsPrice(181, 312, 0.000) var pq_143816_194_310 = new SelectionsPrice(194, 310, 0.000) var pq_143816_195_288 = new SelectionsPrice(195, 288, 0.000) var pq_143816_95_94 = new SelectionsPrice(95, 94, 14.000) var pq_143816_98_91 = new SelectionsPrice(98, 91, 0.000) var pq_143816_105_52 = new SelectionsPrice(105, 52, 50.000) var pq_143816_177_288 = new SelectionsPrice(177, 288, 20.000) var pq_143816_178_289 = new SelectionsPrice(178, 289, 20.000) var pq_143816_179_314 = new SelectionsPrice(179, 314, 18.000) var pq_143816_181_293 = new SelectionsPrice(181, 293, 18.000) var pq_143816_204_388 = new SelectionsPrice(204, 388, 0.000) var pq_143816_95_396 = new SelectionsPrice(95, 396, 0.000) var pq_143816_98_97 = new SelectionsPrice(98, 97, 90.000) var pq_143816_177_398 = new SelectionsPrice(177, 398, 0.000) var pq_143816_179_290 = new SelectionsPrice(179, 290, 18.000) var pq_143816_181_291 = new SelectionsPrice(181, 291, 22.000) var pq_143816_204_330 = new SelectionsPrice(204, 330, 0.000) var pq_143816_98_263 = new SelectionsPrice(98, 263, 40.000) var pq_143816_177_399 = new SelectionsPrice(177, 399, 0.000) var pq_143816_179_316 = new SelectionsPrice(179, 316, 36.000) var pq_143816_204_389 = new SelectionsPrice(204, 389, 0.000) var pq_143816_177_444 = new SelectionsPrice(177, 444, 0.000) var pq_143816 = new ProductQuantities(143816, 20372, 50, 125.0000, [pq_143816_95_86, pq_143816_98_110, pq_143816_105_51, pq_143816_177_312, pq_143816_178_312, pq_143816_179_312, pq_143816_181_312, pq_143816_194_310, pq_143816_195_288, pq_143816_95_94, pq_143816_98_91, pq_143816_105_52, pq_143816_177_288, pq_143816_178_289, pq_143816_179_314, pq_143816_181_293, pq_143816_204_388, pq_143816_95_396, pq_143816_98_97, pq_143816_177_398, pq_143816_179_290, pq_143816_181_291, pq_143816_204_330, pq_143816_98_263, pq_143816_177_399, pq_143816_179_316, pq_143816_204_389, pq_143816_177_444]); var pq_143815_95_86 = new SelectionsPrice(95, 86, 0.000) var pq_143815_98_110 = new SelectionsPrice(98, 110, 0.000) var pq_143815_105_51 = new SelectionsPrice(105, 51, 0.000) var pq_143815_177_312 = new SelectionsPrice(177, 312, 0.000) var pq_143815_178_312 = new SelectionsPrice(178, 312, 0.000) var pq_143815_179_312 = new SelectionsPrice(179, 312, 0.000) var pq_143815_181_312 = new SelectionsPrice(181, 312, 0.000) var pq_143815_194_310 = new SelectionsPrice(194, 310, 0.000) var pq_143815_195_288 = new SelectionsPrice(195, 288, 0.000) var pq_143815_95_94 = new SelectionsPrice(95, 94, 14.000) var pq_143815_98_91 = new SelectionsPrice(98, 91, 0.000) var pq_143815_105_52 = new SelectionsPrice(105, 52, 50.000) var pq_143815_177_288 = new SelectionsPrice(177, 288, 30.000) var pq_143815_178_289 = new SelectionsPrice(178, 289, 30.000) var pq_143815_179_314 = new SelectionsPrice(179, 314, 18.000) var pq_143815_181_293 = new SelectionsPrice(181, 293, 18.000) var pq_143815_204_388 = new SelectionsPrice(204, 388, 0.000) var pq_143815_95_396 = new SelectionsPrice(95, 396, 0.000) var pq_143815_98_97 = new SelectionsPrice(98, 97, 90.000) var pq_143815_177_398 = new SelectionsPrice(177, 398, 0.000) var pq_143815_179_290 = new SelectionsPrice(179, 290, 18.000) var pq_143815_181_291 = new SelectionsPrice(181, 291, 22.000) var pq_143815_204_330 = new SelectionsPrice(204, 330, 0.000) var pq_143815_98_263 = new SelectionsPrice(98, 263, 40.000) var pq_143815_177_399 = new SelectionsPrice(177, 399, 0.000) var pq_143815_179_316 = new SelectionsPrice(179, 316, 36.000) var pq_143815_204_389 = new SelectionsPrice(204, 389, 0.000) var pq_143815_177_444 = new SelectionsPrice(177, 444, 0.000) var pq_143815 = new ProductQuantities(143815, 20372, 100, 225.0000, [pq_143815_95_86, pq_143815_98_110, pq_143815_105_51, pq_143815_177_312, pq_143815_178_312, pq_143815_179_312, pq_143815_181_312, pq_143815_194_310, pq_143815_195_288, pq_143815_95_94, pq_143815_98_91, pq_143815_105_52, pq_143815_177_288, pq_143815_178_289, pq_143815_179_314, pq_143815_181_293, pq_143815_204_388, pq_143815_95_396, pq_143815_98_97, pq_143815_177_398, pq_143815_179_290, pq_143815_181_291, pq_143815_204_330, pq_143815_98_263, pq_143815_177_399, pq_143815_179_316, pq_143815_204_389, pq_143815_177_444]); var pq_143813_95_86 = new SelectionsPrice(95, 86, 0.000) var pq_143813_98_110 = new SelectionsPrice(98, 110, 0.000) var pq_143813_105_51 = new SelectionsPrice(105, 51, 0.000) var pq_143813_177_312 = new SelectionsPrice(177, 312, 0.000) var pq_143813_178_312 = new SelectionsPrice(178, 312, 0.000) var pq_143813_179_312 = new SelectionsPrice(179, 312, 0.000) var pq_143813_181_312 = new SelectionsPrice(181, 312, 0.000) var pq_143813_194_310 = new SelectionsPrice(194, 310, 0.000) var pq_143813_195_288 = new SelectionsPrice(195, 288, 0.000) var pq_143813_95_94 = new SelectionsPrice(95, 94, 14.000) var pq_143813_98_91 = new SelectionsPrice(98, 91, 0.000) var pq_143813_105_52 = new SelectionsPrice(105, 52, 50.000) var pq_143813_177_288 = new SelectionsPrice(177, 288, 40.000) var pq_143813_178_289 = new SelectionsPrice(178, 289, 40.000) var pq_143813_179_314 = new SelectionsPrice(179, 314, 18.000) var pq_143813_181_293 = new SelectionsPrice(181, 293, 18.000) var pq_143813_204_388 = new SelectionsPrice(204, 388, 0.000) var pq_143813_95_396 = new SelectionsPrice(95, 396, 0.000) var pq_143813_98_97 = new SelectionsPrice(98, 97, 90.000) var pq_143813_177_398 = new SelectionsPrice(177, 398, 0.000) var pq_143813_179_290 = new SelectionsPrice(179, 290, 18.000) var pq_143813_181_291 = new SelectionsPrice(181, 291, 30.000) var pq_143813_204_330 = new SelectionsPrice(204, 330, 0.000) var pq_143813_98_263 = new SelectionsPrice(98, 263, 40.000) var pq_143813_177_399 = new SelectionsPrice(177, 399, 0.000) var pq_143813_179_316 = new SelectionsPrice(179, 316, 36.000) var pq_143813_204_389 = new SelectionsPrice(204, 389, 0.000) var pq_143813_177_444 = new SelectionsPrice(177, 444, 0.000) var pq_143813 = new ProductQuantities(143813, 20372, 150, 318.0000, [pq_143813_95_86, pq_143813_98_110, pq_143813_105_51, pq_143813_177_312, pq_143813_178_312, pq_143813_179_312, pq_143813_181_312, pq_143813_194_310, pq_143813_195_288, pq_143813_95_94, pq_143813_98_91, pq_143813_105_52, pq_143813_177_288, pq_143813_178_289, pq_143813_179_314, pq_143813_181_293, pq_143813_204_388, pq_143813_95_396, pq_143813_98_97, pq_143813_177_398, pq_143813_179_290, pq_143813_181_291, pq_143813_204_330, pq_143813_98_263, pq_143813_177_399, pq_143813_179_316, pq_143813_204_389, pq_143813_177_444]); var pq_143814_95_86 = new SelectionsPrice(95, 86, 0.000) var pq_143814_98_110 = new SelectionsPrice(98, 110, 0.000) var pq_143814_105_51 = new SelectionsPrice(105, 51, 0.000) var pq_143814_177_312 = new SelectionsPrice(177, 312, 0.000) var pq_143814_178_312 = new SelectionsPrice(178, 312, 0.000) var pq_143814_179_312 = new SelectionsPrice(179, 312, 0.000) var pq_143814_181_312 = new SelectionsPrice(181, 312, 0.000) var pq_143814_194_310 = new SelectionsPrice(194, 310, 0.000) var pq_143814_195_288 = new SelectionsPrice(195, 288, 0.000) var pq_143814_95_94 = new SelectionsPrice(95, 94, 14.000) var pq_143814_98_91 = new SelectionsPrice(98, 91, 0.000) var pq_143814_105_52 = new SelectionsPrice(105, 52, 50.000) var pq_143814_177_288 = new SelectionsPrice(177, 288, 55.000) var pq_143814_178_289 = new SelectionsPrice(178, 289, 50.000) var pq_143814_179_314 = new SelectionsPrice(179, 314, 18.000) var pq_143814_181_293 = new SelectionsPrice(181, 293, 18.000) var pq_143814_204_388 = new SelectionsPrice(204, 388, 0.000) var pq_143814_95_396 = new SelectionsPrice(95, 396, 0.000) var pq_143814_98_97 = new SelectionsPrice(98, 97, 90.000) var pq_143814_177_398 = new SelectionsPrice(177, 398, 0.000) var pq_143814_179_290 = new SelectionsPrice(179, 290, 18.000) var pq_143814_181_291 = new SelectionsPrice(181, 291, 30.000) var pq_143814_204_330 = new SelectionsPrice(204, 330, 0.000) var pq_143814_98_263 = new SelectionsPrice(98, 263, 40.000) var pq_143814_177_399 = new SelectionsPrice(177, 399, 0.000) var pq_143814_179_316 = new SelectionsPrice(179, 316, 36.000) var pq_143814_204_389 = new SelectionsPrice(204, 389, 0.000) var pq_143814_177_444 = new SelectionsPrice(177, 444, 0.000) var pq_143814 = new ProductQuantities(143814, 20372, 200, 410.0000, [pq_143814_95_86, pq_143814_98_110, pq_143814_105_51, pq_143814_177_312, pq_143814_178_312, pq_143814_179_312, pq_143814_181_312, pq_143814_194_310, pq_143814_195_288, pq_143814_95_94, pq_143814_98_91, pq_143814_105_52, pq_143814_177_288, pq_143814_178_289, pq_143814_179_314, pq_143814_181_293, pq_143814_204_388, pq_143814_95_396, pq_143814_98_97, pq_143814_177_398, pq_143814_179_290, pq_143814_181_291, pq_143814_204_330, pq_143814_98_263, pq_143814_177_399, pq_143814_179_316, pq_143814_204_389, pq_143814_177_444]); var pq_143810_95_86 = new SelectionsPrice(95, 86, 0.000) var pq_143810_98_110 = new SelectionsPrice(98, 110, 0.000) var pq_143810_105_51 = new SelectionsPrice(105, 51, 0.000) var pq_143810_177_312 = new SelectionsPrice(177, 312, 0.000) var pq_143810_178_312 = new SelectionsPrice(178, 312, 0.000) var pq_143810_179_312 = new SelectionsPrice(179, 312, 0.000) var pq_143810_181_312 = new SelectionsPrice(181, 312, 0.000) var pq_143810_194_310 = new SelectionsPrice(194, 310, 0.000) var pq_143810_195_288 = new SelectionsPrice(195, 288, 0.000) var pq_143810_95_94 = new SelectionsPrice(95, 94, 14.000) var pq_143810_98_91 = new SelectionsPrice(98, 91, 0.000) var pq_143810_105_52 = new SelectionsPrice(105, 52, 50.000) var pq_143810_177_288 = new SelectionsPrice(177, 288, 55.000) var pq_143810_178_289 = new SelectionsPrice(178, 289, 55.000) var pq_143810_179_314 = new SelectionsPrice(179, 314, 22.000) var pq_143810_181_293 = new SelectionsPrice(181, 293, 22.000) var pq_143810_204_388 = new SelectionsPrice(204, 388, 0.000) var pq_143810_95_396 = new SelectionsPrice(95, 396, 0.000) var pq_143810_98_97 = new SelectionsPrice(98, 97, 90.000) var pq_143810_177_398 = new SelectionsPrice(177, 398, 0.000) var pq_143810_179_290 = new SelectionsPrice(179, 290, 22.000) var pq_143810_181_291 = new SelectionsPrice(181, 291, 30.000) var pq_143810_204_330 = new SelectionsPrice(204, 330, 0.000) var pq_143810_98_263 = new SelectionsPrice(98, 263, 40.000) var pq_143810_177_399 = new SelectionsPrice(177, 399, 0.000) var pq_143810_179_316 = new SelectionsPrice(179, 316, 44.000) var pq_143810_204_389 = new SelectionsPrice(204, 389, 0.000) var pq_143810_177_444 = new SelectionsPrice(177, 444, 0.000) var pq_143810 = new ProductQuantities(143810, 20372, 250, 470.0000, [pq_143810_95_86, pq_143810_98_110, pq_143810_105_51, pq_143810_177_312, pq_143810_178_312, pq_143810_179_312, pq_143810_181_312, pq_143810_194_310, pq_143810_195_288, pq_143810_95_94, pq_143810_98_91, pq_143810_105_52, pq_143810_177_288, pq_143810_178_289, pq_143810_179_314, pq_143810_181_293, pq_143810_204_388, pq_143810_95_396, pq_143810_98_97, pq_143810_177_398, pq_143810_179_290, pq_143810_181_291, pq_143810_204_330, pq_143810_98_263, pq_143810_177_399, pq_143810_179_316, pq_143810_204_389, pq_143810_177_444]); var pq_143806_95_86 = new SelectionsPrice(95, 86, 0.000) var pq_143806_98_110 = new SelectionsPrice(98, 110, 0.000) var pq_143806_105_51 = new SelectionsPrice(105, 51, 0.000) var pq_143806_177_312 = new SelectionsPrice(177, 312, 0.000) var pq_143806_178_312 = new SelectionsPrice(178, 312, 0.000) var pq_143806_179_312 = new SelectionsPrice(179, 312, 0.000) var pq_143806_181_312 = new SelectionsPrice(181, 312, 0.000) var pq_143806_194_310 = new SelectionsPrice(194, 310, 0.000) var pq_143806_195_288 = new SelectionsPrice(195, 288, 0.000) var pq_143806_95_94 = new SelectionsPrice(95, 94, 16.000) var pq_143806_98_91 = new SelectionsPrice(98, 91, 0.000) var pq_143806_105_52 = new SelectionsPrice(105, 52, 75.000) var pq_143806_177_288 = new SelectionsPrice(177, 288, 55.000) var pq_143806_178_289 = new SelectionsPrice(178, 289, 55.000) var pq_143806_179_314 = new SelectionsPrice(179, 314, 31.000) var pq_143806_181_293 = new SelectionsPrice(181, 293, 31.000) var pq_143806_204_388 = new SelectionsPrice(204, 388, 0.000) var pq_143806_95_396 = new SelectionsPrice(95, 396, 0.000) var pq_143806_98_97 = new SelectionsPrice(98, 97, 90.000) var pq_143806_177_398 = new SelectionsPrice(177, 398, 0.000) var pq_143806_179_290 = new SelectionsPrice(179, 290, 31.000) var pq_143806_181_291 = new SelectionsPrice(181, 291, 60.000) var pq_143806_204_330 = new SelectionsPrice(204, 330, 0.000) var pq_143806_98_263 = new SelectionsPrice(98, 263, 40.000) var pq_143806_177_399 = new SelectionsPrice(177, 399, 0.000) var pq_143806_179_316 = new SelectionsPrice(179, 316, 62.000) var pq_143806_204_389 = new SelectionsPrice(204, 389, 0.000) var pq_143806_177_444 = new SelectionsPrice(177, 444, 0.000) var pq_143806 = new ProductQuantities(143806, 20372, 500, 810.0000, [pq_143806_95_86, pq_143806_98_110, pq_143806_105_51, pq_143806_177_312, pq_143806_178_312, pq_143806_179_312, pq_143806_181_312, pq_143806_194_310, pq_143806_195_288, pq_143806_95_94, pq_143806_98_91, pq_143806_105_52, pq_143806_177_288, pq_143806_178_289, pq_143806_179_314, pq_143806_181_293, pq_143806_204_388, pq_143806_95_396, pq_143806_98_97, pq_143806_177_398, pq_143806_179_290, pq_143806_181_291, pq_143806_204_330, pq_143806_98_263, pq_143806_177_399, pq_143806_179_316, pq_143806_204_389, pq_143806_177_444]); var pq_143812_95_86 = new SelectionsPrice(95, 86, 0.000) var pq_143812_98_110 = new SelectionsPrice(98, 110, 0.000) var pq_143812_105_51 = new SelectionsPrice(105, 51, 0.000) var pq_143812_177_312 = new SelectionsPrice(177, 312, 0.000) var pq_143812_178_312 = new SelectionsPrice(178, 312, 0.000) var pq_143812_179_312 = new SelectionsPrice(179, 312, 0.000) var pq_143812_181_312 = new SelectionsPrice(181, 312, 0.000) var pq_143812_194_310 = new SelectionsPrice(194, 310, 0.000) var pq_143812_195_288 = new SelectionsPrice(195, 288, 0.000) var pq_143812_95_94 = new SelectionsPrice(95, 94, 15.000) var pq_143812_98_91 = new SelectionsPrice(98, 91, 0.000) var pq_143812_105_52 = new SelectionsPrice(105, 52, 85.000) var pq_143812_177_288 = new SelectionsPrice(177, 288, 55.000) var pq_143812_178_289 = new SelectionsPrice(178, 289, 55.000) var pq_143812_179_314 = new SelectionsPrice(179, 314, 40.000) var pq_143812_181_293 = new SelectionsPrice(181, 293, 40.000) var pq_143812_204_388 = new SelectionsPrice(204, 388, 0.000) var pq_143812_95_396 = new SelectionsPrice(95, 396, 0.000) var pq_143812_98_97 = new SelectionsPrice(98, 97, 90.000) var pq_143812_177_398 = new SelectionsPrice(177, 398, 0.000) var pq_143812_179_290 = new SelectionsPrice(179, 290, 40.000) var pq_143812_181_291 = new SelectionsPrice(181, 291, 60.000) var pq_143812_204_330 = new SelectionsPrice(204, 330, 0.000) var pq_143812_98_263 = new SelectionsPrice(98, 263, 40.000) var pq_143812_177_399 = new SelectionsPrice(177, 399, 0.000) var pq_143812_179_316 = new SelectionsPrice(179, 316, 80.000) var pq_143812_204_389 = new SelectionsPrice(204, 389, 0.000) var pq_143812_177_444 = new SelectionsPrice(177, 444, 0.000) var pq_143812 = new ProductQuantities(143812, 20372, 750, 1120.0000, [pq_143812_95_86, pq_143812_98_110, pq_143812_105_51, pq_143812_177_312, pq_143812_178_312, pq_143812_179_312, pq_143812_181_312, pq_143812_194_310, pq_143812_195_288, pq_143812_95_94, pq_143812_98_91, pq_143812_105_52, pq_143812_177_288, pq_143812_178_289, pq_143812_179_314, pq_143812_181_293, pq_143812_204_388, pq_143812_95_396, pq_143812_98_97, pq_143812_177_398, pq_143812_179_290, pq_143812_181_291, pq_143812_204_330, pq_143812_98_263, pq_143812_177_399, pq_143812_179_316, pq_143812_204_389, pq_143812_177_444]); var pq_143807_95_86 = new SelectionsPrice(95, 86, 0.000) var pq_143807_98_110 = new SelectionsPrice(98, 110, 0.000) var pq_143807_105_51 = new SelectionsPrice(105, 51, 0.000) var pq_143807_177_312 = new SelectionsPrice(177, 312, 0.000) var pq_143807_178_312 = new SelectionsPrice(178, 312, 0.000) var pq_143807_179_312 = new SelectionsPrice(179, 312, 0.000) var pq_143807_181_312 = new SelectionsPrice(181, 312, 0.000) var pq_143807_194_310 = new SelectionsPrice(194, 310, 0.000) var pq_143807_195_288 = new SelectionsPrice(195, 288, 0.000) var pq_143807_95_94 = new SelectionsPrice(95, 94, 15.000) var pq_143807_98_91 = new SelectionsPrice(98, 91, 0.000) var pq_143807_105_52 = new SelectionsPrice(105, 52, 100.000) var pq_143807_177_288 = new SelectionsPrice(177, 288, 55.000) var pq_143807_178_289 = new SelectionsPrice(178, 289, 55.000) var pq_143807_179_314 = new SelectionsPrice(179, 314, 40.000) var pq_143807_181_293 = new SelectionsPrice(181, 293, 40.000) var pq_143807_204_388 = new SelectionsPrice(204, 388, 0.000) var pq_143807_95_396 = new SelectionsPrice(95, 396, 0.000) var pq_143807_98_97 = new SelectionsPrice(98, 97, 90.000) var pq_143807_177_398 = new SelectionsPrice(177, 398, 0.000) var pq_143807_179_290 = new SelectionsPrice(179, 290, 40.000) var pq_143807_181_291 = new SelectionsPrice(181, 291, 60.000) var pq_143807_204_330 = new SelectionsPrice(204, 330, 0.000) var pq_143807_98_263 = new SelectionsPrice(98, 263, 40.000) var pq_143807_177_399 = new SelectionsPrice(177, 399, 0.000) var pq_143807_179_316 = new SelectionsPrice(179, 316, 80.000) var pq_143807_204_389 = new SelectionsPrice(204, 389, 0.000) var pq_143807_177_444 = new SelectionsPrice(177, 444, 0.000) var pq_143807 = new ProductQuantities(143807, 20372, 1000, 1340.0000, [pq_143807_95_86, pq_143807_98_110, pq_143807_105_51, pq_143807_177_312, pq_143807_178_312, pq_143807_179_312, pq_143807_181_312, pq_143807_194_310, pq_143807_195_288, pq_143807_95_94, pq_143807_98_91, pq_143807_105_52, pq_143807_177_288, pq_143807_178_289, pq_143807_179_314, pq_143807_181_293, pq_143807_204_388, pq_143807_95_396, pq_143807_98_97, pq_143807_177_398, pq_143807_179_290, pq_143807_181_291, pq_143807_204_330, pq_143807_98_263, pq_143807_177_399, pq_143807_179_316, pq_143807_204_389, pq_143807_177_444]); var pq_143817_95_86 = new SelectionsPrice(95, 86, 0.000) var pq_143817_98_110 = new SelectionsPrice(98, 110, 0.000) var pq_143817_105_51 = new SelectionsPrice(105, 51, 0.000) var pq_143817_177_312 = new SelectionsPrice(177, 312, 0.000) var pq_143817_178_312 = new SelectionsPrice(178, 312, 0.000) var pq_143817_179_312 = new SelectionsPrice(179, 312, 0.000) var pq_143817_181_312 = new SelectionsPrice(181, 312, 0.000) var pq_143817_194_310 = new SelectionsPrice(194, 310, 0.000) var pq_143817_195_288 = new SelectionsPrice(195, 288, 0.000) var pq_143817_95_94 = new SelectionsPrice(95, 94, 15.000) var pq_143817_98_91 = new SelectionsPrice(98, 91, 0.000) var pq_143817_105_52 = new SelectionsPrice(105, 52, 115.000) var pq_143817_177_288 = new SelectionsPrice(177, 288, 55.000) var pq_143817_178_289 = new SelectionsPrice(178, 289, 55.000) var pq_143817_179_314 = new SelectionsPrice(179, 314, 47.000) var pq_143817_181_293 = new SelectionsPrice(181, 293, 40.000) var pq_143817_204_388 = new SelectionsPrice(204, 388, 0.000) var pq_143817_95_396 = new SelectionsPrice(95, 396, 0.000) var pq_143817_98_97 = new SelectionsPrice(98, 97, 90.000) var pq_143817_177_398 = new SelectionsPrice(177, 398, 0.000) var pq_143817_179_290 = new SelectionsPrice(179, 290, 47.000) var pq_143817_181_291 = new SelectionsPrice(181, 291, 75.000) var pq_143817_204_330 = new SelectionsPrice(204, 330, 0.000) var pq_143817_98_263 = new SelectionsPrice(98, 263, 40.000) var pq_143817_177_399 = new SelectionsPrice(177, 399, 0.000) var pq_143817_179_316 = new SelectionsPrice(179, 316, 94.000) var pq_143817_204_389 = new SelectionsPrice(204, 389, 0.000) var pq_143817_177_444 = new SelectionsPrice(177, 444, 0.000) var pq_143817 = new ProductQuantities(143817, 20372, 1500, 1935.0000, [pq_143817_95_86, pq_143817_98_110, pq_143817_105_51, pq_143817_177_312, pq_143817_178_312, pq_143817_179_312, pq_143817_181_312, pq_143817_194_310, pq_143817_195_288, pq_143817_95_94, pq_143817_98_91, pq_143817_105_52, pq_143817_177_288, pq_143817_178_289, pq_143817_179_314, pq_143817_181_293, pq_143817_204_388, pq_143817_95_396, pq_143817_98_97, pq_143817_177_398, pq_143817_179_290, pq_143817_181_291, pq_143817_204_330, pq_143817_98_263, pq_143817_177_399, pq_143817_179_316, pq_143817_204_389, pq_143817_177_444]); var pq_143808_95_86 = new SelectionsPrice(95, 86, 0.000) var pq_143808_98_110 = new SelectionsPrice(98, 110, 0.000) var pq_143808_105_51 = new SelectionsPrice(105, 51, 0.000) var pq_143808_177_312 = new SelectionsPrice(177, 312, 0.000) var pq_143808_178_312 = new SelectionsPrice(178, 312, 0.000) var pq_143808_179_312 = new SelectionsPrice(179, 312, 0.000) var pq_143808_181_312 = new SelectionsPrice(181, 312, 0.000) var pq_143808_194_310 = new SelectionsPrice(194, 310, 0.000) var pq_143808_195_288 = new SelectionsPrice(195, 288, 0.000) var pq_143808_95_94 = new SelectionsPrice(95, 94, 19.000) var pq_143808_98_91 = new SelectionsPrice(98, 91, 0.000) var pq_143808_105_52 = new SelectionsPrice(105, 52, 125.000) var pq_143808_177_288 = new SelectionsPrice(177, 288, 55.000) var pq_143808_178_289 = new SelectionsPrice(178, 289, 55.000) var pq_143808_179_314 = new SelectionsPrice(179, 314, 54.000) var pq_143808_181_293 = new SelectionsPrice(181, 293, 40.000) var pq_143808_204_388 = new SelectionsPrice(204, 388, 0.000) var pq_143808_95_396 = new SelectionsPrice(95, 396, 0.000) var pq_143808_98_97 = new SelectionsPrice(98, 97, 90.000) var pq_143808_177_398 = new SelectionsPrice(177, 398, 0.000) var pq_143808_179_290 = new SelectionsPrice(179, 290, 54.000) var pq_143808_181_291 = new SelectionsPrice(181, 291, 90.000) var pq_143808_204_330 = new SelectionsPrice(204, 330, 0.000) var pq_143808_98_263 = new SelectionsPrice(98, 263, 40.000) var pq_143808_177_399 = new SelectionsPrice(177, 399, 0.000) var pq_143808_179_316 = new SelectionsPrice(179, 316, 108.000) var pq_143808_204_389 = new SelectionsPrice(204, 389, 0.000) var pq_143808_177_444 = new SelectionsPrice(177, 444, 0.000) var pq_143808 = new ProductQuantities(143808, 20372, 2000, 2420.0000, [pq_143808_95_86, pq_143808_98_110, pq_143808_105_51, pq_143808_177_312, pq_143808_178_312, pq_143808_179_312, pq_143808_181_312, pq_143808_194_310, pq_143808_195_288, pq_143808_95_94, pq_143808_98_91, pq_143808_105_52, pq_143808_177_288, pq_143808_178_289, pq_143808_179_314, pq_143808_181_293, pq_143808_204_388, pq_143808_95_396, pq_143808_98_97, pq_143808_177_398, pq_143808_179_290, pq_143808_181_291, pq_143808_204_330, pq_143808_98_263, pq_143808_177_399, pq_143808_179_316, pq_143808_204_389, pq_143808_177_444]); var pq_143818_95_86 = new SelectionsPrice(95, 86, 0.000) var pq_143818_98_110 = new SelectionsPrice(98, 110, 0.000) var pq_143818_105_51 = new SelectionsPrice(105, 51, 0.000) var pq_143818_177_312 = new SelectionsPrice(177, 312, 0.000) var pq_143818_178_312 = new SelectionsPrice(178, 312, 0.000) var pq_143818_179_312 = new SelectionsPrice(179, 312, 0.000) var pq_143818_181_312 = new SelectionsPrice(181, 312, 0.000) var pq_143818_194_310 = new SelectionsPrice(194, 310, 0.000) var pq_143818_195_288 = new SelectionsPrice(195, 288, 0.000) var pq_143818_95_94 = new SelectionsPrice(95, 94, 18.000) var pq_143818_98_91 = new SelectionsPrice(98, 91, 0.000) var pq_143818_105_52 = new SelectionsPrice(105, 52, 135.000) var pq_143818_177_288 = new SelectionsPrice(177, 288, 55.000) var pq_143818_178_289 = new SelectionsPrice(178, 289, 55.000) var pq_143818_179_314 = new SelectionsPrice(179, 314, 60.000) var pq_143818_181_293 = new SelectionsPrice(181, 293, 40.000) var pq_143818_204_388 = new SelectionsPrice(204, 388, 0.000) var pq_143818_95_396 = new SelectionsPrice(95, 396, 0.000) var pq_143818_98_97 = new SelectionsPrice(98, 97, 90.000) var pq_143818_177_398 = new SelectionsPrice(177, 398, 0.000) var pq_143818_179_290 = new SelectionsPrice(179, 290, 60.000) var pq_143818_181_291 = new SelectionsPrice(181, 291, 110.000) var pq_143818_204_330 = new SelectionsPrice(204, 330, 0.000) var pq_143818_98_263 = new SelectionsPrice(98, 263, 40.000) var pq_143818_177_399 = new SelectionsPrice(177, 399, 0.000) var pq_143818_179_316 = new SelectionsPrice(179, 316, 120.000) var pq_143818_204_389 = new SelectionsPrice(204, 389, 0.000) var pq_143818_177_444 = new SelectionsPrice(177, 444, 0.000) var pq_143818 = new ProductQuantities(143818, 20372, 2500, 2925.0000, [pq_143818_95_86, pq_143818_98_110, pq_143818_105_51, pq_143818_177_312, pq_143818_178_312, pq_143818_179_312, pq_143818_181_312, pq_143818_194_310, pq_143818_195_288, pq_143818_95_94, pq_143818_98_91, pq_143818_105_52, pq_143818_177_288, pq_143818_178_289, pq_143818_179_314, pq_143818_181_293, pq_143818_204_388, pq_143818_95_396, pq_143818_98_97, pq_143818_177_398, pq_143818_179_290, pq_143818_181_291, pq_143818_204_330, pq_143818_98_263, pq_143818_177_399, pq_143818_179_316, pq_143818_204_389, pq_143818_177_444]); var pq_143811_95_86 = new SelectionsPrice(95, 86, 0.000) var pq_143811_98_110 = new SelectionsPrice(98, 110, 0.000) var pq_143811_105_51 = new SelectionsPrice(105, 51, 0.000) var pq_143811_177_312 = new SelectionsPrice(177, 312, 0.000) var pq_143811_178_312 = new SelectionsPrice(178, 312, 0.000) var pq_143811_179_312 = new SelectionsPrice(179, 312, 0.000) var pq_143811_181_312 = new SelectionsPrice(181, 312, 0.000) var pq_143811_194_310 = new SelectionsPrice(194, 310, 0.000) var pq_143811_195_288 = new SelectionsPrice(195, 288, 0.000) var pq_143811_95_94 = new SelectionsPrice(95, 94, 11.000) var pq_143811_98_91 = new SelectionsPrice(98, 91, 0.000) var pq_143811_105_52 = new SelectionsPrice(105, 52, 150.000) var pq_143811_177_288 = new SelectionsPrice(177, 288, 55.000) var pq_143811_178_289 = new SelectionsPrice(178, 289, 55.000) var pq_143811_179_314 = new SelectionsPrice(179, 314, 68.000) var pq_143811_181_293 = new SelectionsPrice(181, 293, 40.000) var pq_143811_204_388 = new SelectionsPrice(204, 388, 0.000) var pq_143811_95_396 = new SelectionsPrice(95, 396, 0.000) var pq_143811_98_97 = new SelectionsPrice(98, 97, 90.000) var pq_143811_177_398 = new SelectionsPrice(177, 398, 0.000) var pq_143811_179_290 = new SelectionsPrice(179, 290, 68.000) var pq_143811_181_291 = new SelectionsPrice(181, 291, 130.000) var pq_143811_204_330 = new SelectionsPrice(204, 330, 0.000) var pq_143811_98_263 = new SelectionsPrice(98, 263, 40.000) var pq_143811_177_399 = new SelectionsPrice(177, 399, 0.000) var pq_143811_179_316 = new SelectionsPrice(179, 316, 136.000) var pq_143811_204_389 = new SelectionsPrice(204, 389, 0.000) var pq_143811_177_444 = new SelectionsPrice(177, 444, 0.000) var pq_143811 = new ProductQuantities(143811, 20372, 3000, 3360.0000, [pq_143811_95_86, pq_143811_98_110, pq_143811_105_51, pq_143811_177_312, pq_143811_178_312, pq_143811_179_312, pq_143811_181_312, pq_143811_194_310, pq_143811_195_288, pq_143811_95_94, pq_143811_98_91, pq_143811_105_52, pq_143811_177_288, pq_143811_178_289, pq_143811_179_314, pq_143811_181_293, pq_143811_204_388, pq_143811_95_396, pq_143811_98_97, pq_143811_177_398, pq_143811_179_290, pq_143811_181_291, pq_143811_204_330, pq_143811_98_263, pq_143811_177_399, pq_143811_179_316, pq_143811_204_389, pq_143811_177_444]); var pq_143819_95_86 = new SelectionsPrice(95, 86, 0.000) var pq_143819_98_110 = new SelectionsPrice(98, 110, 0.000) var pq_143819_105_51 = new SelectionsPrice(105, 51, 0.000) var pq_143819_177_312 = new SelectionsPrice(177, 312, 0.000) var pq_143819_178_312 = new SelectionsPrice(178, 312, 0.000) var pq_143819_179_312 = new SelectionsPrice(179, 312, 0.000) var pq_143819_181_312 = new SelectionsPrice(181, 312, 0.000) var pq_143819_194_310 = new SelectionsPrice(194, 310, 0.000) var pq_143819_195_288 = new SelectionsPrice(195, 288, 0.000) var pq_143819_95_94 = new SelectionsPrice(95, 94, 15.000) var pq_143819_98_91 = new SelectionsPrice(98, 91, 0.000) var pq_143819_105_52 = new SelectionsPrice(105, 52, 200.000) var pq_143819_177_288 = new SelectionsPrice(177, 288, 55.000) var pq_143819_178_289 = new SelectionsPrice(178, 289, 55.000) var pq_143819_179_314 = new SelectionsPrice(179, 314, 83.000) var pq_143819_181_293 = new SelectionsPrice(181, 293, 40.000) var pq_143819_204_388 = new SelectionsPrice(204, 388, 0.000) var pq_143819_95_396 = new SelectionsPrice(95, 396, 0.000) var pq_143819_98_97 = new SelectionsPrice(98, 97, 90.000) var pq_143819_177_398 = new SelectionsPrice(177, 398, 0.000) var pq_143819_179_290 = new SelectionsPrice(179, 290, 83.000) var pq_143819_181_291 = new SelectionsPrice(181, 291, 160.000) var pq_143819_204_330 = new SelectionsPrice(204, 330, 0.000) var pq_143819_98_263 = new SelectionsPrice(98, 263, 40.000) var pq_143819_177_399 = new SelectionsPrice(177, 399, 0.000) var pq_143819_179_316 = new SelectionsPrice(179, 316, 166.000) var pq_143819_204_389 = new SelectionsPrice(204, 389, 0.000) var pq_143819_177_444 = new SelectionsPrice(177, 444, 0.000) var pq_143819 = new ProductQuantities(143819, 20372, 4000, 4200.0000, [pq_143819_95_86, pq_143819_98_110, pq_143819_105_51, pq_143819_177_312, pq_143819_178_312, pq_143819_179_312, pq_143819_181_312, pq_143819_194_310, pq_143819_195_288, pq_143819_95_94, pq_143819_98_91, pq_143819_105_52, pq_143819_177_288, pq_143819_178_289, pq_143819_179_314, pq_143819_181_293, pq_143819_204_388, pq_143819_95_396, pq_143819_98_97, pq_143819_177_398, pq_143819_179_290, pq_143819_181_291, pq_143819_204_330, pq_143819_98_263, pq_143819_177_399, pq_143819_179_316, pq_143819_204_389, pq_143819_177_444]); var pq_143809_95_86 = new SelectionsPrice(95, 86, 0.000) var pq_143809_98_110 = new SelectionsPrice(98, 110, 0.000) var pq_143809_105_51 = new SelectionsPrice(105, 51, 0.000) var pq_143809_177_312 = new SelectionsPrice(177, 312, 0.000) var pq_143809_178_312 = new SelectionsPrice(178, 312, 0.000) var pq_143809_179_312 = new SelectionsPrice(179, 312, 0.000) var pq_143809_181_312 = new SelectionsPrice(181, 312, 0.000) var pq_143809_194_310 = new SelectionsPrice(194, 310, 0.000) var pq_143809_195_288 = new SelectionsPrice(195, 288, 0.000) var pq_143809_95_94 = new SelectionsPrice(95, 94, 17.000) var pq_143809_98_91 = new SelectionsPrice(98, 91, 0.000) var pq_143809_105_52 = new SelectionsPrice(105, 52, 250.000) var pq_143809_177_288 = new SelectionsPrice(177, 288, 55.000) var pq_143809_178_289 = new SelectionsPrice(178, 289, 55.000) var pq_143809_179_314 = new SelectionsPrice(179, 314, 95.000) var pq_143809_181_293 = new SelectionsPrice(181, 293, 40.000) var pq_143809_204_388 = new SelectionsPrice(204, 388, 0.000) var pq_143809_95_396 = new SelectionsPrice(95, 396, 0.000) var pq_143809_98_97 = new SelectionsPrice(98, 97, 90.000) var pq_143809_177_398 = new SelectionsPrice(177, 398, 0.000) var pq_143809_179_290 = new SelectionsPrice(179, 290, 95.000) var pq_143809_181_291 = new SelectionsPrice(181, 291, 190.000) var pq_143809_204_330 = new SelectionsPrice(204, 330, 0.000) var pq_143809_98_263 = new SelectionsPrice(98, 263, 40.000) var pq_143809_177_399 = new SelectionsPrice(177, 399, 0.000) var pq_143809_179_316 = new SelectionsPrice(179, 316, 190.000) var pq_143809_204_389 = new SelectionsPrice(204, 389, 0.000) var pq_143809_177_444 = new SelectionsPrice(177, 444, 0.000) var pq_143809 = new ProductQuantities(143809, 20372, 5000, 4900.0000, [pq_143809_95_86, pq_143809_98_110, pq_143809_105_51, pq_143809_177_312, pq_143809_178_312, pq_143809_179_312, pq_143809_181_312, pq_143809_194_310, pq_143809_195_288, pq_143809_95_94, pq_143809_98_91, pq_143809_105_52, pq_143809_177_288, pq_143809_178_289, pq_143809_179_314, pq_143809_181_293, pq_143809_204_388, pq_143809_95_396, pq_143809_98_97, pq_143809_177_398, pq_143809_179_290, pq_143809_181_291, pq_143809_204_330, pq_143809_98_263, pq_143809_177_399, pq_143809_179_316, pq_143809_204_389, pq_143809_177_444]); var pq_143820_95_86 = new SelectionsPrice(95, 86, 0.000) var pq_143820_98_110 = new SelectionsPrice(98, 110, 0.000) var pq_143820_105_51 = new SelectionsPrice(105, 51, 0.000) var pq_143820_177_312 = new SelectionsPrice(177, 312, 0.000) var pq_143820_178_312 = new SelectionsPrice(178, 312, 0.000) var pq_143820_179_312 = new SelectionsPrice(179, 312, 0.000) var pq_143820_181_312 = new SelectionsPrice(181, 312, 0.000) var pq_143820_194_310 = new SelectionsPrice(194, 310, 0.000) var pq_143820_195_288 = new SelectionsPrice(195, 288, 0.000) var pq_143820_95_94 = new SelectionsPrice(95, 94, 17.000) var pq_143820_98_91 = new SelectionsPrice(98, 91, 0.000) var pq_143820_105_52 = new SelectionsPrice(105, 52, 600.000) var pq_143820_177_288 = new SelectionsPrice(177, 288, 55.000) var pq_143820_178_289 = new SelectionsPrice(178, 289, 55.000) var pq_143820_179_314 = new SelectionsPrice(179, 314, 180.000) var pq_143820_181_293 = new SelectionsPrice(181, 293, 70.000) var pq_143820_204_388 = new SelectionsPrice(204, 388, 0.000) var pq_143820_95_396 = new SelectionsPrice(95, 396, 0.000) var pq_143820_98_97 = new SelectionsPrice(98, 97, 90.000) var pq_143820_177_398 = new SelectionsPrice(177, 398, 0.000) var pq_143820_179_290 = new SelectionsPrice(179, 290, 180.000) var pq_143820_181_291 = new SelectionsPrice(181, 291, 340.000) var pq_143820_204_330 = new SelectionsPrice(204, 330, 0.000) var pq_143820_98_263 = new SelectionsPrice(98, 263, 40.000) var pq_143820_177_399 = new SelectionsPrice(177, 399, 0.000) var pq_143820_179_316 = new SelectionsPrice(179, 316, 360.000) var pq_143820_204_389 = new SelectionsPrice(204, 389, 0.000) var pq_143820_177_444 = new SelectionsPrice(177, 444, 0.000) var pq_143820 = new ProductQuantities(143820, 20372, 10000, 8800.0000, [pq_143820_95_86, pq_143820_98_110, pq_143820_105_51, pq_143820_177_312, pq_143820_178_312, pq_143820_179_312, pq_143820_181_312, pq_143820_194_310, pq_143820_195_288, pq_143820_95_94, pq_143820_98_91, pq_143820_105_52, pq_143820_177_288, pq_143820_178_289, pq_143820_179_314, pq_143820_181_293, pq_143820_204_388, pq_143820_95_396, pq_143820_98_97, pq_143820_177_398, pq_143820_179_290, pq_143820_181_291, pq_143820_204_330, pq_143820_98_263, pq_143820_177_399, pq_143820_179_316, pq_143820_204_389, pq_143820_177_444]); var pod_518 = new ProductOptionDependencies(195, 177, 288, "c"); var pod_517 = new ProductOptionDependencies(194, 178, 289, "c"); var p_20372 = new Product(20372, "Photo ID Cards are printed on 750 Micron Plastic, 85mm x 54mm, Secure & Great looking Photo ID Cards are Made in Australia.", [pq_143823, pq_143821, pq_143816, pq_143815, pq_143813, pq_143814, pq_143810, pq_143806, pq_143812, pq_143807, pq_143817, pq_143808, pq_143818, pq_143811, pq_143819, pq_143809, pq_143820], [pOpt_20372_95, pOpt_20372_177, pOpt_20372_195, pOpt_20372_179, pOpt_20372_178, pOpt_20372_194, pOpt_20372_181, pOpt_20372_98, pOpt_20372_105, pOpt_20372_204], [pod_518, pod_517], [],[],[false]); var prodGroup = new ProductGroup("Photo Employee ID Cards ", [], [], [], []); //alert(pgGrpOpt_74.selections[2].name); // 4.Create products // 4.1.Add All Selections (by ID) // 4.2.Add All Options (by ID) // 2.3. Create Selection Arrays for each product Quantity // 2.4. Create Option Constructor // 4.5. Create Array of Product Options // 4.6. Create Array of Product Option Dependencies // 4.7. Create Array of Option Qty Excludes // 4.5. Create Array of Product Quantities // 4.8. Create // 0.Create initial config Settings var ConfigSettings = new ConfigSettings(96, 20372, p_20372, 143823, pq_143823); function ConfigSettings(productGroupID, productID, objProduct, productQuantityID, productQuantity) { this.productGroupID = productGroupID; this.productID = productID; this.product = objProduct; this.productQuantityID = productQuantityID; this.productQuantity = productQuantity; // Addl Ptr to prodGroup Obj this.prodGroup = prodGroup; // Base Product Quantity ID this.baseProductQuantityID = productQuantityID; this.baseProdTimeSelectionID = 0; this.basePriceWithTurnAround = 0; } function ProductQuantities(ID, productID, quantity, basePrice, selectionsPrice) { this.ID = ID; this.productID = productID; this.quantity = quantity; this.basePrice = basePrice; this.selectionsPrice = selectionsPrice; this.PriceForSelection=function GetPriceForSelection(pqID, OptionID, SelectionID) { //alert("pq_" + pqID.toString() + "_" + OptionID.toString() + "_" + SelectionID.toString()); return eval("pq_" + pqID.toString() + "_" + OptionID.toString() + "_" + SelectionID.toString()).price; /* for (i = 0; i < this.selectionsPrice.length; i++) { alert(this.selectionsPrice[i].OptionID.toString if ((this.selectionsPrice[i].OptionID == OptionID) && (this.selectionsPrice[i].SelectionID == SelectionID)) return this.selectionsPrice[i].Price; } return null; */ } } function SelectionsPrice(OptionID,SelectionID,Price) { this.optionID=OptionID; this.selectionID=SelectionID; this.price=Price; } function Product(ID, name, quantities, options, optionDepends, optionQtyExludes,turnArounds,doNotAllowDiscount) { this.ID = ID; this.name = name; this.quantities = quantities; this.options = options; this.optionDepends = optionDepends; this.optionQtyExcludes = optionQtyExludes; this.turnArounds=turnArounds; this.doNotAllowDiscount=doNotAllowDiscount; Product.prototype.GetQuantityObj=function (Qty) { var vClosestObj = null; var vCurrentClosestDiff = 99999999; for (z=0; z < this.quantities.length; z++) { if (this.quantities[z].quantity==Qty) { return this.quantities[z] } if (vClosestObj == null) { vClosestObj = this.quantities[z]; vCurrentClosestDiff = Math.abs(vClosestObj.quantity-Qty) } else { if (Math.abs(vClosestObj.quantity-Qty) < vCurrentClosestDiff) { vClosestObj = this.quantities[z]; vCurrentClosestDiff = Math.abs(vClosestObj.quantity-Qty) } } } return vClosestObj; } } function Option(ID, name, notes, description, displayTitle, displayDescription, type, role, roleName, subRole, subRoleName, repeatColumns, repeatLayout, repeatDirection, textMode, width, height, defaultText, required, maxLength, readOnly, selections, DisplayInItemizedData) { this.ID = ID; this.name = name; this.notes = notes; this.description = description; this.displayTitle = displayTitle; this.displayDescription = displayDescription; this.type = type; this.role = role; this.roleName = roleName; this.subRole = subRole; this.subRoleName = subRoleName; this.repeatColumns = repeatColumns; this.repeatDirection = repeatDirection; this.repeatLayout = repeatLayout; this.textMode = textMode; this.width = width; this.height = height; this.defaultText = defaultText; this.required = required; this.maxLength = maxLength; this.readOnly = readOnly; this.selections = selections; this.isVisible=false; this.DisplayInItemizedData=DisplayInItemizedData; } function Selection(selectionID, name, description, title, image, suffix, isDefault, price, printedPages, width, height) { this.selectionID = selectionID; this.name = name; this.description = description; this.title = title; this.image = image; this.suffix = suffix; this.isDefault = isDefault; this.price = price; this.printedPages = printedPages; this.width = width; this.height = height; } // Product TurnAround function TurnAround(ID, name, description, type, amount, TurnAroundQtys ){ this.ID = ID; this.name = name; this.type = type; this.amount = amount; this.description = description; this.TurnAroundQtys=TurnAroundQtys; } function TurnAroundQty(ID,Cost,TurnAroundID,ExcludeTurnAround) { this.ID=ID; this.Cost=Cost; this.TurnAroundID=TurnAroundID; this.ExcludeTurnAround=ExcludeTurnAround; } // Product Group function ProductGroup(name, products, productGroupOptions, productOptionAssigns, productOptionDepends) { this.name = ""; this.products = products; this.productGroupOptions = productGroupOptions; this.productOptionAssigns = productOptionAssigns; this.productOptionDepends = productOptionDepends; } function ProductOptionAssign(ID, productID, optionID, selectionID) { this.ID = ID; this.productID = productID; this.optionID = optionID; this.selectionID = selectionID; } // Product Option Dependencies function ProductOptionDependencies(optionID, requiresOptionID, requiresSelectionID, checkboxValue) { this.optionID = optionID; this.requiresOptionID = requiresOptionID; this.requiresSelectionID = requiresSelectionID; this.checkboxValue = checkboxValue; } // Product Option Qty Dependencies function ProductOptionQtyDependencies(optionID, qtyID, qty) { this.optionID = optionID; this.qtyID = qtyID; this.qty = qty; } // Product Option Qty Dependencies function OptionQtyExcludes(productID, optionID, qty) { this.productID = productID; this.optionID = optionID; this.qty = qty; } function SelectedSelections(OptionID, SelectionID) { this.optionID=OptionID; this.selectionID=SelectionID; } /* function _CurrentGroupSelections() { this.selected = []; _CurrentGroupSelections.prototype.UpdateSelection = function SetSelection(OptionID, SelectionID) { var bFound = false; for (i = 0; i < this.selected.length; i++) { if (this.selected[i].optionID == OptionID) { this.selected[i].selectionID = SelectionID; bFound = true; } } if (bFound == false) { var vNewObj = new SelectedSelections(OptionID, SelectionID); this.selected.push(vNewObj); //this.UpdateOptionPrice(); } } // Get Selected Value for given OptionID _CurrentGroupSelections.prototype.GetSelected = function GetSelectedOptionID(OptionID) { for (var x = 0; x < this.selected.length; x++) { if (this.selected[x].optionID == OptionID) { return this.selected[x].selectionID; } } return -1; } // Get "|" Selection String _CurrentGroupSelections.prototype.SelectionString = function GetSelections() { var vStr = "|"; for (i = 0; i < this.selected.length; i++) { vStr += this.selected[i].optionID.toString() + "_" + this.selected[i].selectionID.toString() + "|" } return vStr; } } */ function _CurrentSelections() { this.selected = []; //to update check box selections _CurrentSelections.prototype.UpdateChkSelection = function SetChkSelection(OptionID, SelectionID) { var check=1; //will loop through and check if its already selected ot not if selected will make it -1 for unchecking it, if not selection does not exists for (i = 0; i < this.selected.length; i++) { if (this.selected[i].optionID == OptionID) { if(this.selected[i].selectionID == SelectionID){ //alert("here"); this.selected[i].selectionID =-1; return; check=0; } else { check=1; } } } //alert(check); //will check if first selection is -1 or not if -1 it will replace the first selection if(check==1){ for (i = 0; i < this.selected.length; i++) { if (this.selected[i].optionID == OptionID) { if(this.selected[i].selectionID == -1){ this.selected[i].selectionID =SelectionID; return; check=0; } } } } //if selection does not exist or first one is not -1 then it will add a new row. if(check==1){ var vNewObj = new SelectedSelections(OptionID, SelectionID); this.selected.push(vNewObj); } } _CurrentSelections.prototype.GetChkSelected = function GetChkSelectedOptionID(OptionID) { var vStr = "|"; for (var x = 0; x < this.selected.length; x++) { if (this.selected[x].optionID == OptionID) { vStr=vStr + this.selected[x].selectionID +"|"; } } return vStr; } _CurrentSelections.prototype.UpdateSelection = function SetSelection(OptionID, SelectionID) { var bFound = false; for (i = 0; i < this.selected.length; i++) { if (this.selected[i].optionID == OptionID) { this.selected[i].selectionID = SelectionID; for (j = 0; j < ConfigSettings.product.options.length; j++) { if((ConfigSettings.product.options[j].ID==OptionID)&&(ConfigSettings.product.options[j].type=='TextBox')) { if (ConfigSettings.product.options[j].selections[0].selectionID==SelectionID){ this.selected[i].selectionID = ' '; } } } //alert(OptionID.toString() + ":::" + SelectionID.toString()); bFound = true; } } if (bFound == false) { var vNewObj = new SelectedSelections(OptionID, SelectionID); this.selected.push(vNewObj); //this.UpdateOptionPrice(); } } // Get Selected Value for given OptionID _CurrentSelections.prototype.GetSelected = function GetSelectedOptionID(OptionID) { for (var x = 0; x < this.selected.length; x++) { if (this.selected[x].optionID == OptionID) { return this.selected[x].selectionID; } } return -1; } // Get "|" Selection String _CurrentSelections.prototype.SelectionString = function GetSelections() { var vStr = "|"; for (i = 0; i < this.selected.length; i++) { for (j = 0; j < ConfigSettings.product.options.length; j++) { if(ConfigSettings.product.options[j].ID==this.selected[i].optionID){ if(ConfigSettings.product.options[j].isVisible==true){ vStr += this.selected[i].optionID.toString() + "_" + this.selected[i].selectionID.toString() + "|" } } } } return vStr; } // Build Display Option HTML String for Selected Options _CurrentSelections.prototype.DisplayOptionsString = function GetDisplayOptionsString() { var vStr = ""; //alert(ConfigSettings.product.options.length); for (j = 0; j < ConfigSettings.product.options.length; j++) { var vSelSelectionID = this.GetSelected(ConfigSettings.product.options[j].ID); if (1==1) {//(ConfigSettings.product.options[j].role != 5) { if ((vSelSelectionID > -1) && (ConfigSettings.product.options[j].role != 2) && (ConfigSettings.product.options[j].isVisible==true)) { //alert(ConfigSettings.product.options[j].ID.toString() + ":" + this.GetSelected(ConfigSettings.product.options[j].ID).toString()); //alert("pq_"+ ConfigSettings.productQuantityID + "_" + ConfigSettings.product.options[j].ID.toString() + "_" + vSelSelectionID.toString()); var vPQ = eval("pq_"+ ConfigSettings.productQuantityID + "_" + ConfigSettings.product.options[j].ID.toString() + "_" + vSelSelectionID.toString()); var vSel = eval("pOptSel_" + ConfigSettings.productID.toString() + "_" + ConfigSettings.product.options[j].ID.toString() + "_" + vSelSelectionID.toString()); if (vPQ.price > 0) vStr += "
" + vSel.title + "
$" + CurrencyFormatted(GetPriceBySize(vPQ.price)) + "
" } } // else { // Role 5 -- Finishing OPtions // if ((vSelSelectionID > -1) && (ConfigSettings.product.options[j].isVisible==true)) { // //alert(ConfigSettings.product.options[j].role); // //alert(ConfigSettings.product.options[j].ID.toString() + ":" + this.GetSelected(ConfigSettings.product.options[j].ID).toString()); // //alert("pq_"+ ConfigSettings.productQuantityID + "_" + ConfigSettings.product.options[j].ID.toString() + "_" + vSelSelectionID.toString()); // var vPQ = eval("pq_"+ ConfigSettings.productQuantityID + "_" + ConfigSettings.product.options[j].ID.toString() + "_" + vSelSelectionID.toString()); // var vSel = eval("pOptSel_" + ConfigSettings.productID.toString() + "_" + ConfigSettings.product.options[j].ID.toString() + "_" + vSelSelectionID.toString()); // var vCalcPrice = GetBannerOptionPrice(ConfigSettings.product.options[j], vPQ.price); // if (vCalcPrice > 0) // vStr += "
" + vSel.title + "
$" + CurrencyFormatted(vCalcPrice) + "
" // } // } } return vStr; } _CurrentSelections.prototype.SetOptionPriceRows = function SetOptionPriceRowsDisplay(tbl,QtyH, CSymbol) { var vStr = ""; //alert(ConfigSettings.product.options.length); for (j = 0; j < ConfigSettings.product.options.length; j++) { var vSelSelectionID = this.GetSelected(ConfigSettings.product.options[j].ID); if (1==1) {//(ConfigSettings.product.options[j].role != 5) { if ((vSelSelectionID > -1) && (ConfigSettings.product.options[j].role != 2) && (ConfigSettings.product.options[j].isVisible==true) && (ConfigSettings.product.options[j].type!='TextBox')) { //alert(ConfigSettings.product.options[j].ID.toString() + ":" + this.GetSelected(ConfigSettings.product.options[j].ID).toString()); //alert("pq_"+ ConfigSettings.productQuantityID + "_" + ConfigSettings.product.options[j].ID.toString() + "_" + vSelSelectionID.toString()); var vPQ = eval("pq_"+ ConfigSettings.productQuantityID + "_" + ConfigSettings.product.options[j].ID.toString() + "_" + vSelSelectionID.toString()); //alert('123'); //alert("pq_"+ QtyH+ "_" + ConfigSettings.product.options[j].ID.toString() + "_" + vSelSelectionID.toString()); if(QtyH>0) { var vPQH = eval("pq_"+ QtyH+ "_" + ConfigSettings.product.options[j].ID.toString() + "_" + vSelSelectionID.toString()); //alert(vPQH); } //alert(vPQH); var vSel = eval("pOptSel_" + ConfigSettings.productID.toString() + "_" + ConfigSettings.product.options[j].ID.toString() + "_" + vSelSelectionID.toString()); //if (vPQ.price > 0) { //alert(vSel.DisplayInItemizedData.toString()+" "+vSelSelectionID.toString()); //alert(ConfigSettings.product.options[j].DisplayInItemizedData); if(ConfigSettings.product.options[j].DisplayInItemizedData==true ){ var row = tbl.insertRow(tbl.rows.length); var cell1 = document.createElement("TH"); var cell2 = document.createElement("TD"); var bold1 = document.createElement("B"); var textnode1a = document.createTextNode(ConfigSettings.product.options[j].displayTitle + ": "); var textnode1b = document.createTextNode(vSel.title); if(QtyH>0) { var textnode2 = document.createTextNode(CSymbol + CurrencyFormatted(GetPriceBySize(vPQ.price,vPQH.price))); } else var textnode2 = document.createTextNode(CSymbol + CurrencyFormatted(GetPriceBySize(vPQ.price,0))); bold1.appendChild(textnode1a); cell1.appendChild(bold1); cell1.appendChild(textnode1b); cell2.appendChild(textnode2); row.appendChild(cell1); row.appendChild(cell2); //vStr += "
" + vSel.title + "
$" + CurrencyFormatted(GetPriceBySize(vPQ.price)) + "
" } } else if ((vSelSelectionID > -1) && (ConfigSettings.product.options[j].role == 2) && (ConfigSettings.product.options[j].isVisible==true)) { //alert(ConfigSettings.product.options[j].ID.toString() + ":" + this.GetSelected(ConfigSettings.product.options[j].ID).toString()); //alert("pq_"+ ConfigSettings.productQuantityID + "_" + ConfigSettings.product.options[j].ID.toString() + "_" + vSelSelectionID.toString()); var vPQ = eval("pq_"+ ConfigSettings.productQuantityID + "_" + ConfigSettings.product.options[j].ID.toString() + "_" + vSelSelectionID.toString()); if(QtyH>0) { var vPQH = eval("pq_"+ QtyH+ "_" + ConfigSettings.product.options[j].ID.toString() + "_" + vSelSelectionID.toString()); //alert(vPQH); } var vSel = eval("pOptSel_" + ConfigSettings.productID.toString() + "_" + ConfigSettings.product.options[j].ID.toString() + "_" + vSelSelectionID.toString()); //alert(vPQ.price); //if (vPQ.price > 0) { if(ConfigSettings.product.options[j].DisplayInItemizedData==true ){ var row = tbl.insertRow(tbl.rows.length); var cell1 = document.createElement("TH"); var cell2 = document.createElement("TD"); var textnode1 = document.createTextNode(ConfigSettings.product.options[j].displayTitle + ": " + vSel.title); if(QtyH>0) { var textnode2 = document.createTextNode(CSymbol + CurrencyFormatted(GetPriceBySize(vPQ.price,vPQH.price))); } else var textnode2 = document.createTextNode(CSymbol + CurrencyFormatted(GetPriceBySize(vPQ.price))); cell1.appendChild(textnode1); cell2.appendChild(textnode2); row.appendChild(cell1); row.appendChild(cell2); //vStr += "
" + vSel.title + "
$" + CurrencyFormatted(GetPriceBySize(vPQ.price)) + "
" } } } // else { // Role 5 -- Finishing OPtions // if ((vSelSelectionID > -1) && (ConfigSettings.product.options[j].isVisible==true)) { // //alert(ConfigSettings.product.options[j].role); // //alert(ConfigSettings.product.options[j].ID.toString() + ":" + this.GetSelected(ConfigSettings.product.options[j].ID).toString()); // //alert("pq_"+ ConfigSettings.productQuantityID + "_" + ConfigSettings.product.options[j].ID.toString() + "_" + vSelSelectionID.toString()); // var vPQ = eval("pq_"+ ConfigSettings.productQuantityID + "_" + ConfigSettings.product.options[j].ID.toString() + "_" + vSelSelectionID.toString()); // var vSel = eval("pOptSel_" + ConfigSettings.productID.toString() + "_" + ConfigSettings.product.options[j].ID.toString() + "_" + vSelSelectionID.toString()); // var vCalcPrice = GetBannerOptionPrice(ConfigSettings.product.options[j], vPQ.price); // if (vCalcPrice > 0) { // var row = tbl.insertRow(tbl.rows.length); // var cell1 = document.createElement("TH"); // var cell2 = document.createElement("TD"); // var textnode1 = document.createTextNode(vSel.title); // var textnode2 = document.createTextNode("$" + CurrencyFormatted(vCalcPrice)); // cell1.appendChild(textnode1); // cell2.appendChild(textnode2); // row.appendChild(cell1); // row.appendChild(cell2); // // //vStr += "
" + vSel.title + "
$" + CurrencyFormatted(vCalcPrice) + "
" // } // } // } } return vStr; } _CurrentSelections.prototype.SetOptionPriceRowsOld = function SetOptionPriceRowsDisplayOLD(tbl) { var vStr = ""; //alert(ConfigSettings.product.options.length); for (j = 0; j < ConfigSettings.product.options.length; j++) { var vSelSelectionID = this.GetSelected(ConfigSettings.product.options[j].ID); if (1==1) {//(ConfigSettings.product.options[j].role != 5) { if ((vSelSelectionID > -1) && (ConfigSettings.product.options[j].role != 2) && (ConfigSettings.product.options[j].isVisible==true)) { //alert(ConfigSettings.product.options[j].ID.toString() + ":" + this.GetSelected(ConfigSettings.product.options[j].ID).toString()); //alert("pq_"+ ConfigSettings.productQuantityID + "_" + ConfigSettings.product.options[j].ID.toString() + "_" + vSelSelectionID.toString()); var vPQ = eval("pq_"+ ConfigSettings.productQuantityID + "_" + ConfigSettings.product.options[j].ID.toString() + "_" + vSelSelectionID.toString()); var vSel = eval("pOptSel_" + ConfigSettings.productID.toString() + "_" + ConfigSettings.product.options[j].ID.toString() + "_" + vSelSelectionID.toString()); if (vPQ.price > 0) { var row = tbl.insertRow(tbl.rows.length); var cell1 = document.createElement("TH"); var cell2 = document.createElement("TD"); var textnode1 = document.createTextNode(ConfigSettings.product.options[j].displayTitle + vSel.title); var textnode2 = document.createTextNode("$" + CurrencyFormatted(GetPriceBySize(vPQ.price))); cell1.appendChild(textnode1); cell2.appendChild(textnode2); row.appendChild(cell1); row.appendChild(cell2); //vStr += "
" + vSel.title + "
$" + CurrencyFormatted(GetPriceBySize(vPQ.price)) + "
" } } else if ((vSelSelectionID > -1) && (ConfigSettings.product.options[j].role == 2) && (ConfigSettings.product.options[j].isVisible==true)) { //alert(ConfigSettings.product.options[j].ID.toString() + ":" + this.GetSelected(ConfigSettings.product.options[j].ID).toString()); //alert("pq_"+ ConfigSettings.productQuantityID + "_" + ConfigSettings.product.options[j].ID.toString() + "_" + vSelSelectionID.toString()); var vPQ = eval("pq_"+ ConfigSettings.productQuantityID + "_" + ConfigSettings.product.options[j].ID.toString() + "_" + vSelSelectionID.toString()); var vSel = eval("pOptSel_" + ConfigSettings.productID.toString() + "_" + ConfigSettings.product.options[j].ID.toString() + "_" + vSelSelectionID.toString()); //alert(vPQ.price); if (vPQ.price > 0) { var row = tbl.insertRow(tbl.rows.length); var cell1 = document.createElement("TH"); var cell2 = document.createElement("TD"); var textnode1 = document.createTextNode(ConfigSettings.product.options[j].displayTitle + ": " + vSel.title); var textnode2 = document.createTextNode("$" + CurrencyFormatted(GetPriceBySize(vPQ.price))); cell1.appendChild(textnode1); cell2.appendChild(textnode2); row.appendChild(cell1); row.appendChild(cell2); //vStr += "
" + vSel.title + "
$" + CurrencyFormatted(GetPriceBySize(vPQ.price)) + "
" } } } // else { // Role 5 -- Finishing OPtions // if ((vSelSelectionID > -1) && (ConfigSettings.product.options[j].isVisible==true)) { // //alert(ConfigSettings.product.options[j].role); // //alert(ConfigSettings.product.options[j].ID.toString() + ":" + this.GetSelected(ConfigSettings.product.options[j].ID).toString()); // //alert("pq_"+ ConfigSettings.productQuantityID + "_" + ConfigSettings.product.options[j].ID.toString() + "_" + vSelSelectionID.toString()); // var vPQ = eval("pq_"+ ConfigSettings.productQuantityID + "_" + ConfigSettings.product.options[j].ID.toString() + "_" + vSelSelectionID.toString()); // var vSel = eval("pOptSel_" + ConfigSettings.productID.toString() + "_" + ConfigSettings.product.options[j].ID.toString() + "_" + vSelSelectionID.toString()); // var vCalcPrice = GetBannerOptionPrice(ConfigSettings.product.options[j], vPQ.price); // if (vCalcPrice > 0) { // var row = tbl.insertRow(tbl.rows.length); // var cell1 = document.createElement("TH"); // var cell2 = document.createElement("TD"); // var textnode1 = document.createTextNode(vSel.title); // var textnode2 = document.createTextNode("$" + CurrencyFormatted(vCalcPrice)); // cell1.appendChild(textnode1); // cell2.appendChild(textnode2); // row.appendChild(cell1); // row.appendChild(cell2); // // //vStr += "
" + vSel.title + "
$" + CurrencyFormatted(vCalcPrice) + "
" // } // } // } } return vStr; } this.GetOptionPrice = function GetOptionPrice (QtyH) { var vOptionPrice = 0.0; for (j = 0; j < ConfigSettings.product.options.length; j++) { var vSelSelectionID = this.GetSelected(ConfigSettings.product.options[j].ID); //if ((ConfigSettings.product.options[j].role != 5) && (ConfigSettings.product.options[j].isVisible==true)) { //alert(ConfigSettings.product.options[j].ID); //alert(ConfigSettings.product.options[j].isVisible); if (vSelSelectionID == -1) { // get default var selCnt = ConfigSettings.product.options[j].selections.length; for (var selIndex = 0; selIndex < selCnt; selIndex++) { if (ConfigSettings.product.options[j].selections[selIndex].isDefault == true) { vSelSelectionID = ConfigSettings.product.options[j].selections[selIndex].selectionID; continue; } } } if ((ConfigSettings.product.options[j].isVisible==true)&& (ConfigSettings.product.options[j].type != 'TextBox') ){ if (vSelSelectionID > -1) { var vPQ = eval("pq_"+ ConfigSettings.productQuantityID + "_" + ConfigSettings.product.options[j].ID.toString() + "_" + vSelSelectionID.toString()); if(QtyH>0) { var vPQH = eval("pq_"+ QtyH+ "_" + ConfigSettings.product.options[j].ID.toString() + "_" + vSelSelectionID.toString()); //alert(vPQH); } if(QtyH>0) vOptionPrice +=GetPriceBySize(vPQ.price,vPQH.price); else vOptionPrice += vPQ.price; } } // else if ((ConfigSettings.product.options[j].role == 5) && (ConfigSettings.product.options[j].isVisible==true)) { // Role 5 -- Finishing OPtions // // if (vSelSelectionID > -1) { // //alert(ConfigSettings.product.options[j].role); // //alert(ConfigSettings.product.options[j].ID.toString() + ":" + this.GetSelected(ConfigSettings.product.options[j].ID).toString()); // //alert("pq_"+ ConfigSettings.productQuantityID + "_" + ConfigSettings.product.options[j].ID.toString() + "_" + vSelSelectionID.toString()); // var vPQ = eval("pq_"+ ConfigSettings.productQuantityID + "_" + ConfigSettings.product.options[j].ID.toString() + "_" + vSelSelectionID.toString()); // var vCalcPrice = GetBannerOptionPrice(ConfigSettings.product.options[j], vPQ.price); // vOptionPrice += vCalcPrice; // } // } } return vOptionPrice; } } function GetBannerOptionPrice(option, unitPrice) { if (option.subRoleName == "Grommets") { //alert(GetGrommetCount()); //alert(unitPrice); return unitPrice * GetGrommetCount(); } else if (option.subRoleName == "Webbing") { return unitPrice * GetWebbingLength(); } else if (option.subRoleName == "Pole Pockets") { return unitPrice * GetPolePocketsLength(); } else if (option.subRoleName == "Rope") { return unitPrice * GetRopeLength(); } else if (option.subRoleName == "Sewing") { return unitPrice * GetSewingLength(); } else if (option.subRoleName == "3/4\" Velcro") { return unitPrice * GetVelcro3Length(); } else if (option.subRoleName == "2\" Velcro") { return unitPrice * GetVelcro2Length(); } //else //alert(option.subRoleName); } var currentSelections = new _CurrentSelections(); var currentGroupSelections = new _CurrentSelections(); function SetCurrentGroupSelections() { //alert('abc'); for (z=0; z < prodGroup.productGroupOptions.length; z++) { var OptionID = prodGroup.productGroupOptions[z].ID; var obj = document.getElementById("grpopt_" + OptionID.toString()); //alert(obj); //alert("opt_" + OptionID.toString()); if (obj) { if (prodGroup.productGroupOptions[z].type == "DropDown") { var SelectionID = obj.options[obj.selectedIndex].value; currentGroupSelections.UpdateSelection(OptionID, SelectionID); } } } //alert(currentGroupSelections.SelectionString()); } function SetCurrentSelections() { //alert(ConfigSettings.product.options.length); for (z=0; z < ConfigSettings.product.options.length; z++) { var OptionID = ConfigSettings.product.options[z].ID; //alert(OptionID.toString() + ":" + currentSelections.GetSelected(OptionID).toString()) if (currentSelections.GetSelected(OptionID) == -1) { //alert(ConfigSettings.product.options[z].selections); if (ConfigSettings.product.options[z].selections) { for (y=0; y < ConfigSettings.product.options[z].selections.length; y++) { if (ConfigSettings.product.options[z].selections[y].isDefault == true) { //alert(OptionID.toString() + ":" + ConfigSettings.product.options[z].selections[y].selectionID.toString()); currentSelections.UpdateSelection(OptionID, ConfigSettings.product.options[z].selections[y].selectionID); y=99999; } } } else { currentSelections.UpdateSelection(OptionID, ConfigSettings.product.options[z].defaultText); } } } //alert(currentSelections.SelectionString()); } function CurrencyFormatted(amount) { var i = parseFloat(amount.toString().replace("$","")); if(isNaN(i)) { i = 0.00; } var minus = ''; if(i < 0) { minus = '-'; } i = Math.abs(i); i = parseInt((i + .005) * 100); i = i / 100; s = new String(i); if(s.indexOf('.') < 0) { s += '.00'; } if(s.indexOf('.') == (s.length - 2)) { s += '0'; } s = minus + s; return CommaFormatted(s); } // end of function CurrencyFormatted() function CommaFormatted(amount) { var delimiter = ","; // replace comma if desired var a = amount.split('.',2) var d = a[1]; var i = parseInt(a[0]); if(isNaN(i)) { return ''; } var minus = ''; if(i < 0) { minus = '-'; } i = Math.abs(i); var n = new String(i); var a = []; while(n.length > 3) { var nn = n.substr(n.length-3); a.unshift(nn); n = n.substr(0,n.length-3); } if(n.length > 0) { a.unshift(n); } n = a.join(delimiter); if(d.length < 1) { amount = n; } else { amount = n + '.' + d; } amount = minus + amount; return amount; } // end of function CommaFormatted()