//Variabili globali
var p;
var Annullato;
var slash;
var Disabilita;
var StringaRitorno;
var CmbTPSelInd;
var CmbTVSelInd;
var txtTargaMaxLen;
var txtTargaSize;
var ComponiCmbTP;
var ComponiCmbTV;
var CmbTipoVeicoloVal;
var CmbTipoPagamentoVal;

var ArrayTitoli=new Array();
var ArrayMessaggi=new Array();
var ArrayBottoni=new Array();

var appoCurrent;
var btnkey;

var isNs = (navigator.appName == "Netscape");

btnkey="";
appoCurrent="";

// *******INIZIO CARICAMENTO ARRAY E IMPOSTAZIONE VALORI GLOBALI DELLA PAGINA (NETSCAPE e EPLORER) ***

if (varLinguaScelta=="d"){
		
	ArrayMessaggi[0]='Ein gültiges Probekennzeichen angeben \n(5/6 Schriftzeichen)';
	ArrayMessaggi[1]='Ein gültiges Kennzeichen angeben \n(Minimum 1 Schriftzeichen)';
	ArrayMessaggi[2]='Ein gültiges Kennzeichen angeben \n(Minimum 7 Schriftzeichen und Max. 8)';
	ArrayMessaggi[3]='Keine gültige Fahrgestellnummer \n(Minimum 1 Schriftzeichen)';
	ArrayMessaggi[4]='Nicht gültiges Kennzeichen \nbitte geben Sie für das gewählte Fahrzeug ein gültiges Kennzeichen an';
	ArrayMessaggi[5]='Ein gültiges Kennzeichen angeben';
	ArrayMessaggi[6]='Steuerzeitraum ungültig';
		
}else{

	ArrayMessaggi[0]='Inserire una targa prova valida. \n(5/6 caratteri tipo vecchio, 8 caratteri tipo nuovo)';
	ArrayMessaggi[1]='Inserire una targa valida. \n(Minimo 1 carattere)';
	ArrayMessaggi[2]='Inserire una targa valida. \n(Minimo 7 caratteri, massimo 8)';
	ArrayMessaggi[3]='Numero di telaio non valido. \n(Minimo 1 carattere)';
	ArrayMessaggi[4]='Targa non valida. \nInserire una targa valida per il tipo di veicolo scelto.';
	ArrayMessaggi[5]='Inserire una targa valida.';
	ArrayMessaggi[6]='Periodo tributario non valido';

}



txtTargaMaxLen="8";
ComponiCmbTV="true";
//if(ComponiCmbTP=""){
//	ComponiCmbTP="true";
//}
CmbTPSelInd="0";
CmbTVSelInd="0";
p=unescape("%5c"); //Codice ASCII (esadecimale) del tasto '\'
Annullato=0;
slash=unescape("%2f");  //Carattere "/"
Disabilita=false;

// *******FINE CARICAMENTO ARRAY E IMPOSTAZIONE VALORI GLOBALI DELLA PAGINA (NETSCAPE e EXPLORER) ***


// *******INIZIO FUNZIONI EXPLORER ***

function SceltaTipoVeicolo(Veicolo, Pagamento){

	var strLocation = 'index.asp?TipoPagamento=' + Pagamento + '&TipoVeicolo=' + Veicolo + '&FinePagina=1'
	if (varLinguaScelta == 'd'){strLocation += '&LinguaScelta=d'}
	
	document.body.style.cursor = "wait";
	document.location = strLocation;
	
}

function SceltaTipoPagamento(Pagamento){

	//-- controllo per inibire la scelta di Pagamento Anticipato nel mese di Dicembre ----
	var d = new Date();
	var Mese = d.getMonth() + 1;
	if (Mese == 12 & Pagamento=="12"){
		if (varLinguaScelta=="d"){
			alert('Es ist nicht möglich die Berechnung der Vorauszahlung durchzuführen.');
		}else{
			alert('Impossibile effettuare il calcolo per il PAGAMENTO ANTICIPATO nel mese di Dicembre');
		}
		form1.CmbTipoPagamento.selectedIndex=0;
		return false;
	}
	//------------------------------------------------------------------------------------

	var strLocation = 'index.asp?TipoPagamento=' + Pagamento + '&FinePagina=1';
	if (varLinguaScelta == 'd'){strLocation += '&LinguaScelta=d'}
	
	//document.location = 
	
	document.body.style.cursor = "wait";
	document.location = strLocation;
	
}

