function callback_productListEvent(strType, eventData)
{
  if (strType == "EXPAND" || strType == "COLLAPSE")
    XHR_FormPOST("/XHR_UpdateSession.aspx", "KEY=GarmentList_state&VAL=" + this.GetItemStates(), true, null);
}

function callback_productListExpanderClick(strType, eventData)
{
}

function callback_designListEvent(strType, eventData)
{
  if (strType == "EXPAND" || strType == "COLLAPSE")
    XHR_FormPOST("/XHR_UpdateSession.aspx", "KEY=DesignList_state&VAL=" + this.GetItemStates(), true, null);
}

function callback_designListExpanderClick(strType, eventData)
{
}

function DesignSearch(fShopLink)
{
  objTxtSearch = GetDOMObject("txtSearch");
  if (objTxtSearch)
  {
    if (fShopLink)
    {
      iframe = GetIFrameWindow("design_list");
      if (iframe)
        iframe.location.href = "/design_list.aspx?m=STANDARD_S&q=" + escape(objTxtSearch.value);
    }
    else
      document.location.href = "/shop.aspx?ds=" + escape(objTxtSearch.value)
  }
}

function DesignSearchKeyUp(evt)
{
  var keyCode = (window.event) ? window.event.keyCode : evt.keyCode;
  if (keyCode == 0x0D)
  {
    var btn = GetDOMObject("design_search_go_btn");
    if (btn)
      btn.onclick();
  }
}
