function StatoTabella(sTableId)
{
    var oTable = document.getElementById(sTableId)
    
    if (oTable.style.display == "none")
    {
            oTable.style.display = "block";
    }
    else
    {
            oTable.style.display = "none";
    }    
}


function privacy(page){ 
	xwidth="780"
	xheight="500"
	alth= screen.height/2
	largh = screen.width/2
	alth1=xheight/2
	largh1=xwidth/2
	alth=alth-alth1
	largh=largh-largh1
   	image = window.open("privacy/"+page ,"popDialog","width="+xwidth+",height="+xheight+",scrollbars=1,top="+alth+",left="+largh)  
	image.window.focus();
}



function opendocum(docum){ 
	xwidth="780"
	xheight="500"
	alth= screen.height/2
	largh = screen.width/2
	alth1=xheight/2
	largh1=xwidth/2
	alth=alth-alth1
	largh=largh-largh1
   	image = window.open("../documenti_assemblea/"+docum+"","popDialog","width="+xwidth+",height="+xheight+",scrollbars=1,top="+alth+",left="+largh)  
	image.window.focus();
}



function pagina(){ 
	xwidth="700"
	xheight="500"
	alth= screen.height/2
	largh = screen.width/2
	alth1=xheight/2
	largh1=xwidth/2
	alth=alth-alth1
	largh=largh-largh1
   	image = window.open("audio.asp","popDialog","width="+xwidth+",height="+xheight+",scrollbars=1,top="+alth+",left="+largh)  
	image.window.focus();
}


function openipo(){ 
	xwidth="780"
	xheight="500"
	alth= screen.height/2
	largh = screen.width/2
	alth1=xheight/2
	largh1=xwidth/2
	alth=alth-alth1
	largh=largh-largh1
   	image = window.open("../document/downloadipo.asp","popDialog","width="+xwidth+",height="+xheight+",scrollbars=1,top="+alth+",left="+largh)  
	image.window.focus();
}

function openstampa(cstampa){ 
	xwidth="780"
	xheight="500"
	alth= screen.height/2
	largh = screen.width/2
	alth1=xheight/2
	largh1=xwidth/2
	alth=alth-alth1
	largh=largh-largh1
   	image = window.open("../pdf/"+cstampa+"","popDialog","width="+xwidth+",height="+xheight+",scrollbars=1,top="+alth+",left="+largh+",resizable=1")  
	image.window.focus();
}

function openpress(cstampa){ 
	xwidth="780"
	xheight="500"
	alth= screen.height/2
	largh = screen.width/2
	alth1=xheight/2
	largh1=xwidth/2
	alth=alth-alth1
	largh=largh-largh1
   	image = window.open(cstampa ,"popDialog","width="+xwidth+",height="+xheight+",scrollbars=1,top="+alth+",left="+largh+",resizable=1")  
	image.window.focus();
}

function redirect() { 
  index=document.negozio.brand.selectedIndex; 
  url=document.negozio.brand[index].value; 
  location.href = "distribuzione.asp?brand="+url ; 
return 
} 

function redirectstato(url) { 
  indexstato=document.negozio.stato.selectedIndex; 
  stato=document.negozio.stato[indexstato].value; 
  location.href = "distribuzione.asp?brand="+url+"&stato="+stato ; 
return 
} 

function redirectcitta(url,stato) { 
  indexcitta=document.negozio.citta.selectedIndex; 
  citta=document.negozio.citta[indexcitta].value; 
  location.href = "distribuzione.asp?brand="+url+"&stato="+stato+"&citta="+citta ; 
return 
} 


function redirecthp() { 
  index=document.negozio.brand.selectedIndex; 
  url=document.negozio.brand[index].value; 
  location.href = "menu-distribuzione-home.asp?brand="+url ; 
return 
} 

function redirectstatohp(url) { 
  indexstato=document.negozio.stato.selectedIndex; 
  stato=document.negozio.stato[indexstato].value; 
  location.href = "menu-distribuzione-home.asp?brand="+url+"&stato="+stato ; 
return 
} 

function redirectcittahp(url,stato) { 
  indexcitta=document.negozio.citta.selectedIndex; 
  citta=document.negozio.citta[indexcitta].value; 
  window.top.location.href = "../asp/distribuzione.asp?brand="+url+"&stato="+stato+"&citta="+citta ; 
return 
} 

function redirectcityhp(url,stato,geo) { 
  indexcitta=document.negozio.citta.selectedIndex; 
  citta=document.negozio.citta[indexcitta].value; 
  window.top.location.href = "../asp/distribuzione-shop.asp?brand="+url+"&stato="+stato+"&citta="+citta+"&geo="+geo ; 
return 
} 


// inglese

function redirect_eng() { 
  index=document.negozio.brand.selectedIndex; 
  url=document.negozio.brand[index].value; 
  location.href = "distribuzione_e.asp?brand="+url ; 
return 
} 

function redirectstato_eng(url) { 
  indexstato=document.negozio.stato.selectedIndex; 
  stato=document.negozio.stato[indexstato].value; 
  location.href = "distribuzione_e.asp?brand="+url+"&stato="+stato ; 
return 
} 

function redirectcitta_eng(url,stato) { 
  indexcitta=document.negozio.citta.selectedIndex; 
  citta=document.negozio.citta[indexcitta].value; 
  location.href = "distribuzione_e.asp?brand="+url+"&stato="+stato+"&citta="+citta ; 
return 
} 


function redirecthp_eng() { 
  index=document.negozio.brand.selectedIndex; 
  url=document.negozio.brand[index].value; 
  location.href = "menu-distribuzione-home_e.asp?brand="+url ; 
return 
} 

function redirectstatohp_eng(url) { 
  indexstato=document.negozio.stato.selectedIndex; 
  stato=document.negozio.stato[indexstato].value; 
  location.href = "menu-distribuzione-home_e.asp?brand="+url+"&stato="+stato ; 
return 
} 

function redirectcittahp_eng(url,stato) { 
  indexcitta=document.negozio.citta.selectedIndex; 
  citta=document.negozio.citta[indexcitta].value; 
  window.top.location.href = "../asp/distribuzione_e.asp?brand="+url+"&stato="+stato+"&citta="+citta ; 
return 
}

function redirectcityhp_eng(url,stato,geo) { 
  indexcitta=document.negozio.citta.selectedIndex; 
  citta=document.negozio.citta[indexcitta].value; 
  window.top.location.href = "../asp/distribuzione-shop_e.asp?brand="+url+"&stato="+stato+"&citta="+citta+"&geo="+geo ; 
return 
} 