	/*Azioni legate al login/logout */
	function login_action (selectedtype)
	{
		$("cmdLogin").value = selectedtype ;
		$("frmLogin").submit() ;
	}

	/* Azioni legate al recupero della psw dimenticata*/
	function remind_psw_action (selectedtype)
	{
			$("cmdSubscribe").value = selectedtype ;
			$("frmSubscribe").submit() ;
	}

	/* Azioni legate al subscribe di un nuovo utente*/
	function showAgreement(){
		var isVisible = $("Agreement").visible();
		if ( isVisible == true ) {
			$("Agreement").setStyle (
				{
					display:'none'
				}
			)
		}
		else {
			$("Agreement").setStyle(
				{
					display:'block'
				}
			)
		}
	}

	function validate_agreement(chk){
	
		if (chk.checked == 1){
			chk.checked = 1;
			return 'yes';
		}
		else {
			alert("Please, accept the Term of Use")
			return 'no';
		}
		
	}
	
	function subscribe_action (selectedtype)
	{
		
		if (validate_agreement($("chkAgreement"))=='yes') {
			$("cmdSubscribe").value = selectedtype ;
			$("frmSubscribe").submit();
			}
	}	
	

	/* Azioni legate all'inserimento di un feedback */
	function feedback_action (selectedtype)
	{
			$("cmdSend").value = selectedtype ;
			$("frmFeedback").submit();
	}

	/* Azioni legate alla contact form */
	function contact_action (selectedtype)
	{
		$("cmdContact").value = selectedtype ;
		$("frmContact").submit() ;
	}
	
	/* Azioni legate alla form del mellotron*/
	function yourmark_action (selectedtype)
	{
		$("cmdSend").value = selectedtype ;
		$("frmYourMark").submit() ;
	}

	/* Azioni legate alla form della modifica dati utente */
	function modify_action (selectedtype)
	{
		$("cmdModify").value = selectedtype ;
		$("frmModifyProfile").submit() ;
	}

	
	/* Azioni legate all'aministrazione delle gigs */
	function add_new_gig (selectedtype)
	{
		$("action").value = selectedtype ;
		$("gigManager").submit() ;
	}

	/* Azioni legate all'aministrazione delle gigs */
	function update_gig (selectedtype)
	{
		$("action").value = selectedtype ;
		$("gigManager").submit() ;
	}
	
	function getShowFilter (urlBase, countryName, tourYear)
	{
		return urlBase + '?country=' + countryName + '&tour=' + tourYear; 
	}
	
	
//### QUICKTIME JS API ###

/* define function that calls QuickTime's "Play" method */
 function PlayIt(anObj)
 {
	 anObj.Play();
 }

/* define function that calls QuickTime's "Stop" method */
 function PauseIt(anObj)
 {
	 anObj.Stop();
 }

/* define function that calls QuickTime's "Stop" method */
 function StopIt(anObj)
 {
	 anObj.Stop();
	 anObj.Rewind();
 }
 
/*----*/
/* Box con info e effetto fading */
function showInfoBoxTitle(idDiv, title)
{
	$(idDiv).appear(); 

	if ($(idDiv).innerHTML!=title){
		$(idDiv).update(title);
	}
	
	return false;
}


