var container;

function schedaHotelAlpi(the_url, the_codProd, the_container, the_kpro){

	container=the_container;

	var param = the_url + '?codProd=' + the_codProd + '&kPro=' + the_kpro;
				
	var htmlcvb = $('#olddivcvb_' + the_codProd.substring(2) + '_' + the_kpro).html();

	$.ajax({
		url: param,
		type: 'GET',
		//	decommentare se si lavora con file locali e IE
		//dataType: (jQuery.browser.msie) ? 'text' : 'xml',
		//	commentare questa riga se si lavora con file locali e IE
		dataType: 'html',
		async: true,
		cache: false,
		success: function(htmlData){
			if(htmlData!='')
			{	
				$('#'+container).html(htmlData); //.show
				//$('#divcvbdaeliminare_' + the_codProd.substring(2) + '_' + the_kpro).remove();
				$('#newdivcvb_' + the_codProd.substring(2) + '_' + the_kpro).html(htmlcvb);		

			 	// popAlpi VGTO VGWJ
				jQuery('.popAlpi').popAlpi();
				jQuery('#poalto').livequery(function(){
					jQuery(this).bgiframe();
				});

				removeOpacity();
				//var divDett = 'tableDetails_' + the_codProd.substring(2) + '_' + the_kpro;
				//animatedcollapse.addDiv(divDett, 'fade=1');
				//animatedcollapse.init();
			}else{
				$('#vediDett' + the_codProd.substring(2) + '_' + the_kpro).html(''); //nascondo il VEDI DETTAGLI
				removeOpacity();
			}
			return;
			
		}
	
	})
};	
