function doRedirect(quale,url,query) 
{ //funzione con il link alla pagina che si desidera raggiungere
  if(quale==1)
  {
	location.href = "http://www.kikaustore.it/clienti2.asp";
  }
  if(quale==2)
  {
	path = "http://www.kikaustore.it"+url+"?"+query;
	if(path.indexOf("logout=ok")==-1)
	{
	  path = path + "&logout=ok";
	}
	if((url=="/pagamento_lista.asp")||(url=="/pagamento.asp"))
	{
	  path = "http://www.kikaustore.it/index.asp?logout=ok";
	}
	percorso = path.replace("?&","?");
	//alert(path);
	location.href = percorso;
  }
  if(quale==3)
  {
	location.href = "http://www.kikaustore.it/lista.asp?logout=ok"; 
  }
}
function toggleDiv(id,flagit) 
{
  x=getPosX(document.getElementById("acquisti"));
  y=getPosY(document.getElementById("acquisti"));
  //alert((x-110)+"  "+(y+25))
  document.getElementById("div1").style.top=(y+25)+"px";
  document.getElementById("div1").style.left=(x-113)+"px";
  //alert(document.getElementById("div1").style.top+"  "+document.getElementById("div1").style.left)
  if (flagit=="1")
  {
	if (document.layers) document.layers[''+id+''].visibility = "show"
	  else if (document.all) document.all[''+id+''].style.visibility = "visible"
		else if (document.getElementById) document.getElementById(''+id+'').style.visibility = "visible"
  }
  else
  if (flagit=="0")
  {
	if (document.layers) document.layers[''+id+''].visibility = "hide"
	  else if (document.all) document.all[''+id+''].style.visibility = "hidden"
		else if (document.getElementById) document.getElementById(''+id+'').style.visibility = "hidden"
  }
}