var rapDefault="06930-65690-3794";
function cambiaCC()
{        
	window.parent.frames['WorkArea'].focus();
	var rapNew = parent.frames['WorkArea'].document.forms[0].Rapporti.value;
	if (rapNew == rapDefault) 
	{
	    parent.WorkArea.location.href='WorkAreaInfoCC.htm';
	}else{
	    parent.WorkArea.location.href='WorkAreaInfoCC1.htm'
	}
	
}  

var DataDefault="04/2004";
function cambiaCCxData()
{        
	window.parent.frames['WorkArea'].focus();
	var dataNew = parent.frames['WorkArea'].document.forms[0].Periodo.value;  
	if (dataNew == DataDefault) 
	{
	    parent.WorkArea.location.href='WorkAreaInfoCC.htm';
	}else{
	    parent.WorkArea.location.href='WorkAreaInfoCCxdata.htm'
	}
	
}

var CriterioD="Data Contabile";
function cambiaxdatavaluta()
{        
	window.parent.frames['WorkArea'].focus();
	var CriterioNew = parent.frames['WorkArea'].document.forms[0].Criterio.value;
	if (CriterioNew == CriterioD) 
	{
	    parent.WorkArea.location.href='WorkAreaInfoCC.htm';
	}else{
	    parent.WorkArea.location.href='WorkAreaInfoCCxValuta.htm';
	}
	
}

var Massimali="06930-65690-3794";
function cambiaSaldiMassimali()
{        
	window.parent.frames['WorkArea'].focus();
	var MassimaliNew = parent.frames['WorkArea'].document.forms[0].rappAddebito.value;
	if (Massimali == MassimaliNew) 
	{
	    parent.WorkArea.location.href='SaldiMassimali.htm';
	}else{
	    parent.WorkArea.location.href='SaldiMassimali1.htm';
	}
	
}


function ApriFinestra(finestra,nomefinestra)
{
	var attributi ='left=300,top=200,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=600,height=400';
	apri=parent.open(finestra,nomefinestra,attributi);
}

var rapDefault="06930-65690-3794";
function cambiaCCSaldo()
{        
	window.parent.frames['WorkArea'].focus();
	var rapNew = parent.frames['WorkArea'].document.forms[0].Rapporti.value;
	if (rapNew == rapDefault) 
	{
	    parent.WorkArea.location.href='WorkAreaSaldo.htm';
	}else{
	    parent.WorkArea.location.href='WorkAreaSaldo1.htm'
	}
	
}

function espandi(chiamante)
	{
		var funzOperativa = document.getElementById(chiamante); 
		
			if (funzOperativa.style.display == "none") 
			{
				funzOperativa.style.display = "";	
			}else{
				funzOperativa.style.display = "";		
			}   
	}

function chiudi(chiamante)
	{
		var funzOperativa = document.getElementById(chiamante); 
		
			if (funzOperativa.style.display == "none") 
			{
				funzOperativa.style.display = "none";
				
			}else{
				funzOperativa.style.display = "none";  
				
				
			}   
	}



function MutuiRichiedi()
	{
	
	var Indice = document.forms[0].Funzione.selectedIndex;
	var valore = document.forms[0].Funzione.options[Indice].value;
	parent.WorkArea.location.href=valore;     
	// var dimensione = document.forms[0].Funzione.length;
	// var lista = document.forms[0].Funzione;
	// for (var i = 0; i < dimensione; ++i)
	//	{
	//	if (lista[i].checked == true)
	//		{
	//		parent.WorkArea.location.href=lista[i].value;
	//		}
	//	}
	}




var TESTO= new Array();
TESTO[0]="INFORMAZIONE1: testo da inserire per il messaggio di info.";


var OPENLINK= new Array();
OPENLINK[0]="<a href=\"#\" class=\"new_link\">"

var CLOSELINK="<\/a>";

var id,pause=0,position=0;
function scorrevole() {
	var i,k,msg="     "+TESTO[0]+"      ";
	k=(100/msg.length)+1;
	for(i=0;i<=k;i++) msg+=" "+msg;
		document.forms[0].scorrevole.value= msg.substring(position,position+100)
	if(position++==100) position=0;
	id=setTimeout("scorrevole()",180); 
}





function AttivaScorrevole() {
	scorrevole();
}	    	    
