You may also be interested in these items:
var errorMsg = "";
function verifyQuantity (theForm)
{
var qty_field = theForm.quantity;
if (qty_field)
{
var qty = qty_field.value;
if (qty == "" || qty == "0" )
{
errorMsg += "Please Select the quantity\n";;
theForm.quantity.focus();
return false;
}
}
var haveBadQty = false;
for (j=0; j < qty.length; j++)
{
if(isNaN(parseInt(qty.charAt(j))) )
{
haveBadQty = true;
break;
}
}
if (haveBadQty)
{
errorMsg += "Invalid quantity\n";
theForm.quantity.focus();
return false;
}
return true;
}
function verifyFields(formObject, colorsLen, sizeLen)
{
var isValidQty = true;
isValidColorOrSize = true;
var colorTextForJS = new String("Color");
sizeColorSelected = false;
var dropDown1 = formObject.prod_0;
var dropDown2 = formObject.colors_0;
if ( (dropDown1 && dropDown1.type == "select-one" && dropDown1.selectedIndex == 0) ||
(dropDown2 && dropDown2.type == "select-one" && dropDown2.selectedIndex == 0))
{
if(colorsLen > 1 && sizeLen > 1)
{
errorMsg += "Please select a Color / Size combination\n";
}
else if(colorsLen > 1)
{
errorMsg += "Please select a Color\n";
}
else
{
errorMsg += "Please select a Size\n";
}
if(dropDown1 && dropDown1.selectedIndex == 0)
{
dropDown1.focus();
}
else if(dropDown2 && dropDown2.selectedIndex == 0)
{
dropDown2.focus();
}
isValidColorOrSize = false;
}
if(isValidQty == false || isValidColorOrSize == false)
{
alert(errorMsg);
errorMsg = "";
}
else
{
formObject.submit();
}
}
itemMap0 = new Array();
itemMap0[0] = { pid: '3170123',sku: 4938098,sDesc: "SMALL",sId: "100105",cDesc: "(Maritime Orange)",cId: "1001574",avail: "IN_STOCK",price: "$59.99",jdaStyle: "44642"};
itemMap0[1] = { pid: '3170123',sku: 4938108,sDesc: "SMALL",sId: "100105",cDesc: "(Northwest Pine)",cId: "1002659",avail: "IN_STOCK",price: "$59.99",jdaStyle: "44642"};
itemMap0[2] = { pid: '3170123',sku: 4938113,sDesc: "SMALL",sId: "100105",cDesc: "(Newport Navy)",cId: "1000904",avail: "IN_STOCK",price: "$59.99",jdaStyle: "44642"};
itemMap0[3] = { pid: '3170123',sku: 4938118,sDesc: "SMALL",sId: "100105",cDesc: "(Polo Black)",cId: "1005041",avail: "IN_STOCK",price: "$59.99",jdaStyle: "44642"};
itemMap0[4] = { pid: '3170123',sku: 4938123,sDesc: "SMALL",sId: "100105",cDesc: "(White)",cId: "1000515",avail: "IN_STOCK",price: "$59.99",jdaStyle: "44642"};
itemMap0[5] = { pid: '3170123',sku: 4938099,sDesc: "MEDIUM",sId: "100047",cDesc: "(Maritime Orange)",cId: "1001574",avail: "IN_STOCK",price: "$59.99",jdaStyle: "44642"};
itemMap0[6] = { pid: '3170123',sku: 4938100,sDesc: "LARGE",sId: "100044",cDesc: "(Maritime Orange)",cId: "1001574",avail: "IN_STOCK",price: "$59.99",jdaStyle: "44642"};
// Populate color array to pass to updateSelector function
function populateSizes0(sel_element1, sel_element2)
{
var val = sel_element1.options[sel_element1.selectedIndex].value;
var items = new Array();
// If user sets color dropdown back to "Color" reset the prod_ dropdown
if(val == '')
{
var selectOneArray = new Array("3170123","Select Size");
items[items.length] = new Object();
items[items.length-1].id = selectOneArray[0];
items[items.length-1].de = selectOneArray[1];
updateSelector(sel_element2,items);
return;
}
// If color was selected, fill colorArray
if(val != "-1")
{
var selectOneArray = new Array("3170123","Select Size");
items[items.length] = new Object();
items[items.length-1].id = selectOneArray[0];
items[items.length-1].de = selectOneArray[1];
var colorArray = getStringColors0(val);
for (var i = 0; i < colorArray.length; i++)
{
items[items.length] = new Object();
items[items.length-1].id = colorArray[i];
items[items.length-1].de = colorArray[++i];
}
updateSelector(sel_element2,items);
}
}
function updateSelector(selector,items)
{
var options = selector.options;
var selectedItem = selector.options[selector.selectedIndex].text;
for (var i = 0; i < Math.min(items.length, options.length); i++)
{
options[i].value = items[i].id;
options[i].text = items[i].de;
}
for (var i = Math.min(items.length, options.length); i < items.length; i++)
{
var newOpt = document.createElement("OPTION");
newOpt.value = items[i].id;
newOpt.text = items[i].de;
selector.add(newOpt);
}
/* Truncate selector if needed: */
selector.length = items.length;
var haveMatch = false;
for (var i = 0; i < selector.options.length; i++)
{
if (selector.options[i].text == selectedItem)
{
selector.options[i].selected = true;
haveMatch = true;
}
}
if (!haveMatch)
{
options[0].selected = true;
}
}
function updateFields0(thisDropDown,prodIndex)
{
if (thisDropDown)
{
//alert(thisDropDown.name);
var thisImageMap = eval('imageMap_'+prodIndex);
if (thisDropDown.name.match("colors_") || thisDropDown.name.match("prod_"))
{
/*
for(var i = 0; i < itemMap0.length; i++)
{
priceField = eval('document.related0.price_'+prodIndex);
priceField.value = itemMap0[i].price;
}
*/
}
/*
else if (thisDropDown.selectedIndex == 0)
{
clearFields(thisDropDown,prodIndex);
}
*/
}
}
function setSize0()
{
if ("" !=null && "".length > 0)
{
var optionSize = document.related0.prod_0.options;
for (var sj = 0 ; sj< optionSize.length; sj++)
{
if ("".indexOf("|") > -1)
{
var arrayOfSizeAndText1 = "".split("|");
var sizeIds="";
if (arrayOfSizeAndText1.length == 2)
{
sizeIds = arrayOfSizeAndText1[1];
}
var sizevalue = optionSize[sj].text;
if (sizevalue.toLowerCase().indexOf(sizeIds.toLowerCase()) > -1)
{
optionSize[sj].selected = true;
break;
}
}
}
}
}
function getStringColors0(pidSku)
{
var pidSkuArray = pidSku.split("|");
productId = pidSkuArray[0];
colorId = pidSkuArray[1];
var strSizes = new Array();
var j = 0;
for(var i = 0; i < itemMap0.length; i++)
{
if(itemMap0[i].pid == productId && itemMap0[i].cId == colorId)
{
strSizes[j] = itemMap0[i].pid+"|"+itemMap0[i].sku;
j++;
/*
if (itemMap0[i].avail == "OUT_OF_STOCK" || itemMap0[i].avail == "NOT_AVAILABLE")
{
strSizes[j] = itemMap0[i].sDesc + " - " +"Out Of Stock";
}
else
{
strSizes[j] = itemMap0[i].sDesc;
}
*/
strSizes[j] = itemMap0[i].sDesc;
j++;
}
}
return strSizes;
}
Price: $110.00 Sale Price: $59.99
Color: White Size: SMALL
itemMap1 = new Array();
itemMap1[0] = { pid: '2019244',sku: 2063594,sDesc: "SMALL",sId: "100105",cDesc: "(Navy/White)",cId: "1001416",avail: "IN_STOCK",price: "$98.00",jdaStyle: "21197"};
itemMap1[1] = { pid: '2019244',sku: 2063599,sDesc: "SMALL",sId: "100105",cDesc: "(Black/White)",cId: "1002154",avail: "IN_STOCK",price: "$98.00",jdaStyle: "21197"};
itemMap1[2] = { pid: '2019244',sku: 2082341,sDesc: "SMALL",sId: "100105",cDesc: "(White/Flag Blue)",cId: "1001278",avail: "IN_STOCK",price: "$98.00",jdaStyle: "21197"};
itemMap1[3] = { pid: '2019244',sku: 2242924,sDesc: "SMALL",sId: "100105",cDesc: "(Newport Navy/Yellow)",cId: "1005621",avail: "IN_STOCK",price: "$98.00",jdaStyle: "21197"};
itemMap1[4] = { pid: '2019244',sku: 2242939,sDesc: "SMALL",sId: "100105",cDesc: "(Polo Black/Red)",cId: "1015574",avail: "IN_STOCK",price: "$98.00",jdaStyle: "21197"};
itemMap1[5] = { pid: '2019244',sku: 2784837,sDesc: "SMALL",sId: "100105",cDesc: "(Northwest Pine)",cId: "1002659",avail: "IN_STOCK",price: "$98.00",jdaStyle: "21197"};
itemMap1[6] = { pid: '2019244',sku: 4372195,sDesc: "SMALL",sId: "100105",cDesc: "(Athletic Green)",cId: "1002506",avail: "IN_STOCK",price: "$98.00",jdaStyle: "21197"};
itemMap1[7] = { pid: '2019244',sku: 4372200,sDesc: "SMALL",sId: "100105",cDesc: "(Cruise Navy)",cId: "1035634",avail: "IN_STOCK",price: "$98.00",jdaStyle: "21197"};
itemMap1[8] = { pid: '2019244',sku: 4372205,sDesc: "SMALL",sId: "100105",cDesc: "(RL2000 Red)",cId: "1000097",avail: "IN_STOCK",price: "$98.00",jdaStyle: "21197"};
itemMap1[9] = { pid: '2019244',sku: 4372210,sDesc: "SMALL",sId: "100105",cDesc: "(Polo Black)",cId: "1005041",avail: "IN_STOCK",price: "$98.00",jdaStyle: "21197"};
itemMap1[10] = { pid: '2019244',sku: 4372215,sDesc: "SMALL",sId: "100105",cDesc: "(Basketball Orange)",cId: "1001345",avail: "IN_STOCK",price: "$98.00",jdaStyle: "21197"};
itemMap1[11] = { pid: '2019244',sku: 4372220,sDesc: "SMALL",sId: "100105",cDesc: "(Oasis Yellow)",cId: "1001543",avail: "IN_STOCK",price: "$98.00",jdaStyle: "21197"};
itemMap1[12] = { pid: '2019244',sku: 4372225,sDesc: "SMALL",sId: "100105",cDesc: "(Rugby Royal)",cId: "1030929",avail: "IN_STOCK",price: "$98.00",jdaStyle: "21197"};
itemMap1[13] = { pid: '2019244',sku: 4650659,sDesc: "SMALL",sId: "100105",cDesc: "(White/Polo Black)",cId: "1011987",avail: "IN_STOCK",price: "$98.00",jdaStyle: "21197"};
itemMap1[14] = { pid: '2019244',sku: 5565174,sDesc: "SMALL",sId: "100105",cDesc: "(Stem)",cId: "1000938",avail: "IN_STOCK",price: "$98.00",jdaStyle: "21197"};
itemMap1[15] = { pid: '2019244',sku: 5565179,sDesc: "SMALL",sId: "100105",cDesc: "(Empire Purple)",cId: "1054853",avail: "IN_STOCK",price: "$98.00",jdaStyle: "21197"};
itemMap1[16] = { pid: '2019244',sku: 5565184,sDesc: "SMALL",sId: "100105",cDesc: "(Resort Orange)",cId: "1000406",avail: "IN_STOCK",price: "$98.00",jdaStyle: "21197"};
itemMap1[17] = { pid: '2019244',sku: 5565189,sDesc: "SMALL",sId: "100105",cDesc: "(Chatham Blue)",cId: "1000479",avail: "IN_STOCK",price: "$98.00",jdaStyle: "21197"};
itemMap1[18] = { pid: '2019244',sku: 5565194,sDesc: "SMALL",sId: "100105",cDesc: "(Carmel Pink)",cId: "1000118",avail: "IN_STOCK",price: "$98.00",jdaStyle: "21197"};
itemMap1[19] = { pid: '2019244',sku: 5565406,sDesc: "SMALL",sId: "100105",cDesc: "(Newport Navy)",cId: "1000904",avail: "IN_STOCK",price: "$98.00",jdaStyle: "21197"};
itemMap1[20] = { pid: '2019244',sku: 5565600,sDesc: "SMALL",sId: "100105",cDesc: "(BLUE RIBBON)",cId: "1002302",avail: "IN_STOCK",price: "$98.00",jdaStyle: "21197"};
itemMap1[21] = { pid: '2019244',sku: 5565605,sDesc: "SMALL",sId: "100105",cDesc: "(Wicket Yellow)",cId: "1001120",avail: "IN_STOCK",price: "$98.00",jdaStyle: "21197"};
itemMap1[22] = { pid: '2019244',sku: 2063595,sDesc: "MEDIUM",sId: "100047",cDesc: "(Navy/White)",cId: "1001416",avail: "IN_STOCK",price: "$98.00",jdaStyle: "21197"};
itemMap1[23] = { pid: '2019244',sku: 2063600,sDesc: "MEDIUM",sId: "100047",cDesc: "(Black/White)",cId: "1002154",avail: "IN_STOCK",price: "$98.00",jdaStyle: "21197"};
itemMap1[24] = { pid: '2019244',sku: 2082342,sDesc: "MEDIUM",sId: "100047",cDesc: "(White/Flag Blue)",cId: "1001278",avail: "IN_STOCK",price: "$98.00",jdaStyle: "21197"};
itemMap1[25] = { pid: '2019244',sku: 2242925,sDesc: "MEDIUM",sId: "100047",cDesc: "(Newport Navy/Yellow)",cId: "1005621",avail: "IN_STOCK",price: "$98.00",jdaStyle: "21197"};
itemMap1[26] = { pid: '2019244',sku: 2242940,sDesc: "MEDIUM",sId: "100047",cDesc: "(Polo Black/Red)",cId: "1015574",avail: "IN_STOCK",price: "$98.00",jdaStyle: "21197"};
itemMap1[27] = { pid: '2019244',sku: 2784838,sDesc: "MEDIUM",sId: "100047",cDesc: "(Northwest Pine)",cId: "1002659",avail: "IN_STOCK",price: "$98.00",jdaStyle: "21197"};
itemMap1[28] = { pid: '2019244',sku: 4372196,sDesc: "MEDIUM",sId: "100047",cDesc: "(Athletic Green)",cId: "1002506",avail: "IN_STOCK",price: "$98.00",jdaStyle: "21197"};
itemMap1[29] = { pid: '2019244',sku: 4372201,sDesc: "MEDIUM",sId: "100047",cDesc: "(Cruise Navy)",cId: "1035634",avail: "IN_STOCK",price: "$98.00",jdaStyle: "21197"};
itemMap1[30] = { pid: '2019244',sku: 4372206,sDesc: "MEDIUM",sId: "100047",cDesc: "(RL2000 Red)",cId: "1000097",avail: "IN_STOCK",price: "$98.00",jdaStyle: "21197"};
itemMap1[31] = { pid: '2019244',sku: 4372211,sDesc: "MEDIUM",sId: "100047",cDesc: "(Polo Black)",cId: "1005041",avail: "IN_STOCK",price: "$98.00",jdaStyle: "21197"};
itemMap1[32] = { pid: '2019244',sku: 4372216,sDesc: "MEDIUM",sId: "100047",cDesc: "(Basketball Orange)",cId: "1001345",avail: "IN_STOCK",price: "$98.00",jdaStyle: "21197"};
itemMap1[33] = { pid: '2019244',sku: 4372221,sDesc: "MEDIUM",sId: "100047",cDesc: "(Oasis Yellow)",cId: "1001543",avail: "IN_STOCK",price: "$98.00",jdaStyle: "21197"};
itemMap1[34] = { pid: '2019244',sku: 4372226,sDesc: "MEDIUM",sId: "100047",cDesc: "(Rugby Royal)",cId: "1030929",avail: "IN_STOCK",price: "$98.00",jdaStyle: "21197"};
itemMap1[35] = { pid: '2019244',sku: 4650660,sDesc: "MEDIUM",sId: "100047",cDesc: "(White/Polo Black)",cId: "1011987",avail: "IN_STOCK",price: "$98.00",jdaStyle: "21197"};
itemMap1[36] = { pid: '2019244',sku: 5565175,sDesc: "MEDIUM",sId: "100047",cDesc: "(Stem)",cId: "1000938",avail: "IN_STOCK",price: "$98.00",jdaStyle: "21197"};
itemMap1[37] = { pid: '2019244',sku: 5565180,sDesc: "MEDIUM",sId: "100047",cDesc: "(Empire Purple)",cId: "1054853",avail: "IN_STOCK",price: "$98.00",jdaStyle: "21197"};
itemMap1[38] = { pid: '2019244',sku: 5565185,sDesc: "MEDIUM",sId: "100047",cDesc: "(Resort Orange)",cId: "1000406",avail: "IN_STOCK",price: "$98.00",jdaStyle: "21197"};
itemMap1[39] = { pid: '2019244',sku: 5565190,sDesc: "MEDIUM",sId: "100047",cDesc: "(Chatham Blue)",cId: "1000479",avail: "IN_STOCK",price: "$98.00",jdaStyle: "21197"};
itemMap1[40] = { pid: '2019244',sku: 5565195,sDesc: "MEDIUM",sId: "100047",cDesc: "(Carmel Pink)",cId: "1000118",avail: "IN_STOCK",price: "$98.00",jdaStyle: "21197"};
itemMap1[41] = { pid: '2019244',sku: 5565407,sDesc: "MEDIUM",sId: "100047",cDesc: "(Newport Navy)",cId: "1000904",avail: "IN_STOCK",price: "$98.00",jdaStyle: "21197"};
itemMap1[42] = { pid: '2019244',sku: 5565601,sDesc: "MEDIUM",sId: "100047",cDesc: "(BLUE RIBBON)",cId: "1002302",avail: "IN_STOCK",price: "$98.00",jdaStyle: "21197"};
itemMap1[43] = { pid: '2019244',sku: 5565606,sDesc: "MEDIUM",sId: "100047",cDesc: "(Wicket Yellow)",cId: "1001120",avail: "IN_STOCK",price: "$98.00",jdaStyle: "21197"};
itemMap1[44] = { pid: '2019244',sku: 2063596,sDesc: "LARGE",sId: "100044",cDesc: "(Navy/White)",cId: "1001416",avail: "IN_STOCK",price: "$98.00",jdaStyle: "21197"};
itemMap1[45] = { pid: '2019244',sku: 2063601,sDesc: "LARGE",sId: "100044",cDesc: "(Black/White)",cId: "1002154",avail: "IN_STOCK",price: "$98.00",jdaStyle: "21197"};
itemMap1[46] = { pid: '2019244',sku: 2082343,sDesc: "LARGE",sId: "100044",cDesc: "(White/Flag Blue)",cId: "1001278",avail: "IN_STOCK",price: "$98.00",jdaStyle: "21197"};
itemMap1[47] = { pid: '2019244',sku: 2242926,sDesc: "LARGE",sId: "100044",cDesc: "(Newport Navy/Yellow)",cId: "1005621",avail: "IN_STOCK",price: "$98.00",jdaStyle: "21197"};
itemMap1[48] = { pid: '2019244',sku: 2242941,sDesc: "LARGE",sId: "100044",cDesc: "(Polo Black/Red)",cId: "1015574",avail: "IN_STOCK",price: "$98.00",jdaStyle: "21197"};
itemMap1[49] = { pid: '2019244',sku: 2784839,sDesc: "LARGE",sId: "100044",cDesc: "(Northwest Pine)",cId: "1002659",avail: "IN_STOCK",price: "$98.00",jdaStyle: "21197"};
itemMap1[50] = { pid: '2019244',sku: 4372197,sDesc: "LARGE",sId: "100044",cDesc: "(Athletic Green)",cId: "1002506",avail: "IN_STOCK",price: "$98.00",jdaStyle: "21197"};
itemMap1[51] = { pid: '2019244',sku: 4372202,sDesc: "LARGE",sId: "100044",cDesc: "(Cruise Navy)",cId: "1035634",avail: "IN_STOCK",price: "$98.00",jdaStyle: "21197"};
itemMap1[52] = { pid: '2019244',sku: 4372207,sDesc: "LARGE",sId: "100044",cDesc: "(RL2000 Red)",cId: "1000097",avail: "IN_STOCK",price: "$98.00",jdaStyle: "21197"};
itemMap1[53] = { pid: '2019244',sku: 4372212,sDesc: "LARGE",sId: "100044",cDesc: "(Polo Black)",cId: "1005041",avail: "IN_STOCK",price: "$98.00",jdaStyle: "21197"};
itemMap1[54] = { pid: '2019244',sku: 4372217,sDesc: "LARGE",sId: "100044",cDesc: "(Basketball Orange)",cId: "1001345",avail: "IN_STOCK",price: "$98.00",jdaStyle: "21197"};
itemMap1[55] = { pid: '2019244',sku: 4372222,sDesc: "LARGE",sId: "100044",cDesc: "(Oasis Yellow)",cId: "1001543",avail: "IN_STOCK",price: "$98.00",jdaStyle: "21197"};
itemMap1[56] = { pid: '2019244',sku: 4372227,sDesc: "LARGE",sId: "100044",cDesc: "(Rugby Royal)",cId: "1030929",avail: "IN_STOCK",price: "$98.00",jdaStyle: "21197"};
itemMap1[57] = { pid: '2019244',sku: 4650661,sDesc: "LARGE",sId: "100044",cDesc: "(White/Polo Black)",cId: "1011987",avail: "IN_STOCK",price: "$98.00",jdaStyle: "21197"};
itemMap1[58] = { pid: '2019244',sku: 5565176,sDesc: "LARGE",sId: "100044",cDesc: "(Stem)",cId: "1000938",avail: "IN_STOCK",price: "$98.00",jdaStyle: "21197"};
itemMap1[59] = { pid: '2019244',sku: 5565181,sDesc: "LARGE",sId: "100044",cDesc: "(Empire Purple)",cId: "1054853",avail: "IN_STOCK",price: "$98.00",jdaStyle: "21197"};
itemMap1[60] = { pid: '2019244',sku: 5565186,sDesc: "LARGE",sId: "100044",cDesc: "(Resort Orange)",cId: "1000406",avail: "IN_STOCK",price: "$98.00",jdaStyle: "21197"};
itemMap1[61] = { pid: '2019244',sku: 5565191,sDesc: "LARGE",sId: "100044",cDesc: "(Chatham Blue)",cId: "1000479",avail: "IN_STOCK",price: "$98.00",jdaStyle: "21197"};
itemMap1[62] = { pid: '2019244',sku: 5565196,sDesc: "LARGE",sId: "100044",cDesc: "(Carmel Pink)",cId: "1000118",avail: "IN_STOCK",price: "$98.00",jdaStyle: "21197"};
itemMap1[63] = { pid: '2019244',sku: 5565408,sDesc: "LARGE",sId: "100044",cDesc: "(Newport Navy)",cId: "1000904",avail: "IN_STOCK",price: "$98.00",jdaStyle: "21197"};
itemMap1[64] = { pid: '2019244',sku: 5565602,sDesc: "LARGE",sId: "100044",cDesc: "(BLUE RIBBON)",cId: "1002302",avail: "IN_STOCK",price: "$98.00",jdaStyle: "21197"};
itemMap1[65] = { pid: '2019244',sku: 5565607,sDesc: "LARGE",sId: "100044",cDesc: "(Wicket Yellow)",cId: "1001120",avail: "IN_STOCK",price: "$98.00",jdaStyle: "21197"};
itemMap1[66] = { pid: '2019244',sku: 2063597,sDesc: "X-LARGE",sId: "100606",cDesc: "(Navy/White)",cId: "1001416",avail: "IN_STOCK",price: "$98.00",jdaStyle: "21197"};
itemMap1[67] = { pid: '2019244',sku: 2063602,sDesc: "X-LARGE",sId: "100606",cDesc: "(Black/White)",cId: "1002154",avail: "IN_STOCK",price: "$98.00",jdaStyle: "21197"};
itemMap1[68] = { pid: '2019244',sku: 2082344,sDesc: "X-LARGE",sId: "100606",cDesc: "(White/Flag Blue)",cId: "1001278",avail: "IN_STOCK",price: "$98.00",jdaStyle: "21197"};
itemMap1[69] = { pid: '2019244',sku: 2242927,sDesc: "X-LARGE",sId: "100606",cDesc: "(Newport Navy/Yellow)",cId: "1005621",avail: "IN_STOCK",price: "$98.00",jdaStyle: "21197"};
itemMap1[70] = { pid: '2019244',sku: 2242942,sDesc: "X-LARGE",sId: "100606",cDesc: "(Polo Black/Red)",cId: "1015574",avail: "IN_STOCK",price: "$98.00",jdaStyle: "21197"};
itemMap1[71] = { pid: '2019244',sku: 2784840,sDesc: "X-LARGE",sId: "100606",cDesc: "(Northwest Pine)",cId: "1002659",avail: "IN_STOCK",price: "$98.00",jdaStyle: "21197"};
itemMap1[72] = { pid: '2019244',sku: 4372198,sDesc: "X-LARGE",sId: "100606",cDesc: "(Athletic Green)",cId: "1002506",avail: "IN_STOCK",price: "$98.00",jdaStyle: "21197"};
itemMap1[73] = { pid: '2019244',sku: 4372203,sDesc: "X-LARGE",sId: "100606",cDesc: "(Cruise Navy)",cId: "1035634",avail: "IN_STOCK",price: "$98.00",jdaStyle: "21197"};
itemMap1[74] = { pid: '2019244',sku: 4372208,sDesc: "X-LARGE",sId: "100606",cDesc: "(RL2000 Red)",cId: "1000097",avail: "IN_STOCK",price: "$98.00",jdaStyle: "21197"};
itemMap1[75] = { pid: '2019244',sku: 4372213,sDesc: "X-LARGE",sId: "100606",cDesc: "(Polo Black)",cId: "1005041",avail: "IN_STOCK",price: "$98.00",jdaStyle: "21197"};
itemMap1[76] = { pid: '2019244',sku: 4372218,sDesc: "X-LARGE",sId: "100606",cDesc: "(Basketball Orange)",cId: "1001345",avail: "IN_STOCK",price: "$98.00",jdaStyle: "21197"};
itemMap1[77] = { pid: '2019244',sku: 4372223,sDesc: "X-LARGE",sId: "100606",cDesc: "(Oasis Yellow)",cId: "1001543",avail: "IN_STOCK",price: "$98.00",jdaStyle: "21197"};
itemMap1[78] = { pid: '2019244',sku: 4372228,sDesc: "X-LARGE",sId: "100606",cDesc: "(Rugby Royal)",cId: "1030929",avail: "IN_STOCK",price: "$98.00",jdaStyle: "21197"};
itemMap1[79] = { pid: '2019244',sku: 4650662,sDesc: "X-LARGE",sId: "100606",cDesc: "(White/Polo Black)",cId: "1011987",avail: "IN_STOCK",price: "$98.00",jdaStyle: "21197"};
itemMap1[80] = { pid: '2019244',sku: 5565096,sDesc: "X-LARGE",sId: "100606",cDesc: "(Newport Navy)",cId: "1000904",avail: "IN_STOCK",price: "$98.00",jdaStyle: "21197"};
itemMap1[81] = { pid: '2019244',sku: 5565177,sDesc: "X-LARGE",sId: "100606",cDesc: "(Stem)",cId: "1000938",avail: "IN_STOCK",price: "$98.00",jdaStyle: "21197"};
itemMap1[82] = { pid: '2019244',sku: 5565182,sDesc: "X-LARGE",sId: "100606",cDesc: "(Empire Purple)",cId: "1054853",avail: "IN_STOCK",price: "$98.00",jdaStyle: "21197"};
itemMap1[83] = { pid: '2019244',sku: 5565187,sDesc: "X-LARGE",sId: "100606",cDesc: "(Resort Orange)",cId: "1000406",avail: "IN_STOCK",price: "$98.00",jdaStyle: "21197"};
itemMap1[84] = { pid: '2019244',sku: 5565192,sDesc: "X-LARGE",sId: "100606",cDesc: "(Chatham Blue)",cId: "1000479",avail: "IN_STOCK",price: "$98.00",jdaStyle: "21197"};
itemMap1[85] = { pid: '2019244',sku: 5565197,sDesc: "X-LARGE",sId: "100606",cDesc: "(Carmel Pink)",cId: "1000118",avail: "IN_STOCK",price: "$98.00",jdaStyle: "21197"};
itemMap1[86] = { pid: '2019244',sku: 5565603,sDesc: "X-LARGE",sId: "100606",cDesc: "(BLUE RIBBON)",cId: "1002302",avail: "IN_STOCK",price: "$98.00",jdaStyle: "21197"};
itemMap1[87] = { pid: '2019244',sku: 5565608,sDesc: "X-LARGE",sId: "100606",cDesc: "(Wicket Yellow)",cId: "1001120",avail: "IN_STOCK",price: "$98.00",jdaStyle: "21197"};
itemMap1[88] = { pid: '2019244',sku: 5565178,sDesc: "XX-LARGE",sId: "100605",cDesc: "(Stem)",cId: "1000938",avail: "IN_STOCK",price: "$98.00",jdaStyle: "21197"};
itemMap1[89] = { pid: '2019244',sku: 5565188,sDesc: "XX-LARGE",sId: "100605",cDesc: "(Resort Orange)",cId: "1000406",avail: "IN_STOCK",price: "$98.00",jdaStyle: "21197"};
// Populate color array to pass to updateSelector function
function populateSizes1(sel_element1, sel_element2)
{
var val = sel_element1.options[sel_element1.selectedIndex].value;
var items = new Array();
// If user sets color dropdown back to "Color" reset the prod_ dropdown
if(val == '')
{
var selectOneArray = new Array("2019244","Select Size");
items[items.length] = new Object();
items[items.length-1].id = selectOneArray[0];
items[items.length-1].de = selectOneArray[1];
updateSelector(sel_element2,items);
return;
}
// If color was selected, fill colorArray
if(val != "-1")
{
var selectOneArray = new Array("2019244","Select Size");
items[items.length] = new Object();
items[items.length-1].id = selectOneArray[0];
items[items.length-1].de = selectOneArray[1];
var colorArray = getStringColors1(val);
for (var i = 0; i < colorArray.length; i++)
{
items[items.length] = new Object();
items[items.length-1].id = colorArray[i];
items[items.length-1].de = colorArray[++i];
}
updateSelector(sel_element2,items);
}
}
function updateSelector(selector,items)
{
var options = selector.options;
var selectedItem = selector.options[selector.selectedIndex].text;
for (var i = 0; i < Math.min(items.length, options.length); i++)
{
options[i].value = items[i].id;
options[i].text = items[i].de;
}
for (var i = Math.min(items.length, options.length); i < items.length; i++)
{
var newOpt = document.createElement("OPTION");
newOpt.value = items[i].id;
newOpt.text = items[i].de;
selector.add(newOpt);
}
/* Truncate selector if needed: */
selector.length = items.length;
var haveMatch = false;
for (var i = 0; i < selector.options.length; i++)
{
if (selector.options[i].text == selectedItem)
{
selector.options[i].selected = true;
haveMatch = true;
}
}
if (!haveMatch)
{
options[0].selected = true;
}
}
function updateFields1(thisDropDown,prodIndex)
{
if (thisDropDown)
{
//alert(thisDropDown.name);
var thisImageMap = eval('imageMap_'+prodIndex);
if (thisDropDown.name.match("colors_") || thisDropDown.name.match("prod_"))
{
/*
for(var i = 0; i < itemMap1.length; i++)
{
priceField = eval('document.related1.price_'+prodIndex);
priceField.value = itemMap1[i].price;
}
*/
}
/*
else if (thisDropDown.selectedIndex == 0)
{
clearFields(thisDropDown,prodIndex);
}
*/
}
}
function setSize1()
{
if ("" !=null && "".length > 0)
{
var optionSize = document.related1.prod_0.options;
for (var sj = 0 ; sj< optionSize.length; sj++)
{
if ("".indexOf("|") > -1)
{
var arrayOfSizeAndText1 = "".split("|");
var sizeIds="";
if (arrayOfSizeAndText1.length == 2)
{
sizeIds = arrayOfSizeAndText1[1];
}
var sizevalue = optionSize[sj].text;
if (sizevalue.toLowerCase().indexOf(sizeIds.toLowerCase()) > -1)
{
optionSize[sj].selected = true;
break;
}
}
}
}
}
function getStringColors1(pidSku)
{
var pidSkuArray = pidSku.split("|");
productId = pidSkuArray[0];
colorId = pidSkuArray[1];
var strSizes = new Array();
var j = 0;
for(var i = 0; i < itemMap1.length; i++)
{
if(itemMap1[i].pid == productId && itemMap1[i].cId == colorId)
{
strSizes[j] = itemMap1[i].pid+"|"+itemMap1[i].sku;
j++;
/*
if (itemMap1[i].avail == "OUT_OF_STOCK" || itemMap1[i].avail == "NOT_AVAILABLE")
{
strSizes[j] = itemMap1[i].sDesc + " - " +"Out Of Stock";
}
else
{
strSizes[j] = itemMap1[i].sDesc;
}
*/
strSizes[j] = itemMap1[i].sDesc;
j++;
}
}
return strSizes;
}
Price: $98.00
Color: Select Color Empire Purple BLUE RIBBON Chatham Blue Carmel Pink Wicket Yellow Oasis Yellow Athletic Green Stem RL2000 Red Resort Orange Basketball Orange Northwest Pine Rugby Royal Cruise Navy Navy/White Newport Navy Newport Navy/Yellow Polo Black Polo Black/Red Black/White White/Flag Blue White/Polo Black Size: Select Size SMALL MEDIUM LARGE X-LARGE
itemMap2 = new Array();
itemMap2[0] = { pid: '2130294',sku: 1421718,sDesc: "SMALL - $75.00",sId: "100105",cDesc: "(Wicket Yellow)",cId: "1001120",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[1] = { pid: '2130294',sku: 1451496,sDesc: "SMALL - $75.00",sId: "100105",cDesc: "(White)",cId: "1000515",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[2] = { pid: '2130294',sku: 1512087,sDesc: "SMALL - $75.00",sId: "100105",cDesc: "(Chic Cream)",cId: "1001481",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[3] = { pid: '2130294',sku: 1512099,sDesc: "SMALL - $75.00",sId: "100105",cDesc: "(Chatham Blue)",cId: "1000479",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[4] = { pid: '2130294',sku: 1536500,sDesc: "SMALL - $75.00",sId: "100105",cDesc: "(Newport Navy)",cId: "1000904",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[5] = { pid: '2130294',sku: 1617839,sDesc: "SMALL - $75.00",sId: "100105",cDesc: "(Fall Royal W/Green)",cId: "1073411",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[6] = { pid: '2130294',sku: 1727763,sDesc: "SMALL - $75.00",sId: "100105",cDesc: "(Maui Pink)",cId: "1004906",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[7] = { pid: '2130294',sku: 1836051,sDesc: "SMALL - $75.00",sId: "100105",cDesc: "(Carmel Pink)",cId: "1000118",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[8] = { pid: '2130294',sku: 2400960,sDesc: "SMALL - $75.00",sId: "100105",cDesc: "(RL 2000 Red)",cId: "1001455",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[9] = { pid: '2130294',sku: 3222726,sDesc: "SMALL - $75.00",sId: "100105",cDesc: "(Andover Heather)",cId: "1001479",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[10] = { pid: '2130294',sku: 3222731,sDesc: "SMALL - $75.00",sId: "100105",cDesc: "(Dune Heather)",cId: "1017389",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[11] = { pid: '2130294',sku: 3498188,sDesc: "SMALL - $75.00",sId: "100105",cDesc: "(North West Pine)",cId: "1032246",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[12] = { pid: '2130294',sku: 3498193,sDesc: "SMALL - $75.00",sId: "100105",cDesc: "(Rugby Royal)",cId: "1030929",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[13] = { pid: '2130294',sku: 3633915,sDesc: "SMALL - $75.00",sId: "100105",cDesc: "(Polo Black)",cId: "1005041",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[14] = { pid: '2130294',sku: 5276484,sDesc: "SMALL - $75.00",sId: "100105",cDesc: "(English Green)",cId: "1002493",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[15] = { pid: '2130294',sku: 5565199,sDesc: "SMALL - $75.00",sId: "100105",cDesc: "(Casino Red)",cId: "1001404",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[16] = { pid: '2130294',sku: 5565204,sDesc: "SMALL - $75.00",sId: "100105",cDesc: "(Smoke Heather)",cId: "1076668",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[17] = { pid: '2130294',sku: 5565209,sDesc: "SMALL - $75.00",sId: "100105",cDesc: "(Haven Purple)",cId: "1031040",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[18] = { pid: '2130294',sku: 5565214,sDesc: "SMALL - $75.00",sId: "100105",cDesc: "(Injection Red)",cId: "1001142",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[19] = { pid: '2130294',sku: 5565219,sDesc: "SMALL - $75.00",sId: "100105",cDesc: "(Laguna Purple)",cId: "1000112",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[20] = { pid: '2130294',sku: 5565224,sDesc: "SMALL - $75.00",sId: "100105",cDesc: "(Jamaica Heather)",cId: "1024045",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[21] = { pid: '2130294',sku: 5565229,sDesc: "SMALL - $75.00",sId: "100105",cDesc: "(Oasis Yellow)",cId: "1001543",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[22] = { pid: '2130294',sku: 5565234,sDesc: "SMALL - $75.00",sId: "100105",cDesc: "(Snuff)",cId: "1001970",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[23] = { pid: '2130294',sku: 5565239,sDesc: "SMALL - $75.00",sId: "100105",cDesc: "(Modern Pink)",cId: "1005036",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[24] = { pid: '2130294',sku: 5565775,sDesc: "SMALL - $75.00",sId: "100105",cDesc: "(Aerial Blue)",cId: "1000144",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[25] = { pid: '2130294',sku: 5565780,sDesc: "SMALL - $75.00",sId: "100105",cDesc: "(Jungle)",cId: "1023321",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[26] = { pid: '2130294',sku: 5565785,sDesc: "SMALL - $75.00",sId: "100105",cDesc: "(Silver Heather)",cId: "1035271",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[27] = { pid: '2130294',sku: 5565790,sDesc: "SMALL - $75.00",sId: "100105",cDesc: "(Hunter Navy)",cId: "1035272",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[28] = { pid: '2130294',sku: 5632227,sDesc: "SMALL - $75.00",sId: "100105",cDesc: "(Active Pink)",cId: "1002438",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[29] = { pid: '2130294',sku: 5632237,sDesc: "SMALL - $75.00",sId: "100105",cDesc: "(Baldwin Blue)",cId: "1005667",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[30] = { pid: '2130294',sku: 5632242,sDesc: "SMALL - $75.00",sId: "100105",cDesc: "(Caribbean Blue)",cId: "1000211",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[31] = { pid: '2130294',sku: 5632247,sDesc: "SMALL - $75.00",sId: "100105",cDesc: "(Danger Yellow)",cId: "1076669",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[32] = { pid: '2130294',sku: 5632252,sDesc: "SMALL - $75.00",sId: "100105",cDesc: "(Jewel Green)",cId: "1031363",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[33] = { pid: '2130294',sku: 5632257,sDesc: "SMALL - $75.00",sId: "100105",cDesc: "(Key Lime)",cId: "1006213",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[34] = { pid: '2130294',sku: 5632262,sDesc: "SMALL - $75.00",sId: "100105",cDesc: "(Maltese Orange)",cId: "1000709",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[35] = { pid: '2130294',sku: 5632272,sDesc: "SMALL - $75.00",sId: "100105",cDesc: "(Powder Purple)",cId: "1001501",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[36] = { pid: '2130294',sku: 5632282,sDesc: "SMALL - $75.00",sId: "100105",cDesc: "(Victory Green)",cId: "1075092",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[37] = { pid: '2130294',sku: 5632287,sDesc: "SMALL - $75.00",sId: "100105",cDesc: "(Vintage Purple)",cId: "1076670",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[38] = { pid: '2130294',sku: 5633386,sDesc: "SMALL - $75.00",sId: "100105",cDesc: "(Player Red)",cId: "1015862",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[39] = { pid: '2130294',sku: 1421717,sDesc: "MEDIUM - $75.00",sId: "100047",cDesc: "(Wicket Yellow)",cId: "1001120",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[40] = { pid: '2130294',sku: 1451495,sDesc: "MEDIUM - $75.00",sId: "100047",cDesc: "(White)",cId: "1000515",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[41] = { pid: '2130294',sku: 1512088,sDesc: "MEDIUM - $75.00",sId: "100047",cDesc: "(Chic Cream)",cId: "1001481",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[42] = { pid: '2130294',sku: 1512098,sDesc: "MEDIUM - $75.00",sId: "100047",cDesc: "(Chatham Blue)",cId: "1000479",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[43] = { pid: '2130294',sku: 1536498,sDesc: "MEDIUM - $75.00",sId: "100047",cDesc: "(Newport Navy)",cId: "1000904",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[44] = { pid: '2130294',sku: 1617191,sDesc: "MEDIUM - $75.00",sId: "100047",cDesc: "(Fall Royal W/Green)",cId: "1073411",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[45] = { pid: '2130294',sku: 1732351,sDesc: "MEDIUM - $75.00",sId: "100047",cDesc: "(Maui Pink)",cId: "1004906",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[46] = { pid: '2130294',sku: 1828700,sDesc: "MEDIUM - $75.00",sId: "100047",cDesc: "(Carmel Pink)",cId: "1000118",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[47] = { pid: '2130294',sku: 2400961,sDesc: "MEDIUM - $75.00",sId: "100047",cDesc: "(RL 2000 Red)",cId: "1001455",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[48] = { pid: '2130294',sku: 3222727,sDesc: "MEDIUM - $75.00",sId: "100047",cDesc: "(Andover Heather)",cId: "1001479",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[49] = { pid: '2130294',sku: 3222732,sDesc: "MEDIUM - $75.00",sId: "100047",cDesc: "(Dune Heather)",cId: "1017389",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[50] = { pid: '2130294',sku: 3498189,sDesc: "MEDIUM - $75.00",sId: "100047",cDesc: "(North West Pine)",cId: "1032246",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[51] = { pid: '2130294',sku: 3498194,sDesc: "MEDIUM - $75.00",sId: "100047",cDesc: "(Rugby Royal)",cId: "1030929",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[52] = { pid: '2130294',sku: 3633916,sDesc: "MEDIUM - $75.00",sId: "100047",cDesc: "(Polo Black)",cId: "1005041",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[53] = { pid: '2130294',sku: 5276485,sDesc: "MEDIUM - $75.00",sId: "100047",cDesc: "(English Green)",cId: "1002493",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[54] = { pid: '2130294',sku: 5565200,sDesc: "MEDIUM - $75.00",sId: "100047",cDesc: "(Casino Red)",cId: "1001404",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[55] = { pid: '2130294',sku: 5565205,sDesc: "MEDIUM - $75.00",sId: "100047",cDesc: "(Smoke Heather)",cId: "1076668",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[56] = { pid: '2130294',sku: 5565210,sDesc: "MEDIUM - $75.00",sId: "100047",cDesc: "(Haven Purple)",cId: "1031040",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[57] = { pid: '2130294',sku: 5565215,sDesc: "MEDIUM - $75.00",sId: "100047",cDesc: "(Injection Red)",cId: "1001142",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[58] = { pid: '2130294',sku: 5565220,sDesc: "MEDIUM - $75.00",sId: "100047",cDesc: "(Laguna Purple)",cId: "1000112",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[59] = { pid: '2130294',sku: 5565225,sDesc: "MEDIUM - $75.00",sId: "100047",cDesc: "(Jamaica Heather)",cId: "1024045",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[60] = { pid: '2130294',sku: 5565230,sDesc: "MEDIUM - $75.00",sId: "100047",cDesc: "(Oasis Yellow)",cId: "1001543",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[61] = { pid: '2130294',sku: 5565235,sDesc: "MEDIUM - $75.00",sId: "100047",cDesc: "(Snuff)",cId: "1001970",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[62] = { pid: '2130294',sku: 5565240,sDesc: "MEDIUM - $75.00",sId: "100047",cDesc: "(Modern Pink)",cId: "1005036",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[63] = { pid: '2130294',sku: 5565776,sDesc: "MEDIUM - $75.00",sId: "100047",cDesc: "(Aerial Blue)",cId: "1000144",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[64] = { pid: '2130294',sku: 5565781,sDesc: "MEDIUM - $75.00",sId: "100047",cDesc: "(Jungle)",cId: "1023321",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[65] = { pid: '2130294',sku: 5565786,sDesc: "MEDIUM - $75.00",sId: "100047",cDesc: "(Silver Heather)",cId: "1035271",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[66] = { pid: '2130294',sku: 5565791,sDesc: "MEDIUM - $75.00",sId: "100047",cDesc: "(Hunter Navy)",cId: "1035272",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[67] = { pid: '2130294',sku: 5632228,sDesc: "MEDIUM - $75.00",sId: "100047",cDesc: "(Active Pink)",cId: "1002438",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[68] = { pid: '2130294',sku: 5632238,sDesc: "MEDIUM - $75.00",sId: "100047",cDesc: "(Baldwin Blue)",cId: "1005667",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[69] = { pid: '2130294',sku: 5632243,sDesc: "MEDIUM - $75.00",sId: "100047",cDesc: "(Caribbean Blue)",cId: "1000211",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[70] = { pid: '2130294',sku: 5632248,sDesc: "MEDIUM - $75.00",sId: "100047",cDesc: "(Danger Yellow)",cId: "1076669",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[71] = { pid: '2130294',sku: 5632253,sDesc: "MEDIUM - $75.00",sId: "100047",cDesc: "(Jewel Green)",cId: "1031363",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[72] = { pid: '2130294',sku: 5632258,sDesc: "MEDIUM - $75.00",sId: "100047",cDesc: "(Key Lime)",cId: "1006213",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[73] = { pid: '2130294',sku: 5632263,sDesc: "MEDIUM - $75.00",sId: "100047",cDesc: "(Maltese Orange)",cId: "1000709",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[74] = { pid: '2130294',sku: 5632268,sDesc: "MEDIUM - $75.00",sId: "100047",cDesc: "(Neptune)",cId: "1005500",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[75] = { pid: '2130294',sku: 5632273,sDesc: "MEDIUM - $75.00",sId: "100047",cDesc: "(Powder Purple)",cId: "1001501",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[76] = { pid: '2130294',sku: 5632278,sDesc: "MEDIUM - $75.00",sId: "100047",cDesc: "(Tomato)",cId: "1000961",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[77] = { pid: '2130294',sku: 5632283,sDesc: "MEDIUM - $75.00",sId: "100047",cDesc: "(Victory Green)",cId: "1075092",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[78] = { pid: '2130294',sku: 5632288,sDesc: "MEDIUM - $75.00",sId: "100047",cDesc: "(Vintage Purple)",cId: "1076670",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[79] = { pid: '2130294',sku: 5633361,sDesc: "MEDIUM - $75.00",sId: "100047",cDesc: "(Bright Signal Orange)",cId: "1003400",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[80] = { pid: '2130294',sku: 5633387,sDesc: "MEDIUM - $75.00",sId: "100047",cDesc: "(Player Red)",cId: "1015862",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[81] = { pid: '2130294',sku: 1421720,sDesc: "LARGE - $75.00",sId: "100044",cDesc: "(Wicket Yellow)",cId: "1001120",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[82] = { pid: '2130294',sku: 1451493,sDesc: "LARGE - $75.00",sId: "100044",cDesc: "(White)",cId: "1000515",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[83] = { pid: '2130294',sku: 1512086,sDesc: "LARGE - $75.00",sId: "100044",cDesc: "(Chic Cream)",cId: "1001481",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[84] = { pid: '2130294',sku: 1512097,sDesc: "LARGE - $75.00",sId: "100044",cDesc: "(Chatham Blue)",cId: "1000479",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[85] = { pid: '2130294',sku: 1536501,sDesc: "LARGE - $75.00",sId: "100044",cDesc: "(Newport Navy)",cId: "1000904",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[86] = { pid: '2130294',sku: 1617972,sDesc: "LARGE - $75.00",sId: "100044",cDesc: "(Fall Royal W/Green)",cId: "1073411",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[87] = { pid: '2130294',sku: 1731920,sDesc: "LARGE - $75.00",sId: "100044",cDesc: "(Maui Pink)",cId: "1004906",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[88] = { pid: '2130294',sku: 1829135,sDesc: "LARGE - $75.00",sId: "100044",cDesc: "(Carmel Pink)",cId: "1000118",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[89] = { pid: '2130294',sku: 2400962,sDesc: "LARGE - $75.00",sId: "100044",cDesc: "(RL 2000 Red)",cId: "1001455",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[90] = { pid: '2130294',sku: 3222728,sDesc: "LARGE - $75.00",sId: "100044",cDesc: "(Andover Heather)",cId: "1001479",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[91] = { pid: '2130294',sku: 3498190,sDesc: "LARGE - $75.00",sId: "100044",cDesc: "(North West Pine)",cId: "1032246",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[92] = { pid: '2130294',sku: 3498195,sDesc: "LARGE - $75.00",sId: "100044",cDesc: "(Rugby Royal)",cId: "1030929",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[93] = { pid: '2130294',sku: 3633917,sDesc: "LARGE - $75.00",sId: "100044",cDesc: "(Polo Black)",cId: "1005041",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[94] = { pid: '2130294',sku: 5276486,sDesc: "LARGE - $75.00",sId: "100044",cDesc: "(English Green)",cId: "1002493",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[95] = { pid: '2130294',sku: 5565201,sDesc: "LARGE - $75.00",sId: "100044",cDesc: "(Casino Red)",cId: "1001404",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[96] = { pid: '2130294',sku: 5565206,sDesc: "LARGE - $75.00",sId: "100044",cDesc: "(Smoke Heather)",cId: "1076668",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[97] = { pid: '2130294',sku: 5565211,sDesc: "LARGE - $75.00",sId: "100044",cDesc: "(Haven Purple)",cId: "1031040",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[98] = { pid: '2130294',sku: 5565216,sDesc: "LARGE - $75.00",sId: "100044",cDesc: "(Injection Red)",cId: "1001142",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[99] = { pid: '2130294',sku: 5565221,sDesc: "LARGE - $75.00",sId: "100044",cDesc: "(Laguna Purple)",cId: "1000112",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[100] = { pid: '2130294',sku: 5565226,sDesc: "LARGE - $75.00",sId: "100044",cDesc: "(Jamaica Heather)",cId: "1024045",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[101] = { pid: '2130294',sku: 5565231,sDesc: "LARGE - $75.00",sId: "100044",cDesc: "(Oasis Yellow)",cId: "1001543",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[102] = { pid: '2130294',sku: 5565236,sDesc: "LARGE - $75.00",sId: "100044",cDesc: "(Snuff)",cId: "1001970",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[103] = { pid: '2130294',sku: 5565241,sDesc: "LARGE - $75.00",sId: "100044",cDesc: "(Modern Pink)",cId: "1005036",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[104] = { pid: '2130294',sku: 5565777,sDesc: "LARGE - $75.00",sId: "100044",cDesc: "(Aerial Blue)",cId: "1000144",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[105] = { pid: '2130294',sku: 5565782,sDesc: "LARGE - $75.00",sId: "100044",cDesc: "(Jungle)",cId: "1023321",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[106] = { pid: '2130294',sku: 5565787,sDesc: "LARGE - $75.00",sId: "100044",cDesc: "(Silver Heather)",cId: "1035271",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[107] = { pid: '2130294',sku: 5565792,sDesc: "LARGE - $75.00",sId: "100044",cDesc: "(Hunter Navy)",cId: "1035272",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[108] = { pid: '2130294',sku: 5632229,sDesc: "LARGE - $75.00",sId: "100044",cDesc: "(Active Pink)",cId: "1002438",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[109] = { pid: '2130294',sku: 5632239,sDesc: "LARGE - $75.00",sId: "100044",cDesc: "(Baldwin Blue)",cId: "1005667",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[110] = { pid: '2130294',sku: 5632244,sDesc: "LARGE - $75.00",sId: "100044",cDesc: "(Caribbean Blue)",cId: "1000211",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[111] = { pid: '2130294',sku: 5632249,sDesc: "LARGE - $75.00",sId: "100044",cDesc: "(Danger Yellow)",cId: "1076669",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[112] = { pid: '2130294',sku: 5632254,sDesc: "LARGE - $75.00",sId: "100044",cDesc: "(Jewel Green)",cId: "1031363",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[113] = { pid: '2130294',sku: 5632259,sDesc: "LARGE - $75.00",sId: "100044",cDesc: "(Key Lime)",cId: "1006213",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[114] = { pid: '2130294',sku: 5632264,sDesc: "LARGE - $75.00",sId: "100044",cDesc: "(Maltese Orange)",cId: "1000709",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[115] = { pid: '2130294',sku: 5632274,sDesc: "LARGE - $75.00",sId: "100044",cDesc: "(Powder Purple)",cId: "1001501",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[116] = { pid: '2130294',sku: 5632279,sDesc: "LARGE - $75.00",sId: "100044",cDesc: "(Tomato)",cId: "1000961",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[117] = { pid: '2130294',sku: 5632284,sDesc: "LARGE - $75.00",sId: "100044",cDesc: "(Victory Green)",cId: "1075092",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[118] = { pid: '2130294',sku: 5632289,sDesc: "LARGE - $75.00",sId: "100044",cDesc: "(Vintage Purple)",cId: "1076670",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[119] = { pid: '2130294',sku: 5633362,sDesc: "LARGE - $75.00",sId: "100044",cDesc: "(Bright Signal Orange)",cId: "1003400",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[120] = { pid: '2130294',sku: 5633388,sDesc: "LARGE - $75.00",sId: "100044",cDesc: "(Player Red)",cId: "1015862",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[121] = { pid: '2130294',sku: 1421721,sDesc: "X-LARGE - $75.00",sId: "100606",cDesc: "(Wicket Yellow)",cId: "1001120",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[122] = { pid: '2130294',sku: 1451492,sDesc: "X-LARGE - $75.00",sId: "100606",cDesc: "(White)",cId: "1000515",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[123] = { pid: '2130294',sku: 1512089,sDesc: "X-LARGE - $75.00",sId: "100606",cDesc: "(Chic Cream)",cId: "1001481",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[124] = { pid: '2130294',sku: 1512096,sDesc: "X-LARGE - $75.00",sId: "100606",cDesc: "(Chatham Blue)",cId: "1000479",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[125] = { pid: '2130294',sku: 1536497,sDesc: "X-LARGE - $75.00",sId: "100606",cDesc: "(Newport Navy)",cId: "1000904",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[126] = { pid: '2130294',sku: 1617710,sDesc: "X-LARGE - $75.00",sId: "100606",cDesc: "(Fall Royal W/Green)",cId: "1073411",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[127] = { pid: '2130294',sku: 1730182,sDesc: "X-LARGE - $75.00",sId: "100606",cDesc: "(Maui Pink)",cId: "1004906",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[128] = { pid: '2130294',sku: 1834457,sDesc: "X-LARGE - $75.00",sId: "100606",cDesc: "(Carmel Pink)",cId: "1000118",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[129] = { pid: '2130294',sku: 2400963,sDesc: "X-LARGE - $75.00",sId: "100606",cDesc: "(RL 2000 Red)",cId: "1001455",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[130] = { pid: '2130294',sku: 3222729,sDesc: "X-LARGE - $75.00",sId: "100606",cDesc: "(Andover Heather)",cId: "1001479",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[131] = { pid: '2130294',sku: 3498191,sDesc: "X-LARGE - $75.00",sId: "100606",cDesc: "(North West Pine)",cId: "1032246",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[132] = { pid: '2130294',sku: 3498196,sDesc: "X-LARGE - $75.00",sId: "100606",cDesc: "(Rugby Royal)",cId: "1030929",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[133] = { pid: '2130294',sku: 3633918,sDesc: "X-LARGE - $75.00",sId: "100606",cDesc: "(Polo Black)",cId: "1005041",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[134] = { pid: '2130294',sku: 5276487,sDesc: "X-LARGE - $75.00",sId: "100606",cDesc: "(English Green)",cId: "1002493",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[135] = { pid: '2130294',sku: 5565202,sDesc: "X-LARGE - $75.00",sId: "100606",cDesc: "(Casino Red)",cId: "1001404",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[136] = { pid: '2130294',sku: 5565207,sDesc: "X-LARGE - $75.00",sId: "100606",cDesc: "(Smoke Heather)",cId: "1076668",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[137] = { pid: '2130294',sku: 5565212,sDesc: "X-LARGE - $75.00",sId: "100606",cDesc: "(Haven Purple)",cId: "1031040",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[138] = { pid: '2130294',sku: 5565217,sDesc: "X-LARGE - $75.00",sId: "100606",cDesc: "(Injection Red)",cId: "1001142",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[139] = { pid: '2130294',sku: 5565222,sDesc: "X-LARGE - $75.00",sId: "100606",cDesc: "(Laguna Purple)",cId: "1000112",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[140] = { pid: '2130294',sku: 5565227,sDesc: "X-LARGE - $75.00",sId: "100606",cDesc: "(Jamaica Heather)",cId: "1024045",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[141] = { pid: '2130294',sku: 5565232,sDesc: "X-LARGE - $75.00",sId: "100606",cDesc: "(Oasis Yellow)",cId: "1001543",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[142] = { pid: '2130294',sku: 5565237,sDesc: "X-LARGE - $75.00",sId: "100606",cDesc: "(Snuff)",cId: "1001970",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[143] = { pid: '2130294',sku: 5565242,sDesc: "X-LARGE - $75.00",sId: "100606",cDesc: "(Modern Pink)",cId: "1005036",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[144] = { pid: '2130294',sku: 5565778,sDesc: "X-LARGE - $75.00",sId: "100606",cDesc: "(Aerial Blue)",cId: "1000144",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[145] = { pid: '2130294',sku: 5565783,sDesc: "X-LARGE - $75.00",sId: "100606",cDesc: "(Jungle)",cId: "1023321",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[146] = { pid: '2130294',sku: 5565788,sDesc: "X-LARGE - $75.00",sId: "100606",cDesc: "(Silver Heather)",cId: "1035271",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[147] = { pid: '2130294',sku: 5565793,sDesc: "X-LARGE - $75.00",sId: "100606",cDesc: "(Hunter Navy)",cId: "1035272",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[148] = { pid: '2130294',sku: 5632230,sDesc: "X-LARGE - $75.00",sId: "100606",cDesc: "(Active Pink)",cId: "1002438",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[149] = { pid: '2130294',sku: 5632240,sDesc: "X-LARGE - $75.00",sId: "100606",cDesc: "(Baldwin Blue)",cId: "1005667",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[150] = { pid: '2130294',sku: 5632245,sDesc: "X-LARGE - $75.00",sId: "100606",cDesc: "(Caribbean Blue)",cId: "1000211",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[151] = { pid: '2130294',sku: 5632250,sDesc: "X-LARGE - $75.00",sId: "100606",cDesc: "(Danger Yellow)",cId: "1076669",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[152] = { pid: '2130294',sku: 5632255,sDesc: "X-LARGE - $75.00",sId: "100606",cDesc: "(Jewel Green)",cId: "1031363",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[153] = { pid: '2130294',sku: 5632260,sDesc: "X-LARGE - $75.00",sId: "100606",cDesc: "(Key Lime)",cId: "1006213",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[154] = { pid: '2130294',sku: 5632265,sDesc: "X-LARGE - $75.00",sId: "100606",cDesc: "(Maltese Orange)",cId: "1000709",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[155] = { pid: '2130294',sku: 5632270,sDesc: "X-LARGE - $75.00",sId: "100606",cDesc: "(Neptune)",cId: "1005500",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[156] = { pid: '2130294',sku: 5632275,sDesc: "X-LARGE - $75.00",sId: "100606",cDesc: "(Powder Purple)",cId: "1001501",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[157] = { pid: '2130294',sku: 5632280,sDesc: "X-LARGE - $75.00",sId: "100606",cDesc: "(Tomato)",cId: "1000961",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[158] = { pid: '2130294',sku: 5632285,sDesc: "X-LARGE - $75.00",sId: "100606",cDesc: "(Victory Green)",cId: "1075092",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[159] = { pid: '2130294',sku: 5632290,sDesc: "X-LARGE - $75.00",sId: "100606",cDesc: "(Vintage Purple)",cId: "1076670",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[160] = { pid: '2130294',sku: 5633363,sDesc: "X-LARGE - $75.00",sId: "100606",cDesc: "(Bright Signal Orange)",cId: "1003400",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[161] = { pid: '2130294',sku: 5633389,sDesc: "X-LARGE - $75.00",sId: "100606",cDesc: "(Player Red)",cId: "1015862",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[162] = { pid: '2130294',sku: 1421719,sDesc: "XX-LARGE - $75.00",sId: "100605",cDesc: "(Wicket Yellow)",cId: "1001120",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[163] = { pid: '2130294',sku: 1451494,sDesc: "XX-LARGE - $75.00",sId: "100605",cDesc: "(White)",cId: "1000515",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[164] = { pid: '2130294',sku: 1512090,sDesc: "XX-LARGE - $75.00",sId: "100605",cDesc: "(Chic Cream)",cId: "1001481",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[165] = { pid: '2130294',sku: 1512100,sDesc: "XX-LARGE - $75.00",sId: "100605",cDesc: "(Chatham Blue)",cId: "1000479",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[166] = { pid: '2130294',sku: 1536499,sDesc: "XX-LARGE - $75.00",sId: "100605",cDesc: "(Newport Navy)",cId: "1000904",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[167] = { pid: '2130294',sku: 1617450,sDesc: "XX-LARGE - $75.00",sId: "100605",cDesc: "(Fall Royal W/Green)",cId: "1073411",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[168] = { pid: '2130294',sku: 1727825,sDesc: "XX-LARGE - $75.00",sId: "100605",cDesc: "(Maui Pink)",cId: "1004906",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[169] = { pid: '2130294',sku: 1835487,sDesc: "XX-LARGE - $75.00",sId: "100605",cDesc: "(Carmel Pink)",cId: "1000118",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[170] = { pid: '2130294',sku: 2400964,sDesc: "XX-LARGE - $75.00",sId: "100605",cDesc: "(RL 2000 Red)",cId: "1001455",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[171] = { pid: '2130294',sku: 3222730,sDesc: "XX-LARGE - $75.00",sId: "100605",cDesc: "(Andover Heather)",cId: "1001479",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[172] = { pid: '2130294',sku: 3498192,sDesc: "XX-LARGE - $75.00",sId: "100605",cDesc: "(North West Pine)",cId: "1032246",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[173] = { pid: '2130294',sku: 3498197,sDesc: "XX-LARGE - $75.00",sId: "100605",cDesc: "(Rugby Royal)",cId: "1030929",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[174] = { pid: '2130294',sku: 3633919,sDesc: "XX-LARGE - $75.00",sId: "100605",cDesc: "(Polo Black)",cId: "1005041",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[175] = { pid: '2130294',sku: 5276488,sDesc: "XX-LARGE - $75.00",sId: "100605",cDesc: "(English Green)",cId: "1002493",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[176] = { pid: '2130294',sku: 5565203,sDesc: "XX-LARGE - $75.00",sId: "100605",cDesc: "(Casino Red)",cId: "1001404",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[177] = { pid: '2130294',sku: 5565208,sDesc: "XX-LARGE - $75.00",sId: "100605",cDesc: "(Smoke Heather)",cId: "1076668",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[178] = { pid: '2130294',sku: 5565213,sDesc: "XX-LARGE - $75.00",sId: "100605",cDesc: "(Haven Purple)",cId: "1031040",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[179] = { pid: '2130294',sku: 5565218,sDesc: "XX-LARGE - $75.00",sId: "100605",cDesc: "(Injection Red)",cId: "1001142",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[180] = { pid: '2130294',sku: 5565223,sDesc: "XX-LARGE - $75.00",sId: "100605",cDesc: "(Laguna Purple)",cId: "1000112",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[181] = { pid: '2130294',sku: 5565228,sDesc: "XX-LARGE - $75.00",sId: "100605",cDesc: "(Jamaica Heather)",cId: "1024045",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[182] = { pid: '2130294',sku: 5565233,sDesc: "XX-LARGE - $75.00",sId: "100605",cDesc: "(Oasis Yellow)",cId: "1001543",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[183] = { pid: '2130294',sku: 5565238,sDesc: "XX-LARGE - $75.00",sId: "100605",cDesc: "(Snuff)",cId: "1001970",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[184] = { pid: '2130294',sku: 5565243,sDesc: "XX-LARGE - $75.00",sId: "100605",cDesc: "(Modern Pink)",cId: "1005036",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[185] = { pid: '2130294',sku: 5565779,sDesc: "XX-LARGE - $75.00",sId: "100605",cDesc: "(Aerial Blue)",cId: "1000144",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[186] = { pid: '2130294',sku: 5565784,sDesc: "XX-LARGE - $75.00",sId: "100605",cDesc: "(Jungle)",cId: "1023321",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[187] = { pid: '2130294',sku: 5565789,sDesc: "XX-LARGE - $75.00",sId: "100605",cDesc: "(Silver Heather)",cId: "1035271",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[188] = { pid: '2130294',sku: 5565794,sDesc: "XX-LARGE - $75.00",sId: "100605",cDesc: "(Hunter Navy)",cId: "1035272",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[189] = { pid: '2130294',sku: 5632231,sDesc: "XX-LARGE - $75.00",sId: "100605",cDesc: "(Active Pink)",cId: "1002438",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[190] = { pid: '2130294',sku: 5632241,sDesc: "XX-LARGE - $75.00",sId: "100605",cDesc: "(Baldwin Blue)",cId: "1005667",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[191] = { pid: '2130294',sku: 5632246,sDesc: "XX-LARGE - $75.00",sId: "100605",cDesc: "(Caribbean Blue)",cId: "1000211",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[192] = { pid: '2130294',sku: 5632251,sDesc: "XX-LARGE - $75.00",sId: "100605",cDesc: "(Danger Yellow)",cId: "1076669",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[193] = { pid: '2130294',sku: 5632256,sDesc: "XX-LARGE - $75.00",sId: "100605",cDesc: "(Jewel Green)",cId: "1031363",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[194] = { pid: '2130294',sku: 5632266,sDesc: "XX-LARGE - $75.00",sId: "100605",cDesc: "(Maltese Orange)",cId: "1000709",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[195] = { pid: '2130294',sku: 5632276,sDesc: "XX-LARGE - $75.00",sId: "100605",cDesc: "(Powder Purple)",cId: "1001501",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[196] = { pid: '2130294',sku: 5632281,sDesc: "XX-LARGE - $75.00",sId: "100605",cDesc: "(Tomato)",cId: "1000961",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[197] = { pid: '2130294',sku: 5632286,sDesc: "XX-LARGE - $75.00",sId: "100605",cDesc: "(Victory Green)",cId: "1075092",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[198] = { pid: '2130294',sku: 5632291,sDesc: "XX-LARGE - $75.00",sId: "100605",cDesc: "(Vintage Purple)",cId: "1076670",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[199] = { pid: '2130294',sku: 5633364,sDesc: "XX-LARGE - $75.00",sId: "100605",cDesc: "(Bright Signal Orange)",cId: "1003400",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
itemMap2[200] = { pid: '2130294',sku: 5633390,sDesc: "XX-LARGE - $75.00",sId: "100605",cDesc: "(Player Red)",cId: "1015862",avail: "IN_STOCK",price: "$75.00",jdaStyle: "789"};
// Populate color array to pass to updateSelector function
function populateSizes2(sel_element1, sel_element2)
{
var val = sel_element1.options[sel_element1.selectedIndex].value;
var items = new Array();
// If user sets color dropdown back to "Color" reset the prod_ dropdown
if(val == '')
{
var selectOneArray = new Array("2130294","Select Size");
items[items.length] = new Object();
items[items.length-1].id = selectOneArray[0];
items[items.length-1].de = selectOneArray[1];
updateSelector(sel_element2,items);
return;
}
// If color was selected, fill colorArray
if(val != "-1")
{
var selectOneArray = new Array("2130294","Select Size");
items[items.length] = new Object();
items[items.length-1].id = selectOneArray[0];
items[items.length-1].de = selectOneArray[1];
var colorArray = getStringColors2(val);
for (var i = 0; i < colorArray.length; i++)
{
items[items.length] = new Object();
items[items.length-1].id = colorArray[i];
items[items.length-1].de = colorArray[++i];
}
updateSelector(sel_element2,items);
}
}
function updateSelector(selector,items)
{
var options = selector.options;
var selectedItem = selector.options[selector.selectedIndex].text;
for (var i = 0; i < Math.min(items.length, options.length); i++)
{
options[i].value = items[i].id;
options[i].text = items[i].de;
}
for (var i = Math.min(items.length, options.length); i < items.length; i++)
{
var newOpt = document.createElement("OPTION");
newOpt.value = items[i].id;
newOpt.text = items[i].de;
selector.add(newOpt);
}
/* Truncate selector if needed: */
selector.length = items.length;
var haveMatch = false;
for (var i = 0; i < selector.options.length; i++)
{
if (selector.options[i].text == selectedItem)
{
selector.options[i].selected = true;
haveMatch = true;
}
}
if (!haveMatch)
{
options[0].selected = true;
}
}
function updateFields2(thisDropDown,prodIndex)
{
if (thisDropDown)
{
//alert(thisDropDown.name);
var thisImageMap = eval('imageMap_'+prodIndex);
if (thisDropDown.name.match("colors_") || thisDropDown.name.match("prod_"))
{
/*
for(var i = 0; i < itemMap2.length; i++)
{
priceField = eval('document.related2.price_'+prodIndex);
priceField.value = itemMap2[i].price;
}
*/
}
/*
else if (thisDropDown.selectedIndex == 0)
{
clearFields(thisDropDown,prodIndex);
}
*/
}
}
function setSize2()
{
if ("" !=null && "".length > 0)
{
var optionSize = document.related2.prod_0.options;
for (var sj = 0 ; sj< optionSize.length; sj++)
{
if ("".indexOf("|") > -1)
{
var arrayOfSizeAndText1 = "".split("|");
var sizeIds="";
if (arrayOfSizeAndText1.length == 2)
{
sizeIds = arrayOfSizeAndText1[1];
}
var sizevalue = optionSize[sj].text;
if (sizevalue.toLowerCase().indexOf(sizeIds.toLowerCase()) > -1)
{
optionSize[sj].selected = true;
break;
}
}
}
}
}
function getStringColors2(pidSku)
{
var pidSkuArray = pidSku.split("|");
productId = pidSkuArray[0];
colorId = pidSkuArray[1];
var strSizes = new Array();
var j = 0;
for(var i = 0; i < itemMap2.length; i++)
{
if(itemMap2[i].pid == productId && itemMap2[i].cId == colorId)
{
strSizes[j] = itemMap2[i].pid+"|"+itemMap2[i].sku;
j++;
/*
if (itemMap2[i].avail == "OUT_OF_STOCK" || itemMap2[i].avail == "NOT_AVAILABLE")
{
strSizes[j] = itemMap2[i].sDesc + " - " +"Out Of Stock";
}
else
{
strSizes[j] = itemMap2[i].sDesc;
}
*/
strSizes[j] = itemMap2[i].sDesc;
j++;
}
}
return strSizes;
}
첫댓글 쪽지드렸습니다 ^^ *29