function chkSpazio(str){
  var re=/\s/g;
  var a = re.test(str);
  return a;
}

function ControllaTarga(){

	var objForm = document.form1;
	var objTxtTarga = objForm.txtTarga;
	var strTarga = objTxtTarga.value;
	var lngTarga = 0;

	if (NomeBrowser=="Explorer"){
		TipoPag = objForm.CmbTipoPagamento.value
		TipoVei = objForm.CmbTipoVeicolo.value  
	}else{
		TipoPag = objForm.CmbTipoPagamento.options[objForm.CmbTipoPagamento.selectedIndex].value
		TipoVei = objForm.CmbTipoVeicolo.options[objForm.CmbTipoVeicolo.selectedIndex].value
	}
	
	if (TipoPag=='08' & objForm.HideTipoCalcolo.value=="ACI"){
		if (objForm.chkNuovoTipo.checked){
			strTarga = objForm.txtTargaProva1.value + "P" + objForm.txtTargaProva2.value;
			if (strTarga=="P"){strTarga=""}
			objTxtTarga = objForm.txtTargaProva1;
			lngTarga = strTarga.length;
		}else{
			objTxtTarga = objForm.txtTarga;
			lngTarga = objTxtTarga.value.length;
		}
	}else{
		objTxtTarga = objForm.txtTarga;
		lngTarga = objTxtTarga.value.length;
	}

	TargaPagamentiOk = 1;
	var Messaggio = "";


	if (TipoPag=="10"){
		var strMeseDa = objForm.txtMeseDa.value;
		var strAnnoDa = objForm.txtAnnoDa.value;
		var strMeseA = objForm.txtMeseA.value;
		var strAnnoA = objForm.txtAnnoA.value;
	}
	
	if (chkSpazio(strTarga)){ // se contiene spazi non valida
		Messaggio = 'Inserire la targa senza spaziature'; 
		objTxtTarga.focus();
		TargaPagamentiOk = 0;
		alert(Messaggio);
		return false;
	}
	
	if (lngTarga==0){ // se uguale a zero non valida
		if (TipoVei=="5" || TipoVei=="6" || TipoVei=="7"){
			Messaggio = ArrayMessaggi[1]; 
		}
		if (TipoVei=="8" || TipoVei=="9"){
			Messaggio = ArrayMessaggi[3]; 
		}
		if (TipoVei=="1" || TipoVei=="2" || TipoVei=="4"){
			Messaggio = ArrayMessaggi[5]; 
		}
		objTxtTarga.focus();
		TargaPagamentiOk = 0;
		alert(Messaggio);
		return false;
	}

	if (TipoPag=="08" & objForm.HideTipoCalcolo.value=="ACI"){
		if (objForm.chkNuovoTipo.checked){
			if (lngTarga != 8){
				TargaPagamentiOk=0;
				Messaggio=ArrayMessaggi[0];
				objTxtTarga.focus();
				objForm.chkVecchioTipo.checked = false;
				objForm.chkNuovoTipo.checked = true;
			}
		}else{
			if (lngTarga>6 | lngTarga<5){
				objTxtTarga.focus();
				TargaPagamentiOk=0;
				Messaggio=ArrayMessaggi[0];
			}
		}		
	}else{
		if (TipoVei=="5" || TipoVei=="6" || TipoVei=="7" || TipoVei=="8" || TipoVei=="9"){ //la targa contiene almeno un carattere, per questi tipi veicolo è quindi corretta
			TargaPagamentiOk=1;
		}else{
			if (TipoPag=="08"){ //targa prova nel calcolo Lombardia
				if (lngTarga!=8){
					TargaPagamentiOk=0;
					Messaggio=ArrayMessaggi[0];
				}
			}else{
				if (lngTarga<7 || lngTarga>8){
					TargaPagamentiOk=0;
					Messaggio=ArrayMessaggi[2];
				}
			}
		}
	}
	
	if (TargaPagamentiOk==0){
		alert(Messaggio);
		return false;
	}

	if (TargaPagamentiOk==1){ // se immessa una targa valida si passano i dati
		if (TipoPag=="10"){
			if (strMeseDa.length==0 | strAnnoDa.length < 4 | strMeseA.length==0 | strAnnoA.length < 4){
				Messaggio=ArrayMessaggi[6];
				alert(Messaggio);
				return false;
			}
			if (strMeseDa>12 | strMeseA>12 | String(strMeseDa*1)=="NaN" | String(strMeseA*1)=="NaN" | String(strAnnoDa*1)=="NaN" | String(strAnnoA*1)=="NaN"){
				Messaggio=ArrayMessaggi[6];
				alert(Messaggio);
				return false;
			}
			for (i=0; i<=4; i++)
			{
				if (strMeseA.charAt(i)=="." | strAnnoDa.charAt(i)=="." | strMeseA.charAt(i)=="." | strAnnoA.charAt(i)=="."){
					Messaggio=ArrayMessaggi[6];
					alert(Messaggio);
					return false;
				}
			}
			Messaggio=ArrayMessaggi[6];
			if (strMeseDa.length == 1) {document.form1.txtMeseDa.value = "0" + strMeseDa}
			if (strMeseA.length == 1) {document.form1.txtMeseA.value = "0" + strMeseA}
			if (strAnnoA - strAnnoDa == 1 && strMeseA >= strMeseDa){alert('Periodo tributario superiore a 12 mesi'); return false;}
			if (strAnnoA - strAnnoDa > 1){alert('Periodo tributario superiore a 12 mesi'); return false;}
			if ((strAnnoA == strAnnoDa && strMeseA == strMeseDa) | strAnnoDa - strAnnoA >= 1){alert(Messaggio); return false;}
			if (strAnnoA == strAnnoDa && strMeseDa >= strMeseA){alert('Periodo tributario non valido'); return false;}

		}
		SubmitForm()
	}else{
		alert(Messaggio);  // formato targa non valido
		objTxtTarga.focus();
		return false;
	}

}

