function setVal(property, value){
  try{
    document.getElementById(property).value = value;
  }catch(ex){}
}

function getVal(property){
  try{
    return document.getElementById(property).value;
  }catch(ex){}
  return "";
}

function addToCart(storeId, catEntryId){
  setVal("storeId", storeId);
  setVal("catEntryId", catEntryId);
  document.OrderItemAddForm.submit();
}

function addToCartTS(catId){
  document.OrderItemAddFormTS.catEntryId.value=catId;
  document.OrderItemAddFormTS.submit();
}

function addToCartSSO(catId){
  document.OrderItemAddFormSSO.productId.value=catId;
  document.OrderItemAddFormSSO.catEntryId.value=catId;
  document.OrderItemAddFormSSO.submit();
}


