function tab_click (obj)
{
	content_id= obj.getAttribute ('content_id');
	table = dom_up (obj, 'table');
	lan_id= table.getAttribute ('lan_id');
	portal= table.getAttribute ('portal');
	content_kind= obj.getAttribute ('content_kind');
	if (content_kind == 'access')
	{
		login_panel = document.getElementById ('login_panel');
		login_panel.style.display = login_panel.style.display == 'none' ? 'table-row' : 'none';
	}
	else
		location =  (portal + '.html?ss.cur_content=' + content_id + '&ss.cur_lan=' + lan_id);
}


function GoToReport1					()			{	window.open('_web/Grafico1.html',					'Rendimento e inflazione su un periodo di 30 anni',	'titlebar=no,toolbar=no,resizable=no,scrollbars=no,width=595,height=370');		}
function GoToReport2					()			{	window.open('_web/Grafico2.html',					'Performance assoluta',	'titlebar=no,toolbar=no,resizable=no,scrollbars=no,width=250,height=320');		}

function RecoverPassword()
{
	theEmail = document.getElementById ('user_email').value;
	if (!theEmail)
	{
		alert ('Inserisci il tuo indirizzo email utilizzato per la registrazione e a cui verr&#224; inviata una copia della password.');
		return;
	}
	if (confirm('Premi OK, per ricevere nella tua casella di posta elettronica la password.'))
	{
		document.getElementById ('login_form').action = 'login.wp?xform.filter=password_recover';
		document.getElementById ('login_form').submit();
	}
}