function ControllaDatiLombardia(){

	var objForm = document.form1;
	var objTxtTarga = objForm.txtTarga;
	var strTarga = objTxtTarga.value;
	var objTxtCodFisc = objForm.CodiceFiscalePartitaIva;
	var strCodFisc = objTxtCodFisc.value;
	var lngTarga = 0;


}

function SubmitForm(){
	if (NomeBrowser != "Netscape4"){document.body.style.cursor = "wait";}
	document.form1.method="post";
	// LinguaScelta è il parametro sulla URL, varLinguaScelta è la variabile nel codice.
	document.form1.action="DovutoOnLine.asp?LinguaScelta=" + varLinguaScelta;
	document.form1.submit();
}

function NormativeAbruzzo(){
	window.open("PopupNormativeAbruzzo.asp","Normativa_Abruzzo","width=560,height=400,toolbar=no,location=no,directories=no,resizable=no,scrollbars=yes,titlebar=no,status=no,menubar=no,top=0,left=0")
}

function TipiPagamentiLink_tedesco(){
	var w = window.open("","Codici_Riduzione","width=447,height=500,toolbar=no,location=no,directories=no,resizable=no,scrollbars=yes,titlebar=no,status=no,menubar=no,top=0,left=0")
	w.document.write("<HTML><TITLE>ACI - Automobile Club d'Italia</TITLE>");
	w.document.write("<link href='include/popup.css' rel='stylesheet' type='text/css'>");
	w.document.write("<link href='include/stile.css' rel='stylesheet' type='text/css'>");
	
	w.document.write("<body bgcolor='#FFFFFF' leftmargin=0 topmargin=0 marginwidth=0 marginheight=0>");
	w.document.write("<a name='inizio-pagina'></a>");
	w.document.write("<table width='430' border='0' cellpadding='0' cellspacing='0'><tr>");
	w.document.write("<td width='124' valign='bottom' bgcolor='#003366'><img src='img/logo-aci.gif' alt='ACI - Automobile Club d'Italia' width='124' height='30'></td>");
	w.document.write("<td width='6' valign='top'><img src='../img/spacer.gif' alt='img' width='6' height='1'></td>");
	w.document.write("<td width='347' valign='middle'>");
	w.document.write("<table width='300' border='0' cellpadding='0' cellspacing='0'>");
	w.document.write("<tr bgcolor='#0065CE'>");
	w.document.write("<td height='20'><img src='img/spacer.gif' alt='img' width='8' height='8'></td>");
	w.document.write("<td width='11' height='20'><img src='img/tratteggio-popup.gif' alt='img' width='11' height='20'></td>");
	w.document.write("<td width='39' height='20'><a href='javascript:window.print()' class='popup-testo'>Stampa</a></td>");
	w.document.write("<td width='11' height='20'><img src='img/tratteggio-popup.gif' alt='img' width='11' height='20'></td>");
	w.document.write("<td width='30' height='20'><a href='javascript:window.close()' class='popup-testo'>Chiudi</a></td>");
	w.document.write("<td width='10' height='20'><img src='img/spacer.gif' alt='img' width='10' height='8'></td>");
	w.document.write("</tr><tr bgcolor='#003366'>");
	w.document.write("<td height='10' align='left' valign='bottom'><img src='img/ang-g-sx-8x8-bianco.gif' alt='img' width='8' height='8'></td>");
	w.document.write("<td height='10' align='right'><img src='img/spacer.gif' alt='img' width='2' height='2'></td>");
	w.document.write("<td height='10' align='right'><img src='img/freccia-4x4.gif' alt='img' width='8' height='5'></td>");
	w.document.write("<td height='10' align='right'><img src='img/spacer.gif' alt='img' width='2' height='2'></td>");
	w.document.write("<td height='10' align='right'><img src='img/freccia-4x4.gif' alt='img' width='8' height='5'></td>");
	w.document.write("<td><img src='img/spacer.gif' alt='img' width='8' height='8'></td>");
	w.document.write("</tr></table></td></tr></table>");
	w.document.write("<table width='430' border='0' cellspacing='0' cellpadding='0'>");
	w.document.write("<tr><td align='center'><table width='430' border='0' cellspacing='0' cellpadding='0'>");
	w.document.write("<tr><td height='6' colspan='4' valign='bottom'><img src='img/spacer.gif' alt='img' width='1' height='6'></td>");
	w.document.write("</tr><tr class='top-dinamico'>");
	w.document.write("<td width='4' height='13' valign='bottom'><img src='img/ang-g-sx-4x4-bianco.gif' alt='img' width='4' height='4'></td>");
	w.document.write("<td width='10' height='15' class='top-testo'>&#8226;</td><td class='top-testo'>Art von Einzahlungen</td>");
	w.document.write("<td width='8' height='13' valign='top'><img src='img/ang-s-dx-8x8-bianco.gif' alt='img' width='8' height='8'></td>");
	w.document.write("</tr><tr><td height='6' colspan='4' valign='bottom'><img src='img/spacer.gif' alt='img' width='1' height='6'></td>");
	w.document.write("</tr></table></td></tr></table>");
	
	w.document.write("<FORM id=form1 name=form1>");
	w.document.write("<TABLE bordercolor=royalblue border=1 cellpadding=3 align=center width='100%'><TR><TD bgcolor=#F0F0F0>");			
	w.document.write("<FONT class=testoLeft><b>Erneuerung der Einzahlung</b></FONT>:<BR> <FONT class=testo>Autosteuer, welche auf die erste Einzahlung nachfolgt.</FONT> ");
	w.document.write("</TD></TR>");
	w.document.write("<TR><TD bgcolor=#F0F0F0>");
	w.document.write("<FONT class=testoLeft><b>Erste Zulassung</b></FONT>:<BR> <FONT class=testo>Erste Autosteuer von einem fabriksneuen und erstes zugelassenes Fahrzeuges.</FONT>");
	w.document.write("</TD></TR>");
	w.document.write("<TR><TD bgcolor=#F0F0F0>");
	w.document.write("<FONT class=testoLeft><b>Wiederzulassung des Fahrzeuges</b></FONT>:<BR> <FONT class=testo>Erste Autosteuer eines gebrauchten Fahrzeuges, aus ausländischer Herkunft, welches erstmalig in Italien zugelassen wurde.</FONT>");
	w.document.write("</TD></TR>");
	w.document.write("<TR><TD bgcolor=#F0F0F0>");
	w.document.write("<FONT class=testoLeft><b>Ende der Steueraussetzung für den Verkauf.</b></FONT>:<BR> <FONT class=testo>Die Einzahlung der Kraftfahrzeugsteuer nach Beendigung der Steueraussetzung eines Fahrzeuges kann in folgenden Fällen auftreten:</FONT><BR>");
	w.document.write("<TABLE><TR><TD valign=top><img src='img/segno_di_spunta_1.gif' width=5 height=5 vspace=5></TD><TD><FONT class=testo>Wenn ein gebrauchtes Fahrzeug bei einem Autohändler erworben wird: Um die Kraftfahrzeugsteuer zu berechnen, ist es notwendig, das Datum einzugeben, an dem die Steueraussetzung beendet wurde (Datum des Kaufvertrages).</FONT></TD></TR>");
	w.document.write("<TR><TD valign=top><img src='img/segno_di_spunta_1.gif' width=5 height=5 vspace=5></TD><TD><FONT class=testo>Beim Kauf eines Fahrzeuges, das für den Transport einer Person mit Behinderung bestimmt war: Auch in diesem Fall ist es notwendig, als Datum der Beendigung der Steuerbefreiung das Datum des Kaufvertrages einzugeben.</FONT></TD></TR>");
	w.document.write("<TR><TD valign=top><img src='img/segno_di_spunta_1.gif' width=5 height=5 vspace=5></TD><TD><FONT class=testo>Bei Unterbrechung der Voraussetzungen für die Steuerbefreiung, wie oben angeführt, ist es notwendig, das Datum einzugeben, an dem die Voraussetzungen nicht mehr gegeben sind.</FONT></TD></TR>");
	w.document.write("<TR><TD valign=top><img src='img/segno_di_spunta_1.gif' width=5 height=5 vspace=5></TD><TD><FONT class=testo>Bei historischen Fahrzeugen, über zwanzig Jahre alt, die in der Region Lombardei gemeldet sind, wird die Kraftfahrzeugsteuer in Form von Teilzahlung geleistet. Um die Kraftfahrzeugsteuer zu berechnen, ist es notwendig als Datum der Beendigung der Steueraussetzung den 01.01.2004 einzugeben. Die Steuer wird bis zum vorhergehenden Monat, in dem das Fahrzeug ursprünglich zugelassen wurde, berechnet.</FONT></TD></TR></TABLE>");
	w.document.write("</TD></TR>");
	w.document.write("<TR><TD bgcolor=#F0F0F0>");
	w.document.write("<FONT class=testoLeft><b>Rückerwerb des Eigentums</b></FONT>:<BR> <FONT class=testo>Autosteuer  eines Fahrzeuges für welches der Besitzverlust wegen Diebstahls oder auf Grund einer Verfügung der Verwaltung oder des Gerichts (z.B. Beschlagnahme) als unverfügbar vermerkt und in der Folge wiedergefunden oder freigegeben wurde. Damit die Berechnung der Autosteuer durchgeführt werden kann, muss das Datum des Auffindungsprotokolls oder von der Massnahme der Freigabe eingegeben werden.<BR> N.B. Der Betrag wird ausschließlich auf Grund der eingegebenen Daten berechnet.</FONT>");
	w.document.write("</TD></TR>");
	w.document.write("<TR><TD bgcolor=#F0F0F0>");
	w.document.write("<FONT class=testoLeft><b>Probekennzeichen</b></FONT>:<BR> <FONT class=testo>Autosteuer eines Fahrzeuges, für welches die Ermächtigung für die Probefahrt ausgestellt wurde.</FONT>");
	w.document.write("</TD></TR>");
	w.document.write("<TR><TD bgcolor=#F0F0F0>");
	w.document.write("<FONT class=testoLeft><b>Ergänzende Einzahlung für Lastzüge</b></FONT>:<BR> <FONT class=testo>Eventuelle Ergänzung im Falle der geschuldeten Steuer für Zugmaschine und Anhänger (Lastzug) - das Minimum EU nicht erreicht.</FONT>");
	w.document.write("</TD></TR>");
	w.document.write("<TR><TD bgcolor=#F0F0F0>");
	w.document.write("<FONT class=testoLeft><b>Ergänzende Einzahlung</b></FONT>:<BR> <FONT class=testo>Im Falle einer ungenügende Einzahlung, kann die ergänzende Einzahlung auch bei den autorisierten Einzahlungsstellen (Postämtern, Banken, Tabakwarengeschäften, Agenturen für Autoangelegenheiten) eingezahlt werden.<BR>Die Berechnung wird nur für die Bewohner der Regionen und Autonomen Provinzen, die mit ACI eine Vereinbarung abgeschlossen haben, durchgeführt.<BR>Es ist notwendig, für diese Zahlungsart (Ergänzungszahlung), ausser das Kennzeichen auch den Steuerzeitraum anzugeben. (zum Beispiel: Januar 2001-Dezember 2001)</span></FONT>");
	w.document.write("</TD></TR>");
	w.document.write("<TR><TD bgcolor=#F0F0F0>");
	w.document.write("<FONT class=testoLeft><b>Vorauszahlung</b></FONT>:<BR> <FONT class=testo>Ist  eine  Erneuerung der Autosteuer , die im selben Monat der Fälligkeit getätigt werden kann,  anstatt des folgenden Monates (zum Beispiel: Die Kraftfahrzeug-Steuer mit Fälligkeit August 2002, Laufzeit ab 1 September 2002 kann im August eingezahlt werden). Es ist keine Vorauszahlung bezüglich der Fälligkeit Januar-Dezember vorgesehen (die Autosteuer kann nicht im Dezember bezahlt werden). </span></FONT>");
	w.document.write("</TD></TR></TABLE><BR>");
	w.document.write("</BODY>");
	w.document.write("</HTML>");
}

