function Aggiorna(pagina) 
{pagina=pagina+ '&cf=C&codice_cliente='+cod_cli_exe;document.varie.location.href=pagina;}
function Set_free_prev() 
{var expdate = new Date();expdate.setTime(expdate.getTime() +  (24 * 60 * 60 * 1000 * 365)); 
SetCookie("free_prev_exe", null , expdate, "/", null, false);}
//function Vai_articolo(oggetto){	document.varie.location.href="/commerciali/articolo.asp?tipo=multi&codice_cliente="+cod_cli_exe+"&enduser="+enduser+"&power_shop="+power_shop+"&marchio=" + oggetto}
//Andrea 22/10/03 link alla pagina Articolo_marchi.asp che visualizza tutte le categorie per il marchio richiesto
function Vai_articolo(oggetto,objselect){var param=String(objselect.options[objselect.selectedIndex].text).replace('Selezionare un marchio','');	var strlink="/commerciali/articolo_marchio.asp?enduser="+enduser+"&power_shop="+power_shop+"&marchio=" + param;
	//document.varie.location.href="/commerciali/articolo_marchio.asp?enduser="+enduser+"&power_shop="+power_shop+"&marchio=" + oggetto
	if (param=='') strlink='/commerciali/articolo_elenco_brand.asp?menu=6';	
	window.open(strlink,'varie')
	}
function Nascondi()
{top.fr_varie2.style.display='none';}
function SetCookie (name, value) 
{var argv = SetCookie.arguments;var argc = SetCookie.arguments.length;var expires = (2 < argc) ? argv[2] : null;
var path = (3 < argc) ? argv[3] : null;var domain = (4 < argc) ? argv[4] : null;var secure = (5 < argc) ? argv[5] : false;
document.cookie = name + "=" + escape (value) + ((expires == null) ? "" : ("; expires=" + expires.toGMTString())) +((path == null) ? "" : ("; path=" + path)) + ((domain == null) ? "" : ("; domain=" + domain)) + ((secure == true) ? "; secure" : "");}
function getversion(valore) 
{var position = navigator.appVersion.indexOf("MSIE" );
if (position >-1) 
   {switch (navigator.appVersion.charAt(position+5)) 
      {
         case "3": 
		 	return "3"
			break
         case "4": 
		 	return "4"
            break
         case "5": 
		 	return "5"
            break
      }
   }
   else
	 	return ""
}
function dammi_action(solo_se_ho_bonifici) {
if(solo_se_ho_bonifici) {
 var co2=RSExecute("/scriptlibrary/log.asp","esistono_bonifici_caus_27",cod_cli_exe);
 if(!co2.return_value) {
  alert("Nessun bonifico in corso.");
  return;
 } 
}
window.open('/fax/attesa.htm','bonifici','scrollbars=yes,width=400,height=600,resizable=yes');
var co=RSExecute("/scriptlibrary/log.asp","action_bon",cod_cli_exe);
window.open('/fax/comunicazione.asp?'+co.return_value+'&what=bon27alloc','bonifici','scrollbars=yes,width=400,height=600,resizable=yes');
}
function chiudi_tasto_dx_version() {
document.getElementById("tastodx_version").style.visibility="hidden";
return false;
} 
function tasto_dx_version(unload) {
if (unload) {
  document.getElementById("tastodx_version").style.visibility="hidden";
  return false;
}
document.getElementById("tastodx_version").style.top=parseInt(document.body.scrollTop+event.clientY)+5;
document.getElementById("tastodx_version").style.left=parseInt(document.body.scrollLeft+event.clientX)-parseInt(document.getElementById("tastodx_version").style.width)-20;
document.getElementById("tastodx_version").style.visibility='visible';
return false;
}