//**********************************************************************************//
Functions.changeProductNormalImage = function(imageName, mediaID){
  imgSrc   = "media/product/normal/" + imageName;
  linkTemp = "index.php?_room=media&_spAction=zoomImage&media_id=" + mediaID;
  linkSrc  = "javascript:UtilWindow.openWindow(linkTemp,'1010','800')";
  document.getElementById("productImage").src = imgSrc;
  document.getElementById("largeImage").href  = linkSrc;
}

//**********************************************************************************//
Functions.popUp = function(windowURL,windowName,windowWidth,windowHeight) {

   window.name = 'parentWnd';
   newWindow = window.open(windowURL,windowName,'width='+windowWidth+',height='+windowHeight+',toolbar=0,location=0,directories=0,status=0,menuBar=0,scrollBars=1,resizable=1');
}
//=====================================================// 
Functions.setColorOrFragrance = function(frmObj, product_id, useSEOUrl){
   var fieldName = 'product_item_id_' + product_id;
   var sourceObj = frmObj[fieldName];
   var product_item_id  = sourceObj[sourceObj.selectedIndex].value;
   
   var addToCartRowObj  = document.getElementById("cartRow__" + product_id);
   if(addToCartRowObj){
      addToCartRowObj.innerHTML = "<a href=\"javascript:Cart.addToCart('product', '" + product_id + "', '" + product_item_id + "', '" + useSEOUrl + "');\" class=\"detailCart\">Add to Cart</a>";
   }   
}

//**********************************************************************************
function changeCategoryVL(formName) {
  formObj  = document.forms[formName];
  //categoryVL = document.getElementById("selectedCategoryVL").value;
  //formObj.action = formObj.action + "&category_vl=" + categoryVL;
  formObj.submit();
}  
