function salvaTagAction(productId, contextPath, layoutIn, pageNumberIn){
	jslog.debug('salvaTag');
	jslog.debug($('tagTextValue_'+productId));
	AjaxSpinner.show();
        new Ajax(contextPath + '/UserShelfContent.action',
       {
         method:'post',
         data:Object.toQueryString({
         _eventName:'insertTags',
         productId:productId,
         layout:layoutIn,
         pageNumber:pageNumberIn,
         tagText:$('tagTextValue_'+productId).value,
                              fromUpdatePage:true
         }),
         update:$('catalogoScaffale'),
         evalScripts: true,
         onComplete:function(){
          $('catalogoScaffale').setStyle('display', 'block');
           AjaxSpinner.hide();
         }
       }
       ).request();

}

function salvaTagFromProductDetailAction(productId, contextPath){
	jslog.debug('salvaTag');
	jslog.debug($('tagTextValue_'+productId));
	AjaxSpinner.show();
        new Ajax(contextPath + '/UserShelfContent.action',
       {
         method:'post',
         data:Object.toQueryString({
         _eventName:'insertTags',
         productId:productId,
         tagText:$('campoParolaChiave').value,
         callingPage:'productDetail'
         }),
         update:$('paroleChiaveUtenti'),
         evalScripts: true,
         onComplete:function(){
          $('paroleChiaveUtenti').setStyle('display', 'block');
           AjaxSpinner.hide();
         }
       }
       ).request();

}
								
