changeProductPhotoView = function(profile,profileList) {
  gel('productphoto').src = getProductImageSource(profile);
  gel('productphoto').setAttribute("pbsrc", getProductImageSource("large"+profile));
  currentProfileName = profile;
  InitPbSrc();
}

updateProductSelection = function() {
  var key = document.getElementById('prodcode').value;

  if (product_pictures[key] != sNSCImagePath) {
    document.productphoto.src = product_pictures[key];
    gel("productphoto").setAttribute("pbsrc", getProductImageSource("large"));
    pbSrc["productphoto"].src = getProductImageSource("large");
  } else {
    document.productphoto.src = "/themes/store_images/product-noimage.gif";
    gel("productphoto").setAttribute("pbsrc", "/themes/store_images/product-noimage.gif");
    pbSrc["productphoto"].src = "/themes/store_images/product-noimage.gif";
  }

  refreshItemData(key,2,'productbuyinfo');
}
