function bordo(id_box)
	{
		if (id_box.className.substring(id_box.className.length-3, id_box.className.length) == "Off")
			{
				id_box.className = id_box.className.substring(0, id_box.className.length-3) + "On";
			}
		else
			{
				id_box.className = id_box.className.substring(0, id_box.className.length-2) + "Off";
			}
	}
function apriContattaci(valore)
	{
		i = 0;
		if ((i=top.document.location.href.indexOf('HelpContattaci')) > -1)
			{
				var appoURL = top.document.location.href.substring(0, (i-1));
				if (appoURL.indexOf('?') > -1)
					{
						top.document.location.href = appoURL + "&" + valore.substring(1, valore.length);
					}
				else
					{
						top.document.location.href = appoURL + "?" + valore.substring(1, valore.length);
					}
			}
		else
			{
				if (document.location.href.indexOf('?') > -1)
					{
						top.document.location.href = top.document.location.href + "&" + valore.substring(1, valore.length);
					}
				else
					{
						top.document.location.href = top.document.location.href + "?" + valore.substring(1, valore.length);
					}
			}
			
	}
function apriInforma(valore)
	{
		i = 0;
		if ((i=top.document.location.href.indexOf('HelpInforma')) > -1)
			{
				var appoURL = top.document.location.href.substring(0, (i-1));
				if (appoURL.indexOf('?') > -1)
					{
						top.document.location.href = appoURL + "&" + valore.substring(1, valore.length);
					}
				else
					{
						top.document.location.href = appoURL + "?" + valore.substring(1, valore.length);
					}
			}
		else
			{
				if (document.location.href.indexOf('?') > -1)
					{
						top.document.location.href = top.document.location.href + "&" + valore.substring(1, valore.length);
					}
				else
					{
						top.document.location.href = top.document.location.href + "?" + valore.substring(1, valore.length);
					}
			}
	}
// Questi sono i codici per i pulsanti di submit (demo varie etc...)

function demo_mail()
{
demo = window.open('http://tin.virgilio.it/demo_communicator/tutorial/mail/lancia.html?help=demo_mail','demo','toolbar=no,width=600,height=550,directories=no,status=no,scrollbars=no,resize=no,menubar=no,top=50,left=150');
return false;
}

function demo_videocall()
{
demo = window.open('http://tin.virgilio.it/demo_communicator/tutorial/video_call/lancia.html?help=demo_videocall','demo','toolbar=no,width=600,height=550,directories=no,status=no,scrollbars=no,resize=no,menubar=no,top=50,left=150');
return false;
}

function demo_agenda()
{
demo = window.open('http://tin.virgilio.it/demo_communicator/tutorial/agenda/lancia.html?help=demo_agenda','demo','toolbar=no,width=600,height=550,directories=no,status=no,scrollbars=no,resize=no,menubar=no,top=50,left=150');
return false;
}

function demo_fotoalbum()
{
demo = window.open('http://tin.virgilio.it/demo_communicator/tutorial/foto_album/lancia.html?help=demo_fotoalbum','demo','toolbar=no,width=600,height=550,directories=no,status=no,scrollbars=no,resize=no,menubar=no,top=50,left=150');
return false;
}

function demo_sms()
{
demo = window.open('http://tin.virgilio.it/demo_communicator/tutorial/sms/lancia.html?help=demo_sms','demo','toolbar=no,width=600,height=550,directories=no,status=no,scrollbars=no,resize=no,menubar=no,top=50,left=150');
return false;
}

function demo_rubrica()
{
demo = window.open('http://tin.virgilio.it/demo_communicator/tutorial/rubrica/lancia.html?help=demo_rubrica','demo','toolbar=no,width=600,height=550,directories=no,status=no,scrollbars=no,resize=no,menubar=no,top=50,left=150');
return false;
}

function demo_discoremoto()
{
demo = window.open('http://tin.virgilio.it/demo_communicator/tutorial/disco_remoto/lancia.html?help=demo_discoremoto','demo','toolbar=no,width=600,height=550,directories=no,status=no,scrollbars=no,resize=no,menubar=no,top=50,left=150');
return false;
}

function demo_communicator()
{
demo = window.open('http://tin.virgilio.it/demo_communicator/lancia.html?help=demo','demo','toolbar=no,width=600,height=550,directories=no,status=no,scrollbars=no,resize=no,menubar=no,top=50,left=150');
return false;
}

// Redirect per le vecchie URL -- no comment
{
	switch (location.href) {
		case 'http://help.virgilio.it/assistenza/dettaglio.jsp?id=4044':
			location.href='http://help.virgilio.it/assistenza/dettaglio.jsp?id=6247';
			break;
		case 'http://help.virgilio.it/assistenza/dettaglio.jsp?id=3779&padre_id=3090':
			location.href='http://help.virgilio.it/assistenza/dettaglio.jsp?id=6021';
			break;
		case 'http://help.virgilio.it/assistenza/index.jsp?id=3010':
			location.href='http://help.virgilio.it/guide/index.jsp?id=5120';
			break;
		case 'http://help.virgilio.it/assistenza/index.jsp?id=4123':
			location.href='http://help.virgilio.it/guide/index.jsp?id=5086&id_figlio=5480';
			break;
		case 'http://help.virgilio.it/guide/dettaglio.jsp?id=3061&step=3186':
			location.href='http://help.virgilio.it/guide/index.jsp?id=5086&id_figlio=5175&step=5872';
			break;
		case 'http://help.virgilio.it/guide/dettaglio.jsp?id=3061&step=3570':
			location.href='http://help.virgilio.it/guide/index.jsp?id=5086&id_figlio=5175&step=5873';
			break;
		case 'http://help.virgilio.it/guide/download/VFamilyDialer.exe':
			location.href='http://help.virgilio.it/download/files/VFamilyDialer.zip';
			break;
		case 'http://help.virgilio.it/assistenza/index.jsp?id=3786':
			location.href='http://help.virgilio.it/download/index_VFamily.jsp';
			break;
		case 'http://help.virgilio.it/assistenza/index.jsp?id=4085':
			location.href='http://help.virgilio.it/assistenza/index.jsp?id=5707';
			break;
		case 'http://help.virgilio.it/guide/dettaglio.jsp?id=3242':
			location.href='http://help.virgilio.it/guide/index.jsp?id=5081&id_figlio=5360';
			break;
	}
}

