categoryDisplayJS={entitledItems:[],selectedProducts:new Object(),selectedAttributes:new Object(),errorMessages:new Object(),langId:"-1",storeId:"",catalogId:"",ajaxShopCart:true,ajaxMyAccount:true,contextChanged:false,isHistory:false,merchandisingAssociationItems:[],baseCatalogEntryDetails:[],associationThumbnailIndex:1,totalAssociationCount:0,baseItemAddedToCart:false,merchandisingProductAssociationAddToCart:false,merchandisingProductAssociationForm:"",isParentBundleBean:false,userType:"",displayPrevAssociation:"",displayNextAssociation:"",defaultItemArray:[],initHistory:function(a,c){var b=new categoryDisplayJS.HistoryTracker(a,c);dojo.back.setInitialState(b)},setAjaxShopCart:function(a){this.ajaxShopCart=a},setAjaxMyAccount:function(a){this.ajaxMyAccount=a},setCommonParameters:function(d,a,c,b){this.langId=d;this.storeId=a;this.catalogId=c;this.userType=b},setEntitledItems:function(a){this.entitledItems=a},setSelectedAttribute:function(a,b){console.debug(a+" : "+b);this.selectedAttributes[a]=b},setSelectedAttributeOfProduct:function(c,a,b){selectedAttributesForProduct=new Object();if(this.selectedProducts[c]){selectedAttributesForProduct=this.selectedProducts[c]}selectedAttributesForProduct[a]=b;this.selectedProducts[c]=selectedAttributesForProduct},gotoASubCategoryDisplayPage:function(e,d,b,a){e=trim(e);if(e==""){MessageHelper.formErrorHandleClient(document.getElementById("subCategoriesListDisplayPageNum").id,MessageHelper.messages.ERROR_EMPTY_NUM);return}if(MessageHelper.IsNumeric(e,false)==false){MessageHelper.formErrorHandleClient(document.getElementById("subCategoriesListDisplayPageNum").id,MessageHelper.messages.ERROR_PAGE_NUM);return}if(e>=1&&e<=d){MessageHelper.hideAndClearMessage();var c=a+"&beginIndex="+((e-1)*b);this.loadSubCategoryContentURL(c)}else{MessageHelper.formErrorHandleClient(document.getElementById("subCategoriesListDisplayPageNum").id,MessageHelper.messages.ERROR_PAGE_NUM);return}},getCatalogEntryId:function(){var a=[];for(attribute in this.selectedAttributes){a.push(attribute+"_"+this.selectedAttributes[attribute])}return this.resolveSKU(a)},getCatalogEntryIdforProduct:function(a){var b=[];for(attribute in a){b.push(attribute+"_"+a[attribute])}return this.resolveSKU(b)},resolveSKU:function(e){console.debug("Resolving SKU >> "+e+">>"+this.entitledItems);var g="";var d=e.length;for(x in this.entitledItems){var g=this.entitledItems[x].catentry_id;var f=this.entitledItems[x].Attributes;var a=0;for(index in f){a++}if(d==0&&a==0){return g}if(a!=0&&d>=a){var c=0;for(attributeName in e){var b=e[attributeName];if(b in f){c++}}if(a==c){console.debug("CatEntryId:"+g+" for Attribute: "+e);return g}}}return null},updateParamObject:function(g,e,f,d,b){if(g==null){g=[]}if(g[e]!=null&&d){if(dojo.lang.isArrayLike(g[e])){if(b!=null&&b!=""){g[e][b]=f}else{g[e].push(f)}}else{var a=g[e];g[e]=[];g[e].push(a);g[e].push(f)}}else{if(b!=null&&b!=""&&b!=-1){g[e+"_"+b]=f}else{if(b==-1){var c=1;while(g[e+"_"+c]!=null){c++}g[e+"_"+c]=f}else{g[e]=f}}}return g},setDefaultItem:function(b,a){this.defaultItemArray[b]=a},getDefaultItem:function(a){return this.defaultItemArray[a]},AddBundle2ShopCartAjax:function(c){var e=[];e.storeId=this.storeId;e.catalogId=this.catalogId;e.langId=this.langId;e.orderId=".";var d=c.numberOfProduct.value;for(var a=1;a<=d;a++){var b=c["catEntryId_"+a].value;if(this.selectedProducts[b]){b=this.getCatalogEntryIdforProduct(this.selectedProducts[b])}var f=c["quantity_"+a].value;if(f==null||f==""||f<=0){MessageHelper.displayErrorMessage(MessageHelper.messages.QUANTITY_INPUT_ERROR);return}if(f!=null&&f!=""&&b!=null){this.updateParamObject(e,"catEntryId",b,false,-1);this.updateParamObject(e,"quantity",f,false,-1);this.baseItemAddedToCart=true}else{MessageHelper.displayErrorMessage(MessageHelper.messages.ERR_RESOLVING_SKU);return}}if(!submitRequest()){return}cursor_wait();wc.service.invoke("AjaxAddOrderItem",e)},AddBundle2ShopCart:function(c){c.URL.value="AjaxOrderItemDisplayView";var d=c.numberOfProduct.value;for(var a=1;a<=d;a++){var b=c["catEntryId_"+a].value;if(this.selectedProducts[b]){b=this.getCatalogEntryIdforProduct(this.selectedProducts[b]);if(b!=null){c["catEntryId_"+a].value=b}else{MessageHelper.displayErrorMessage(MessageHelper.messages.ERR_RESOLVING_SKU);return}}var e=c["quantity_"+a].value;if(e==null||e==""||e<=0){MessageHelper.displayErrorMessage(MessageHelper.messages.QUANTITY_INPUT_ERROR);return}}if(!submitRequest()){return}c.submit()},Add2ShopCart:function(entitledItemId,form,quantity){var entitledItemJSON=eval("("+dojo.byId(entitledItemId).innerHTML+")");this.setEntitledItems(entitledItemJSON);var catalogEntryId=this.getCatalogEntryId();if(catalogEntryId!=null){if(this.merchandisingProductAssociationAddToCart){this.AddAssociation2ShopCart(catalogEntryId,quantity);return}form.catEntryId.value=catalogEntryId;form.productId.value=catalogEntryId;this.AddItem2ShopCart(form,quantity)}else{MessageHelper.displayErrorMessage(MessageHelper.messages.ERR_RESOLVING_SKU)}},AddItem2ShopCart:function(a,b){if(b){a.quantity.value=b}var c=new RegExp(/^\d*$/);if(a.quantity.value==0||a.quantity.value==""||!c.test(a.quantity.value)){MessageHelper.displayErrorMessage(MessageHelper.messages.QUANTITY_INPUT_ERROR);return}if(!submitRequest()){return}a.submit()},Add2ShopCartAjax:function(entitledItemId,quantity){var entitledItemJSON=eval("("+dojo.byId(entitledItemId).innerHTML+")");this.setEntitledItems(entitledItemJSON);var catalogEntryId=this.getCatalogEntryId();if(catalogEntryId!=null){this.AddItem2ShopCartAjax(catalogEntryId,quantity);this.baseItemAddedToCart=true}else{MessageHelper.displayErrorMessage(MessageHelper.messages.ERR_RESOLVING_SKU);this.baseItemAddedToCart=false}},ReplaceItemAjax:function(entitledItemId,quantity){var entitledItemJSON=eval("("+dojo.byId(entitledItemId).innerHTML+")");this.setEntitledItems(entitledItemJSON);var catalogEntryId=this.getCatalogEntryId();var removeOrderItemId="";var removeOrderItemId=replaceOrderItemId;var typeId=document.getElementById("shipmentTypeId");var addressId="";var shipModeId="";if(typeId!=null&&typeId!=""){if(typeId.value=="2"){addressId=document.getElementById("MS_ShipmentAddress_"+removeOrderItemId).value;shipModeId=document.getElementById("MS_ShippingMode_"+removeOrderItemId).value}else{addressId=document.getElementById("addressId_all").value;shipModeId=document.getElementById("shipModeId_all").value}}if(catalogEntryId!=null){if(removeOrderItemId==""){}else{this.ReplaceItemAjaxHelper(catalogEntryId,quantity,removeOrderItemId,addressId,shipModeId)}}else{MessageHelper.displayErrorMessage(MessageHelper.messages.ERR_RESOLVING_SKU)}},ReplaceItemNonAjax:function(entitledItemId,quantity,form){var entitledItemJSON=eval("("+dojo.byId(entitledItemId).innerHTML+")");this.setEntitledItems(entitledItemJSON);var catalogEntryId=this.getCatalogEntryId();var removeOrderItemId="";var removeOrderItemId=replaceOrderItemId;if(catalogEntryId!=null){if(removeOrderItemId==""){}else{form.orderItemId.value=removeOrderItemId;var addressId,shipModeId;if(quantity==0){console.debug("An invalid quantity was selected")}if(form.shipmentTypeId!=null&&form.shipmenTypeId!=""){if(form.shipmentTypeId.value=="2"){addressId=document.getElementById("MS_ShipmentAddress_"+removeOrderItemId).value;shipModeId=document.getElementById("MS_ShippingMode_"+removeOrderItemId).value}else{addressId=document.getElementById("addressId_all").value;shipModeId=document.getElementById("shipModeId_all").value}form.URL.value="OrderChangeServiceItemAdd?catEntryId="+catalogEntryId+"&quantity="+quantity+"&addressId="+addressId+"&shipModeId="+shipModeId+"&URL=OrderChangeServiceShipInfoUpdate?URL="+form.URL.value}else{form.URL.value="OrderChangeServiceItemAdd?catEntryId="+catalogEntryId+"&quantity="+quantity+"&URL="+form.URL.value}if(!submitRequest()){return}form.submit()}}else{MessageHelper.displayErrorMessage(MessageHelper.messages.ERR_RESOLVING_SKU)}},AddItem2ShopCartAjax:function(a,b){var c=[];c.storeId=this.storeId;c.catalogId=this.catalogId;c.langId=this.langId;c.orderId=".";c.catEntryId=a;c.quantity=b;var d=new RegExp(/^\d*$/);if(c.quantity==0||c.quantity==""||!d.test(c.quantity)){MessageHelper.displayErrorMessage(MessageHelper.messages.QUANTITY_INPUT_ERROR);return}if(!submitRequest()){return}cursor_wait();if(this.ajaxShopCart){wc.service.invoke("AjaxAddOrderItem",c);this.baseItemAddedToCart=true}else{wc.service.invoke("AjaxAddOrderItem_shopCart",c);this.baseItemAddedToCart=true}document.links[2].focus()},AddItem2ShopCartAjax:function(b,c,a){var d=[];d.storeId=this.storeId;d.catalogId=this.catalogId;d.langId=this.langId;d.orderId=".";if(a==null||a==""||a=="undefined"){d.catEntryId=b;d.quantity=c}else{d.catEntryId_0=b;d.quantity_0=c;d.catEntryId_1=a;d.quantity_1=1}var e=new RegExp(/^\d*$/);if(!submitRequest()){return}cursor_wait();if(this.ajaxShopCart){wc.service.invoke("AjaxAddOrderItem",d);this.baseItemAddedToCart=true}else{wc.service.invoke("AjaxAddOrderItem_shopCart",d);this.baseItemAddedToCart=true}document.links[2].focus()},ReplaceItemAjaxHelper:function(e,i,b,g,a){var c=[];c.storeId=this.storeId;c.catalogId=this.catalogId;c.langId=this.langId;c.orderItemId=b;c.orderId=".";var h=[];h.storeId=this.storeId;h.catalogId=this.catalogId;h.langId=this.langId;h.catEntryId=e;h.quantity=i;h.orderId=".";var f=[];f.storeId=this.storeId;f.catalogId=this.catalogId;f.langId=this.langId;f.orderId=".";var d=false;if(g!=null&&g!=""&&a!=null&&a!=""){f.addressId=g;f.shipModeId=a;d=true}wc.service.declare({id:"AjaxReplaceItem",actionId:"AjaxReplaceItem",url:"AjaxOrderChangeServiceItemDelete",formId:"",successHandler:function(j){if(!d){wc.service.invoke("AjaxAddOrderItem",h)}else{wc.service.invoke("AjaxAddOrderItemTemp",h)}},failureHandler:function(j){if(j.errorMessage){MessageHelper.displayErrorMessage(j.errorMessage)}else{if(j.errorMessageKey){MessageHelper.displayErrorMessage(j.errorMessageKey)}}cursor_clear()}});wc.service.declare({id:"AjaxAddOrderItemTemp",actionId:"AjaxAddOrderItemTemp",url:"AjaxOrderChangeServiceItemAdd",formId:"",successHandler:function(j){wc.service.invoke("OrderItemAddressShipMethodUpdate",f)},failureHandler:function(j){MessageHelper.displayErrorMessage(j.errorMessageKey)}});if(!submitRequest()){return}cursor_wait();wc.service.invoke("AjaxReplaceItem",c)},AddBundle2WishList:function(c){var d=c.numberOfProduct.value;for(var a=1;a<=d;a++){var b=c["catEntryId_"+a].value;if(this.selectedProducts[b]){b=this.getCatalogEntryIdforProduct(this.selectedProducts[b]);if(b!=null){c["catEntryId_"+a].value=b}else{MessageHelper.displayErrorMessage(MessageHelper.messages.ERR_RESOLVING_SKU);return}}}c.action="InterestItemAdd";c.page.value="customerlinkwishlist";if(this.ajaxMyAccount){if(this.userType=="G"){c.URL.value="InterestItemDisplay"}else{c.URL.value="AjaxLogonForm"}}else{if(this.userType=="G"){c.URL.value="InterestItemDisplay"}else{c.URL.value="NonAjaxAccountWishListDisplayView"}}if(!submitRequest()){return}c.submit()},AddBundle2WishListAjax:function(d){var e=[];e.storeId=this.storeId;e.catalogId=this.catalogId;e.langId=this.langId;e.orderId=".";var a=[];a=d.catEntryIDS.value.toString().split(",");for(var b=0;b<a.length;b++){var f=document.getElementById("quantity_"+a[b]).value;var c=a[b];if(this.selectedProducts[a[b]]){c=this.getCatalogEntryIdforProduct(this.selectedProducts[a[b]])}if(f==0||f==null){f=1}if(f!=null&&f!=""&&c!=null){this.updateParamObject(e,"catEntryId",c,false,-1);this.updateParamObject(e,"quantity",f,false,-1)}else{MessageHelper.displayErrorMessage(MessageHelper.messages.ERR_RESOLVING_SKU);return}}if(!submitRequest()){return}cursor_wait();wc.service.invoke("AjaxInterestItemAdd",e)},clearForm:function(b){var c=document.forms[b];for(var a=0;a<c.elements.length;a++){if(c.elements[a].type=="text"){var d=c.elements[a].name;if(d.substring(0,9)=="quantity_"){c.elements[a].value=""}}}},Add2WishListAjaxByID:function(a){if(a!=null){var b=[];b.storeId=this.storeId;b.catalogId=this.catalogId;b.langId=this.langId;b.catEntryId=a;b.URL="SuccessfulAJAXRequest";if(document.getElementById("controllerURLWishlist")!=null&&document.getElementById("controllerURLWishlist")!="undefined"){CommonControllersDeclarationJS.setControllerURL("WishlistDisplay_Controller",document.getElementById("controllerURLWishlist").value)}if(!submitRequest()){return}cursor_wait();if(this.ajaxShopCart){wc.service.invoke("AjaxInterestItemAdd",b)}else{wc.service.invoke("AjaxInterestItemAdd_shopCart",b)}}else{MessageHelper.displayErrorMessage(MessageHelper.messages.ERR_RESOLVING_SKU)}},Add2WishListAjax:function(entitledItemId){var entitledItemJSON=eval("("+dojo.byId(entitledItemId).innerHTML+")");this.setEntitledItems(entitledItemJSON);var catalogEntryId=this.getCatalogEntryId();this.Add2WishListAjaxByID(catalogEntryId)},AddItem2WishListAjax:function(b){var a=[];a.storeId=this.storeId;a.catalogId=this.catalogId;a.langId=this.langId;a.catEntryId=b;a.URL="SuccessfulAJAXRequest";if(!submitRequest()){return}cursor_wait();if(this.ajaxShopCart){wc.service.invoke("AjaxInterestItemAdd",a)}else{wc.service.invoke("AjaxInterestItemAdd_shopCart",a)}},AddMultipleItem2WishListAjax:function(formName){var params=[];var form=document.forms[formName];params.storeId=this.storeId;params.catalogId=this.catalogId;params.langId=this.langId;var i=1;numOfItemsAdded=0;for(var j=0;j<form.elements.length;j++){if(form.elements[j].type=="text"){var fieldName=form.elements[j].name;if(fieldName.substring(0,10)=="catEntryId"&&form.elements[j].value!=""&&form.elements[j+2].value!=""){eval("params.catEntryId_"+i+" = "+form.elements[j].value);i++;numOfItemsAdded++}}}if(numOfItemsAdded==0){alert("Select an item to add to wishlist.");return}params.URL="SuccessfulAJAXRequest";if(!submitRequest()){return}cursor_wait();if(this.ajaxShopCart){wc.service.invoke("AjaxInterestItemAdd",params)}else{wc.service.invoke("AjaxInterestItemAdd_shopCart",params)}},Add2WishList:function(entitledItemId,form){var entitledItemJSON=eval("("+dojo.byId(entitledItemId).innerHTML+")");this.setEntitledItems(entitledItemJSON);var catalogEntryId=this.getCatalogEntryId();this.Add2WishListByID(catalogEntryId,form)},Add2WishListByID:function(b,a){if(b!=null){a.productId.value=b;a.catEntryId.value=b;a.action="InterestItemAdd";a.page.value="customerlinkwishlist";if(this.ajaxMyAccount){if(this.userType=="G"){a.URL.value="InterestItemDisplay"}else{a.URL.value="AjaxLogonForm"}}else{if(this.userType=="G"){a.URL.value="InterestItemDisplay"}else{a.URL.value="NonAjaxAccountWishListDisplayView"}}a.quantity.value="1";if(!submitRequest()){return}a.submit()}else{MessageHelper.displayErrorMessage(MessageHelper.messages.ERR_RESOLVING_SKU)}},AddItem2WishList:function(a){a.action="InterestItemAdd";a.quantity.value="1";a.page.value="customerlinkwishlist";if(this.ajaxMyAccount){if(this.userType=="G"){a.URL.value="InterestItemDisplay"}else{a.URL.value="AjaxLogonForm"}}else{if(this.userType=="G"){a.URL.value="InterestItemDisplay"}else{a.URL.value="NonAjaxAccountWishListDisplayView"}}if(!submitRequest()){return}a.submit()},Add2CompareAjax:function(c,d,a,b){if(compareProductJS!=null){compareProductJS.Add2CompareAjax(c,d,a,b)}},loadContentURL:function(a){if(!submitRequest()){return}cursor_wait();CommonControllersDeclarationJS.setControllerURL("CategoryDisplay_Controller",a);wc.render.updateContext("CategoryDisplay_Context")},loadSubCategoryContentURL:function(a){MessageHelper.hideAndClearMessage();if(!submitRequest()){return}cursor_wait();CommonControllersDeclarationJS.setControllerURL("SubCategoryDisplay_Controller",a);wc.render.updateContext("SubCategoryDisplay_Context")},goBack:function(){categoryDisplayJS.loadContentURL(this.changeUrl);categoryDisplayJS.isHistory=true},goForward:function(){categoryDisplayJS.loadContentURL(this.changeUrl);isHistory=true},HistoryTracker:function(a,b){this.elementId=a;this.changeUrl=b},processBookmarkURL:function(){var b=location.hash;if(b){b=b.substring(1,b.length)}if(b){var a=b.indexOf("identifier",0);if(a>=0){var c=b.substring(0,a-1)}}if(b==null||b==""){}},initializeMerchandisingAssociation:function(thumbnailIndex){var associationDisplay=document.getElementById("marchandisingAssociationDisplay");var totalPriceMsg=document.getElementById("totalPriceMsg").value;var baseCatEntryJSON=eval("("+dojo.byId("baseCatEntryDetails").innerHTML+")");this.baseCatalogEntryDetails=baseCatEntryJSON;var basePrice=this.baseCatalogEntryDetails[0].baseCatEntry_Price;this.totalAssociationCount=this.baseCatalogEntryDetails[0].toatlAssociations;var identifierJSON="associatedCatEntries_"+thumbnailIndex;var associationEntryJSON=eval("("+dojo.byId(identifierJSON).innerHTML+")");this.merchandisingAssociationItems=associationEntryJSON;var toatlPrice=parseFloat(basePrice)+parseFloat(this.merchandisingAssociationItems[0].catEntry_Price);var dragType="";if(this.merchandisingAssociationItems[0].catEntry_Type=="ProductBean"){dragType="product"}else{if(this.merchandisingAssociationItems[0].catEntry_Type=="ItemBean"){dragType="item"}else{if(this.merchandisingAssociationItems[0].catEntry_Type=="PackageBean"){dragType="package"}else{if(this.merchandisingAssociationItems[0].catEntry_Type=="BundleBean"){dragType="bundle"}}}}var widgetHTML="";if(document.getElementById("addToCartLink")){var url="AjaxOrderItemDisplayView?storeId="+this.storeId+"&catalogId="+this.catalogId+"&langId="+this.langId;widgetHTML=widgetHTML+"<form name='OrderItemAddForm_"+this.merchandisingAssociationItems[0].catEntry_Identifier+"' action='OrderChangeServiceItemAdd' method='post' id='OrderItemAddForm_"+this.merchandisingAssociationItems[0].catEntry_Identifier+"'>\n<input type='hidden' name='storeId' value='"+this.storeId+"' id='OrderItemAddForm_storeId_"+this.merchandisingAssociationItems[0].catEntry_Identifier+"'/>\n<input type='hidden' name='orderId' value='.' id='OrderItemAddForm_orderId_"+this.merchandisingAssociationItems[0].catEntry_Identifier+"'/>\n<input type='hidden' name='catalogId' value='"+this.catalogId+"' id='OrderItemAddForm_orderId_"+this.merchandisingAssociationItems[0].catEntry_Identifier+"'/>\n<input type='hidden' name='URL' value='"+url+"' id='OrderItemAddForm_url_"+this.merchandisingAssociationItems[0].catEntry_Identifier+"'/>\n<input type='hidden' name='errorViewName' value='InvalidInputErrorView' id='OrderItemAddForm_errorViewName_"+this.merchandisingAssociationItems[0].catEntry_Identifier+"'/>\n<input type='hidden' name='catEntryId' value='"+this.merchandisingAssociationItems[0].catEntry_Identifier+"' id='OrderItemAddForm_catEntryId_"+this.merchandisingAssociationItems[0].catEntry_Identifier+"'/>\n<input type='hidden' name='productId' value='"+this.merchandisingAssociationItems[0].catEntry_Identifier+"' id='OrderItemAddForm_productId_"+this.merchandisingAssociationItems[0].catEntry_Identifier+"'/>\n<input type='hidden' value='1' name='quantity' id='OrderItemAddForm_quantity_"+this.merchandisingAssociationItems[0].catEntry_Identifier+"'/>\n<input type='hidden' value='' name='page' id='OrderItemAddForm_page_"+this.merchandisingAssociationItems[0].catEntry_Identifier+"'/>\n</form>\n"}widgetHTML=widgetHTML+"<div class='scroller' id='WC_CategoryDisplayJS_div_1'>";if(this.totalAssociationCount>1){if(this.associationThumbnailIndex<this.totalAssociationCount){widgetHTML=widgetHTML+"		<a href='Javascript:categoryDisplayJS.showNextAssociation()'  id='WC_ProductAssociation_UpArrow_Link_1'>"}widgetHTML=widgetHTML+"		<img src='"+this.baseCatalogEntryDetails[0].storeImage_Path+"i_up_arrow.png' alt='"+this.displayNextAssociation+"'/></a>"}widgetHTML=widgetHTML+" <br /><div id='baseContent_"+this.merchandisingAssociationItems[0].catEntry_Identifier+"'";if(this.merchandisingAssociationItems[0].showProductQuickView=="true"){widgetHTML=widgetHTML+" onmouseover='showPopupButton("+this.merchandisingAssociationItems[0].catEntry_Identifier+");' onmouseout='hidePopupButton("+this.merchandisingAssociationItems[0].catEntry_Identifier+");'>"}else{widgetHTML=widgetHTML+" >"}if(this.merchandisingAssociationItems[0].productDragAndDrop=="true"){widgetHTML=widgetHTML+" <div dojoType='dojo.dnd.Source' jsId='dndSource' id="+this.merchandisingAssociationItems[0].catEntry_Identifier+" copyOnly='true' dndType='"+dragType+"'>		<div class='dojoDndItem' dndType='"+dragType+"' id='WC_CategoryDisplayJS_div_draganddrop'>"}widgetHTML=widgetHTML+"	<a href='"+this.merchandisingAssociationItems[0].catEntry_ProductLink+"'  id='img"+this.merchandisingAssociationItems[0].catEntry_Identifier+"' onfocus='showPopupButton("+this.merchandisingAssociationItems[0].catEntry_Identifier+");'>		<img src='"+this.merchandisingAssociationItems[0].catEntry_Thumbnail+"' alt='"+this.merchandisingAssociationItems[0].catEntry_ShortDescription+"' class='img'/>	</a><br />";if(this.merchandisingAssociationItems[0].productDragAndDrop=="true"){widgetHTML=widgetHTML+"		</div>	</div>"}if(this.merchandisingAssociationItems[0].showProductQuickView=="true"){widgetHTML=widgetHTML+" <div id='popupButton_"+this.merchandisingAssociationItems[0].catEntry_Identifier+"' class='main_quickinfo_button'><span class='secondary_button' >\n<span class='button_container' >\n<span class='button_bg' >\n<span class='button_top'>\n<span class='button_bottom'>\n<a id='QuickInfoButton_"+this.merchandisingAssociationItems[0].catEntry_Identifier+"' href='#' onclick='javaScript:var actionListImageAcct = new popupActionProperties(); actionListImageAcct.showWishList="+this.merchandisingAssociationItems[0].associationProductBuyable+"; actionListImageAcct.showAddToCart="+this.merchandisingAssociationItems[0].associationProductBuyable+"; showPopup("+this.merchandisingAssociationItems[0].catEntry_Identifier+","+this.storeId+","+this.langId+","+this.catalogId+",event,null,null,actionListImageAcct);' onkeypress='javaScript:var actionListImageAcct = new popupActionProperties(); actionListImageAcct.showWishList="+this.merchandisingAssociationItems[0].associationProductBuyable+"; actionListImageAcct.showAddToCart="+this.merchandisingAssociationItems[0].associationProductBuyable+"; showPopup("+this.merchandisingAssociationItems[0].catEntry_Identifier+","+this.storeId+","+this.langId+","+this.catalogId+",event,null,null,actionListImageAcct);' onblur='hidePopupButton("+this.merchandisingAssociationItems[0].catEntry_Identifier+");' role='wairole:button' waistate:haspopup='true'>"+this.merchandisingAssociationItems[0].showProductQuickViewLable+"</a></span>\n</span>\n</span>\n</span>\n</span>\n</div>\n"}widgetHTML=widgetHTML+"</div>";if(this.totalAssociationCount>1){if(this.associationThumbnailIndex>1){widgetHTML=widgetHTML+"		<a href='Javascript:categoryDisplayJS.showPreviousAssociation()'  id='WC_ProductAssociation_DownArrow_Link_1'>"}widgetHTML=widgetHTML+"		<img src='"+this.baseCatalogEntryDetails[0].storeImage_Path+"i_down_arrow.png' alt='"+this.displayPrevAssociation+"'/></a>"}var comboText=this.baseCatalogEntryDetails[0].associatedProductsName.replace("{0}",this.baseCatalogEntryDetails[0].baseCatEntry_Name);comboText=comboText.replace("{1}",this.merchandisingAssociationItems[0].catEntry_Name);widgetHTML=widgetHTML+"</div><div class='combo_text' id='WC_CategoryDisplayJS_div_2'>\n	<h1 class='status_msg'>"+comboText+"</h1>\n	<span class='grey'>"+totalPriceMsg+dojo.currency.format(toatlPrice.toFixed(2),{currency:this.baseCatalogEntryDetails[0].currency})+"</span>\n</div>\n";widgetHTML=widgetHTML+"<input type='hidden' id='compareImgPath_"+this.merchandisingAssociationItems[0].catEntry_Identifier+"' value='"+this.merchandisingAssociationItems[0].catEntry_Thumbnail_compare+"'/><input type='hidden' id='compareProductDetailsPath_"+this.merchandisingAssociationItems[0].catEntry_Identifier+"' value='"+this.merchandisingAssociationItems[0].catEntry_ProductLink+"'/><input type='hidden' id='compareImgDescription_"+this.merchandisingAssociationItems[0].catEntry_Identifier+"' value='"+this.merchandisingAssociationItems[0].catEntry_Name+"'/>";associationDisplay.innerHTML=null;associationDisplay.innerHTML=widgetHTML;dojo.parser.parse(associationDisplay)},showNextAssociation:function(){if(this.associationThumbnailIndex<this.totalAssociationCount){this.associationThumbnailIndex=this.associationThumbnailIndex+1;this.initializeMerchandisingAssociation(this.associationThumbnailIndex)}},showPreviousAssociation:function(){if(this.associationThumbnailIndex>1){this.associationThumbnailIndex=this.associationThumbnailIndex-1;this.initializeMerchandisingAssociation(this.associationThumbnailIndex)}},AddAssociation2ShopCartAjax:function(baseProductId,baseProductQuantity){var identifierJSON="associatedCatEntries_"+this.associationThumbnailIndex;var associationEntryJSON=eval("("+dojo.byId(identifierJSON).innerHTML+")");this.merchandisingAssociationItems=associationEntryJSON;this.baseItemAddedToCart=false;if(this.merchandisingAssociationItems[0].catEntry_Type=="ProductBean"){this.Add2ShopCartAjax(baseProductId,baseProductQuantity);if(this.baseItemAddedToCart){showPopup(this.merchandisingAssociationItems[0].catEntry_Identifier,this.storeId,this.langId,this.catalogId,function(e){return e},"marchandisingAssociationDisplay")}}else{if(this.merchandisingAssociationItems[0].catEntry_Type=="ItemBean"||this.merchandisingAssociationItems[0].catEntry_Type=="PackageBean"||this.merchandisingAssociationItems[0].catEntry_Type=="BundleBean"){var entitledItemJSON=eval("("+dojo.byId(baseProductId).innerHTML+")");this.setEntitledItems(entitledItemJSON);var catalogEntryId=this.getCatalogEntryId();var params=[];params.storeId=this.storeId;params.catalogId=this.catalogId;params.langId=this.langId;params.orderId=".";if(catalogEntryId!=null){this.updateParamObject(params,"catEntryId",catalogEntryId,false,-1);this.updateParamObject(params,"quantity",baseProductQuantity,false,-1);if(this.merchandisingAssociationItems[0].catEntry_Type=="BundleBean"){var form=document.getElementById(this.merchandisingAssociationItems[0].catEntry_BundleFormId);var catEntryArray=[];catEntryArray=form.catEntryIDS.value.toString().split(",");for(var i=0;i<catEntryArray.length;i++){var qty=document.getElementById("quantity_"+catEntryArray[i]).value;var catEntryId=catEntryArray[i];if(this.getDefaultItem(catEntryArray[i])){catEntryId=this.getDefaultItem(catEntryArray[i])}if(qty==0||qty==null){qty=1}if(qty!=null&&qty!=""&&catEntryId!=null){this.updateParamObject(params,"catEntryId",catEntryId,false,-1);this.updateParamObject(params,"quantity",qty,false,-1)}else{MessageHelper.displayErrorMessage(MessageHelper.messages.ERR_RESOLVING_SKU);return}}}else{this.updateParamObject(params,"catEntryId",this.merchandisingAssociationItems[0].catEntry_Identifier,false,-1);this.updateParamObject(params,"quantity",1,false,-1)}}else{MessageHelper.displayErrorMessage(MessageHelper.messages.ERR_RESOLVING_SKU);return}if(!submitRequest()){return}cursor_wait();wc.service.invoke("AjaxAddOrderItem",params)}}},AddMarchandisingAssociation2ShopCart:function(entitledItemId,form,quantity){var identifierJSON="associatedCatEntries_"+this.associationThumbnailIndex;var associationEntryJSON=eval("("+dojo.byId(identifierJSON).innerHTML+")");this.merchandisingAssociationItems=associationEntryJSON;var entitledItemJSON=eval("("+dojo.byId(entitledItemId).innerHTML+")");this.setEntitledItems(entitledItemJSON);var catalogEntryId_1=this.getCatalogEntryId();if(this.merchandisingAssociationItems[0].catEntry_Type=="ProductBean"){if(catalogEntryId_1!=null){form.catEntryId_1.value=catalogEntryId_1;form.productId_1.value=catalogEntryId_1;form.quantity_1.value=quantity;this.merchandisingProductAssociationAddToCart=true;this.merchandisingProductAssociationForm=form;showPopup(this.merchandisingAssociationItems[0].catEntry_Identifier,this.storeId,this.langId,this.catalogId,function(e){return e},"marchandisingAssociationDisplay")}else{MessageHelper.displayErrorMessage(MessageHelper.messages.ERR_RESOLVING_SKU);return}}else{if(this.merchandisingAssociationItems[0].catEntry_Type=="ItemBean"||this.merchandisingAssociationItems[0].catEntry_Type=="PackageBean"||this.merchandisingAssociationItems[0].catEntry_Type=="BundleBean"){if(catalogEntryId_1!=null){form.catEntryId_1.value=catalogEntryId_1;form.productId_1.value=catalogEntryId_1;form.quantity_1.value=quantity;if(this.merchandisingAssociationItems[0].catEntry_Type=="BundleBean"){var bundleForm=document.getElementById(this.merchandisingAssociationItems[0].catEntry_BundleFormId);var catEntryArray=[];catEntryArray=bundleForm.catEntryIDS.value.toString().split(",");var catEntryCount=3;for(var i=0;i<catEntryArray.length;i++){var qty=document.getElementById("quantity_"+catEntryArray[i]).value;var catEntryId=catEntryArray[i];if(this.getDefaultItem(catEntryArray[i])){catEntryId=this.getDefaultItem(catEntryArray[i])}if(qty==0||qty==null){qty=1}if(qty!=null&&qty!=""&&catEntryId!=null){if(i==0){form.catEntryId_2.value=catEntryId;form.productId_2.value=catEntryId;form.quantity_2.value=qty}else{var input1=document.createElement("input");input1.setAttribute("id","OrderAssociationItemAddForm_catEntryId_"+catEntryId);input1.setAttribute("type","hidden");input1.setAttribute("name","catEntryId_"+catEntryCount);input1.setAttribute("value",catEntryId);form.appendChild(input1);var input2=document.createElement("input");input2.setAttribute("id","OrderAssociationItemAddForm_productId_"+catEntryId);input2.setAttribute("type","hidden");input2.setAttribute("name","productId_"+catEntryCount);input2.setAttribute("value",catEntryId);form.appendChild(input2);var quantity1=document.createElement("input");quantity1.setAttribute("id","OrderAssociationItemAddForm_quantity_"+catEntryId);quantity1.setAttribute("type","hidden");quantity1.setAttribute("name","quantity_"+catEntryCount);quantity1.setAttribute("value","1");form.appendChild(quantity1);catEntryCount=catEntryCount+1}}else{MessageHelper.displayErrorMessage(MessageHelper.messages.ERR_RESOLVING_SKU);return}}}else{form.catEntryId_2.value=this.merchandisingAssociationItems[0].catEntry_Identifier;form.productId_2.value=this.merchandisingAssociationItems[0].catEntry_Identifier;form.quantity_2.value="1"}if(!submitRequest()){return}form.submit()}else{MessageHelper.displayErrorMessage(MessageHelper.messages.ERR_RESOLVING_SKU);return}}}},AddAssociation2ShopCart:function(l,d){var b=this.merchandisingProductAssociationForm;this.merchandisingProductAssociationAddToCart=false;if(this.isParentBundleBean){var j=[];j=b.catEntryIDS.value.toString().split(",");var a=1;for(var f=0;f<j.length;f++){var k=document.getElementById("quantity_"+j[f]).value;var g=j[f];if(this.selectedProducts[j[f]]){g=this.getCatalogEntryIdforProduct(this.selectedProducts[j[f]])}if(k==0||k==null){k=1}if(k!=null&&k!=""&&g!=null){var e=document.createElement("input");e.setAttribute("id","OrderItemAddForm_catEntryId_"+g);e.setAttribute("type","hidden");e.setAttribute("name","catEntryId_"+a);e.setAttribute("value",g);a=a+1;b.appendChild(e)}else{MessageHelper.displayErrorMessage(MessageHelper.messages.ERR_RESOLVING_SKU);return}}var c=document.createElement("input");c.setAttribute("id","OrderItemAddForm_catEntryId_"+l);c.setAttribute("type","hidden");c.setAttribute("name","catEntryId_"+a);c.setAttribute("value",l);b.appendChild(c);var h=document.createElement("input");h.setAttribute("id","OrderItemAddForm_quantity_"+l);h.setAttribute("type","hidden");h.setAttribute("name","quantity_"+a);h.setAttribute("value",d);b.appendChild(h);b.URL.value="AjaxOrderItemDisplayView";this.isParentBundleBean=false}else{b.catEntryId_2.value=l;b.productId_2.value=l;b.quantity_2.value=d}if(!submitRequest()){return}b.submit();this.merchandisingProductAssociationForm=""},AddAssociationItem2ShopCartAjax:function(baseItemId,baseItemQuantity){var identifierJSON="associatedCatEntries_"+this.associationThumbnailIndex;var associationEntryJSON=eval("("+dojo.byId(identifierJSON).innerHTML+")");this.merchandisingAssociationItems=associationEntryJSON;this.baseItemAddedToCart=false;if(this.merchandisingAssociationItems[0].catEntry_Type=="ProductBean"){this.AddItem2ShopCartAjax(baseItemId,baseItemQuantity);if(this.baseItemAddedToCart){showPopup(this.merchandisingAssociationItems[0].catEntry_Identifier,this.storeId,this.langId,this.catalogId,function(e){return e},"marchandisingAssociationDisplay")}}else{if(this.merchandisingAssociationItems[0].catEntry_Type=="ItemBean"||this.merchandisingAssociationItems[0].catEntry_Type=="PackageBean"||this.merchandisingAssociationItems[0].catEntry_Type=="BundleBean"){var params=[];params.storeId=this.storeId;params.catalogId=this.catalogId;params.langId=this.langId;params.orderId=".";this.updateParamObject(params,"catEntryId",baseItemId,false,-1);this.updateParamObject(params,"quantity",baseItemQuantity,false,-1);if(this.merchandisingAssociationItems[0].catEntry_Type=="BundleBean"){var form=document.getElementById(this.merchandisingAssociationItems[0].catEntry_BundleFormId);var catEntryArray=[];catEntryArray=form.catEntryIDS.value.toString().split(",");for(var i=0;i<catEntryArray.length;i++){var qty=document.getElementById("quantity_"+catEntryArray[i]).value;var catEntryId=catEntryArray[i];if(this.getDefaultItem(catEntryArray[i])){catEntryId=this.getDefaultItem(catEntryArray[i])}if(qty==0||qty==null){qty=1}if(qty!=null&&qty!=""&&catEntryId!=null){this.updateParamObject(params,"catEntryId",catEntryId,false,-1);this.updateParamObject(params,"quantity",qty,false,-1)}else{MessageHelper.displayErrorMessage(MessageHelper.messages.ERR_RESOLVING_SKU);return}}}else{this.updateParamObject(params,"catEntryId",this.merchandisingAssociationItems[0].catEntry_Identifier,false,-1);this.updateParamObject(params,"quantity",1,false,-1)}if(!submitRequest()){return}cursor_wait();wc.service.invoke("AjaxAddOrderItem",params)}}},AddAssociationItem2ShopCart:function(form,quantity){var identifierJSON="associatedCatEntries_"+this.associationThumbnailIndex;var associationEntryJSON=eval("("+dojo.byId(identifierJSON).innerHTML+")");this.merchandisingAssociationItems=associationEntryJSON;if(this.merchandisingAssociationItems[0].catEntry_Type=="ProductBean"){if(quantity){form.quantity_1.value=quantity}this.merchandisingProductAssociationAddToCart=true;this.merchandisingProductAssociationForm=form;showPopup(this.merchandisingAssociationItems[0].catEntry_Identifier,this.storeId,this.langId,this.catalogId,function(e){return e},"marchandisingAssociationDisplay")}else{if(this.merchandisingAssociationItems[0].catEntry_Type=="ItemBean"||this.merchandisingAssociationItems[0].catEntry_Type=="PackageBean"||this.merchandisingAssociationItems[0].catEntry_Type=="BundleBean"){if(quantity){form.quantity_1.value=quantity}if(this.merchandisingAssociationItems[0].catEntry_Type=="BundleBean"){var bundleForm=document.getElementById(this.merchandisingAssociationItems[0].catEntry_BundleFormId);var catEntryArray=[];catEntryArray=bundleForm.catEntryIDS.value.toString().split(",");var catEntryCount=3;for(var i=0;i<catEntryArray.length;i++){var qty=document.getElementById("quantity_"+catEntryArray[i]).value;var catEntryId=catEntryArray[i];if(this.getDefaultItem(catEntryArray[i])){catEntryId=this.getDefaultItem(catEntryArray[i])}if(qty==0||qty==null){qty=1}if(i==0){form.catEntryId_2.value=catEntryId;form.productId_2.value=catEntryId;form.quantity_2.value=qty}else{var input1=document.createElement("input");input1.setAttribute("id","OrderAssociationItemAddForm_catEntryId_"+catEntryId);input1.setAttribute("type","hidden");input1.setAttribute("name","catEntryId_"+catEntryCount);input1.setAttribute("value",catEntryId);form.appendChild(input1);var input2=document.createElement("input");input2.setAttribute("id","OrderAssociationItemAddForm_productId_"+catEntryId);input2.setAttribute("type","hidden");input2.setAttribute("name","productId_"+catEntryCount);input2.setAttribute("value",catEntryId);form.appendChild(input2);var quantity1=document.createElement("input");quantity1.setAttribute("id","OrderAssociationItemAddForm_quantity_"+catEntryId);quantity1.setAttribute("type","hidden");quantity1.setAttribute("name","quantity_"+catEntryCount);quantity1.setAttribute("value","1");form.appendChild(quantity1);catEntryCount=catEntryCount+1}}}else{form.catEntryId_2.value=this.merchandisingAssociationItems[0].catEntry_Identifier;form.productId_2.value=this.merchandisingAssociationItems[0].catEntry_Identifier;form.quantity_2.value="1"}if(!submitRequest()){return}form.submit()}}},AddAssociationBundle2ShopCartAjax:function(form){var identifierJSON="associatedCatEntries_"+this.associationThumbnailIndex;var associationEntryJSON=eval("("+dojo.byId(identifierJSON).innerHTML+")");this.merchandisingAssociationItems=associationEntryJSON;this.baseItemAddedToCart=false;var params=[];params.storeId=this.storeId;params.catalogId=this.catalogId;params.langId=this.langId;params.orderId=".";var catEntryArray=[];catEntryArray=form.catEntryIDS.value.toString().split(",");for(var i=0;i<catEntryArray.length;i++){var qty=document.getElementById("quantity_"+catEntryArray[i]).value;var catEntryId=catEntryArray[i];if(this.getDefaultItem(catEntryArray[i])){catEntryId=this.getDefaultItem(catEntryArray[i])}if(qty==0||qty==null){qty=1}if(qty!=null&&qty!=""&&catEntryId!=null){this.updateParamObject(params,"catEntryId",catEntryId,false,-1);this.updateParamObject(params,"quantity",qty,false,-1);this.baseItemAddedToCart="true"}else{MessageHelper.displayErrorMessage(MessageHelper.messages.ERR_RESOLVING_SKU);return}}if(this.merchandisingAssociationItems[0].catEntry_Type=="BundleBean"){var bundleForm=document.getElementById(this.merchandisingAssociationItems[0].catEntry_BundleFormId);var innerCatEntryArray=[];innerCatEntryArray=bundleForm.catEntryIDS.value.toString().split(",");for(var i=0;i<innerCatEntryArray.length;i++){var qty=document.getElementById("quantity_"+innerCatEntryArray[i]).value;var innerCatEntryId=innerCatEntryArray[i];if(this.getDefaultItem(innerCatEntryArray[i])){innerCatEntryId=this.getDefaultItem(innerCatEntryArray[i])}if(qty==0||qty==null){qty=1}if(qty!=null&&qty!=""&&innerCatEntryId!=null){this.updateParamObject(params,"catEntryId",innerCatEntryId,false,-1);this.updateParamObject(params,"quantity",qty,false,-1)}else{MessageHelper.displayErrorMessage(MessageHelper.messages.ERR_RESOLVING_SKU);return}}}else{if(this.merchandisingAssociationItems[0].catEntry_Type=="PackageBean"||this.merchandisingAssociationItems[0].catEntry_Type=="ItemBean"){this.updateParamObject(params,"catEntryId",this.merchandisingAssociationItems[0].catEntry_Identifier,false,-1);this.updateParamObject(params,"quantity",1,false,-1)}}if(!submitRequest()){return}cursor_wait();wc.service.invoke("AjaxAddOrderItem",params);if(this.merchandisingAssociationItems[0].catEntry_Type=="ProductBean"){showPopup(this.merchandisingAssociationItems[0].catEntry_Identifier,this.storeId,this.langId,this.catalogId,function(e){return e},"marchandisingAssociationDisplay")}},AddAssociationBundle2ShopCart:function(form){var identifierJSON="associatedCatEntries_"+this.associationThumbnailIndex;var associationEntryJSON=eval("("+dojo.byId(identifierJSON).innerHTML+")");this.merchandisingAssociationItems=associationEntryJSON;this.isParentBundleBean=true;if(this.merchandisingAssociationItems[0].catEntry_Type=="ProductBean"){this.merchandisingProductAssociationAddToCart=true;this.merchandisingProductAssociationForm=form;var catEntryArray=[];catEntryArray=form.catEntryIDS.value.toString().split(",");var bundleItemsCount=1;for(var i=0;i<catEntryArray.length;i++){var qty=document.getElementById("quantity_"+catEntryArray[i]).value;var catEntryId=catEntryArray[i];if(this.getDefaultItem(catEntryArray[i])){catEntryId=this.getDefaultItem(catEntryArray[i])}if(catEntryId!=null){form["catEntryId_"+catEntryArray[i]].value=catEntryId}else{MessageHelper.displayErrorMessage(MessageHelper.messages.ERR_RESOLVING_SKU);return}bundleItemsCount=bundleItemsCount+1}showPopup(this.merchandisingAssociationItems[0].catEntry_Identifier,this.storeId,this.langId,this.catalogId,function(e){return e},"marchandisingAssociationDisplay")}else{if(this.merchandisingAssociationItems[0].catEntry_Type=="ItemBean"||this.merchandisingAssociationItems[0].catEntry_Type=="PackageBean"||this.merchandisingAssociationItems[0].catEntry_Type=="BundleBean"){var catEntryArray=[];catEntryArray=form.catEntryIDS.value.toString().split(",");var bundleItemsCount=1;for(var i=0;i<catEntryArray.length;i++){var qty=document.getElementById("quantity_"+catEntryArray[i]).value;var catEntryId=catEntryArray[i];if(this.getDefaultItem(catEntryArray[i])){catEntryId=this.getDefaultItem(catEntryArray[i])}if(catEntryId!=null){form["catEntryId_"+catEntryArray[i]].value=catEntryId}else{MessageHelper.displayErrorMessage(MessageHelper.messages.ERR_RESOLVING_SKU);return}bundleItemsCount=bundleItemsCount+1}if(this.merchandisingAssociationItems[0].catEntry_Type=="BundleBean"){var bundleForm=document.getElementById(this.merchandisingAssociationItems[0].catEntry_BundleFormId);var innerCatEntryArray=[];innerCatEntryArray=bundleForm.catEntryIDS.value.toString().split(",");for(var i=0;i<innerCatEntryArray.length;i++){var qty=document.getElementById("quantity_"+innerCatEntryArray[i]).value;var innerCatEntryId=innerCatEntryArray[i];if(this.getDefaultItem(innerCatEntryArray[i])){innerCatEntryId=this.getDefaultItem(innerCatEntryArray[i])}if(qty==0||qty==null){qty=1}if(qty!=null&&qty!=""&&innerCatEntryId!=null){var input2=document.createElement("input");input2.setAttribute("id","OrderItemAddForm_catEntryId_"+innerCatEntryId);input2.setAttribute("type","hidden");input2.setAttribute("name","catEntryId_"+bundleItemsCount);input2.setAttribute("value",innerCatEntryId);form.appendChild(input2);var quantity2=document.createElement("input");quantity2.setAttribute("id","OrderItemAddForm_quantity_"+innerCatEntryId);quantity2.setAttribute("type","hidden");quantity2.setAttribute("name","quantity_"+bundleItemsCount);quantity2.setAttribute("value","1");form.appendChild(quantity2);bundleItemsCount=bundleItemsCount+1}else{MessageHelper.displayErrorMessage(MessageHelper.messages.ERR_RESOLVING_SKU);return}}}else{var input2=document.createElement("input");input2.setAttribute("id","OrderItemAddForm_catEntryId_"+this.merchandisingAssociationItems[0].catEntry_Identifier);input2.setAttribute("type","hidden");input2.setAttribute("name","catEntryId_"+bundleItemsCount);input2.setAttribute("value",this.merchandisingAssociationItems[0].catEntry_Identifier);form.appendChild(input2);var quantity2=document.createElement("input");quantity2.setAttribute("id","OrderItemAddForm_quantity_"+this.merchandisingAssociationItems[0].catEntry_Identifier);quantity2.setAttribute("type","hidden");quantity2.setAttribute("name","quantity_"+bundleItemsCount);quantity2.setAttribute("value","1");form.appendChild(quantity2)}form.URL.value="AjaxOrderItemDisplayView";if(!submitRequest()){return}form.submit()}}}};categoryDisplayJS.HistoryTracker.prototype.back=categoryDisplayJS.goBack;categoryDisplayJS.HistoryTracker.prototype.forward=categoryDisplayJS.goForward;