function TipiPagamentiLink(){
	var w = window.open("","Codici_Riduzione","width=447,height=500,toolbar=no,location=no,directories=no,resizable=no,scrollbars=yes,titlebar=no,status=no,menubar=no,top=0,left=0")
	w.document.write("<HTML><TITLE>ACI - Automobile Club d'Italia</TITLE>");
	w.document.write("<link href='include/popup.css' rel='stylesheet' type='text/css'>");
	w.document.write("<link href='include/style.css' rel='stylesheet' type='text/css'>");
	w.document.write("<link href='include/niftyCorners.css' rel='stylesheet' type='text/css' media='all' />");

	w.document.write("<body><div id='testi'>");
	w.document.write("<a name='inizio-pagina'></a>");

	w.document.write("<center><h3><b>Tipi di pagamento</b></h3></center><br>");
	w.document.write("<p><b>Rinnovo di pagamento</b>:<BR> bolli successivi al primo pagamento (veicolo già circolante)</p><br>");
	w.document.write("<p><b>Prima immatricolazione</b>:<BR>primo bollo di un veicolo nuovo di fabbrica e di prima  immatricolazione</p><br>");
	w.document.write("<p><b>Veicolo reimmatricolato</b>:<BR>primo bollo di un veicolo usato, di provenienza estera, immatricolato per la prima volta in Italia</p><br>");
	w.document.write("<p><b>Rientro da esenzione</b>:<BR>bollo da versare dopo l’uscita dall’esenzione del veicolo che, ad esempio, può avvenire in uno dei seguenti casi:</p><br>");
	w.document.write("<ul><li><p>se il veicolo viene acquistato usato da un concessionario. Per poter effettuare il calcolo del bollo, occorre inserire la data di uscita dall’esenzione del veicolo (data dell’atto di vendita)</p></li>");
	w.document.write("<li><p>a seguito di vendita di un veicolo destinato al trasporto un portatore di handicap. Anche in questo caso occorre inserire come data di uscita dall’esenzione la data dell’atto di vendita</p></li>");
	w.document.write("<li><p>a seguito della perdita dei requisiti dell'esenzione di cui al punto precedente (occorre inserire la data in cui cessano i requisiti)</p></li>");
	w.document.write("<li><p>per i veicoli storici ultraventennali della regione Lombardia che sono assoggettati al pagamento di un versamento frazionato per tanti dodicesimi quanti sono i mesi intercorrenti da gennaio 2004 fino al mese antecedente quello di immatricolazione (la data da inserire per l'uscita da esenzione è 01/01/2004)</p></li></ul><br>");
	w.document.write("<p><b>Riacquisto di possesso</b>:<BR>bollo di un veicolo per il quale sia stata annotata la perdita di possesso per furto o la indisponibilità per un provvedimento amministrativo o giudiziale (ad es. sequestro) e per il quale ci sia stato il successivo ritrovamento o dissequestro. Per poter effettuare il calcolo del bollo, occorre inserire la data del verbale di ritrovamento o del provvedimento di dissequestro. <BR> N.B  l’importo verrà calcolato esclusivamente sulla base dei dati digitati</p><br>");
	w.document.write("<p><b>Targa prova</b>:<BR>bollo di un veicolo per il quale sia stata ottenuta l’autorizzazione alla circolazione per prova</p><br>");
	w.document.write("<p><b>Integrazione per complessi</b>:<BR>eventuale integrazione dovuta nel caso in cui la tassa -  motrice più rimorchio (complesso )-  non raggiunga il minimo CEE</p><br>");
	w.document.write("<p><b>Pagamento integrativo</b>:<BR>integrazione della tassa automobilistica in caso di pagamento insufficiente effettuato anche tramite gli altri concessionari autorizzati alla riscossione (poste, banche, tabaccai, agenzie di pratiche auto).<BR>Il calcolo si effettua solo per residenti in regioni e province autonome convenzionate con l'Aci.<BR> Per questo tipo di pagamento è necessario indicare, oltre la targa del veicolo, anche il periodo tributario per cui si intende effettuare l'integrazione (es. Gennaio/2001 - Dicembre/2001)</p><br>");
	w.document.write("<p><b>Pagamento anticipato</b>:<BR>Pagamento della tassa automobilistica, successivo al primo (veicolo già circolante) che viene effettuato nel mese di scadenza anzichè nel mese successivo - da quando, cioè, è dovuto -  (es. il bollo di un autoveicolo con scadenza Agosto 2002 e decorrenza 1° Settembre 2002 può essere pagato nel mese di Agosto stesso). Non è previsto il pagamento anticipato relativamente alla scadenza Gennaio - Dicembre (il bollo non può essere pagato nel mese di Dicembre)</p><br>");
	w.document.write("</div></BODY>");
	w.document.write("</HTML>");
}



function chkTargaProva(e){
	var obj = (isNs) ? e.target : event.srcElement;
	var objForm = document.form1;
	if (obj.name=='chkVecchioTipo'){
		objForm.chkVecchioTipo.checked = true;
		objForm.chkNuovoTipo.checked = false;
		objForm.txtTargaProva1.value=''; objForm.txtTargaProva2.value='';
		objForm.txtTarga.disabled = false;
		objForm.txtTargaProva1.disabled = true; objForm.txtTargaProva2.disabled = true;
		objForm.txtTarga.focus();
	}else{
		objForm.chkVecchioTipo.checked = false;
		objForm.chkNuovoTipo.checked = true;
		objForm.txtTarga.value='';
		objForm.txtTarga.disabled = true;
		objForm.txtTargaProva1.disabled = false; objForm.txtTargaProva2.disabled = false;
		objForm.txtTargaProva1.focus();
	}
}



