//----------------------------------------------
//
//----------------------------------------------
function indietro()
{
	history.go(-1);
}


//----------------------------------------------
//
//----------------------------------------------
function ApriFinestraMappa( inId ) 
{ //v3.0
 var location = window.location.href;
 var itPos = location.indexOf ("/it/");
 if (itPos>=0)
 {
	 var url = location.substr(0, itPos) + '/it/reception/mappa/mappa.php?carta='+inId;
	 var mywin = window.open( url , "mappa_win" , "menubar=no,resizable=no,toolbar=no,scrollbars=no,width=521,height=444");
     /*	 if ( typeof(mywin) != "undefined"  && (mywin != null) )
	 {
		 if (window.focus) mywin.focus(); 
 	 }*/
 }
}


//----------------------------------------------
//
//----------------------------------------------
function Link( inUrl ) 
{ //v3.0
	if ( inUrl.substring(0,4)=="http" ) {		
		mywin = window.open (inUrl, "");
	} else {
		document.location.href=inUrl;
	}		
}

//----------------------------------------------
//
//----------------------------------------------
function LinkEvento( CodiceEvento )
{ 
	var inUrl='/it/festival2004/evento.php' + '?id=' +  CodiceEvento;
	document.location.href=inUrl;
}

//----------------------------------------------
//
//----------------------------------------------
function LinkEv2005( CodiceEvento )
{ 
	var inUrl='/it/festival2005/evento.php' + '?id=' +  CodiceEvento;
	//alert(inUrl)
	document.location.href=inUrl;
}

//----------------------------------------------
//
//----------------------------------------------
function LinkDiario( CodiceDiario )
{ 
	var inUrl='/it/news2004/diario_index.php' + '?currentDiario=' +  CodiceEvento;
	document.location.href=inUrl;
}

//----------------------------------------------
//
//----------------------------------------------
function LinkNews( CodiceNew )
{ 
	var inUrl='/it/news2004/beagle_index.php' + '?currentNews=' +  CodiceEvento;
	document.location.href=inUrl;
}


//----------------------------------------------
//
//----------------------------------------------
function LinkComunicato( CodiceComunicato )
{ 
	var inUrl='/it/salastampa/index.php' + '?currentComu=' +  CodiceComunicato;
	document.location.href=inUrl;
}

