function openDettaglio(sPath,idSpettacolo)
{
	if (sPath != undefined)
	{
		sPath += '/'
	}
	else
	{
		sPath = ''
	}
	
	var x,y;
	var strUrl = sPath + 'dettagliospettacolo.aspx?IdSpettacolo=' + idSpettacolo
	x = String((screen.width - 550) / 2);
	y = String((screen.height - 450) / 2);
	window.open(strUrl, 'finestraDettaglio', 'width=550, height=450, top=' + y + ',left=' + x + ', scrollbars=yes');
}
function openDettaglioOsn(sPath,idSpettacolo,sAction)
{
	if (sPath != undefined)
	{
		sPath += '/'
	}
	else
	{
		sPath = ''
	}
	
	var x,y;
	var strUrl = sPath + 'dettagliospettacolo.aspx?IdSpettacolo=' + idSpettacolo + '&Action=' + sAction
	x = String((screen.width - 550) / 2);
	y = String((screen.height - 450) / 2);
	window.open(strUrl, 'finestraDettaglio', 'width=550, height=450, top=' + y + ',left=' + x + ', scrollbars=yes');
}

function openPopUp(sUrl)
{
	if (sUrl != undefined)
	{
		window.open(sUrl);
	}
}

function openRicevutaPrenotazione(hidIdEv, hidCodPrenotaz)
{
	var strUrl ='visricevutaprenotazione.aspx?IdEvent=' + hidIdEv.value;
	strUrl =strUrl + '&CodPrenotazione=' + hidCodPrenotaz.value;
	window.open(strUrl, 'finestraRicevutaPrenotazione', 'width=250, height=430, top=10, left=10');
}

function printRicevutaPrenotazione(hidIdEv, hidCodPrenotaz)
{
	var strUrl ='printricevutaprenotazione.aspx?IdEvent=' + hidIdEv.value;
	strUrl =strUrl + '&CodPrenotazione=' + hidCodPrenotaz.value;
	window.open(strUrl, 'finestraRicevutaPrenotazione', 'width=250, height=430, top=10, left=10');
}

function openProdottiSearch(hidIdPtr)
{
	var strUrl ='prodottiforpartner.aspx?IdPartner='+hidIdPtr;
	window.open(strUrl,'','width=498, height=330, top=20, left=50');
}

function openAccessori(idEvento)
{
	var strUrl ='accessoribyevento.aspx?IdEvento='+ idEvento;
	window.open(strUrl,'','width=498, height=290, top=20, left=50');
}

function addCarrelloProdotti(IdProd, idPtr)
{
	var strUrl ='checkcarrello.aspx?TipoCart=1&IdProdotto='+IdProd+'&IdPartner='+idPtr;
	window.open(strUrl,'','width=350, height=110, top=50, left=50');
}

function addCarrelloAccessori(IdProd, idEv)
{
	var strUrl ='checkcarrelloaccessori.aspx?IdProdotto='+IdProd+'&IdEvento='+idEv;
	window.open(strUrl,'','width=350, height=110, top=50, left=50');
}
function deleteventfromcart(idEv)
{
	var strUrl ='deleteventfromcart.aspx?IdEvento='+idEv;
	window.open(strUrl,'','width=350, height=110, top=50, left=50');
}

