<!--
var ie = ((document.all)&&(!document.layers)) ? true : false;
var ns = ((document.layers)&&(!document.getElementById)) ? true : false;
var moz = ((document.getElementById)&&(!document.all)) ? true : false;
function MM_callJS(jsStr) { //v2.0
  return eval(jsStr)
}
function vedi(){
if (ie) {document.all('tab2').style.display = 'block';};if (ns) {document.layers('tab2').style.display = 'block';};if (moz) {document.getElementById('tab2').style.display = '';};
}
function nvedi(){
if (ie) {
document.all('minus1').style.display = 'none';
document.all('plus1').style.display = 'block';
document.all('tab2').style.display = 'none';
document.all('Nome_coniuge').value = '';
document.all('Cognome_coniuge').value = '';
document.all('Data_di_nascita_coniuge').value = '';
document.all('tab1kind').style.display = 'none';
document.all('Nome_1_figlio').value = '';
document.all('Cognome_1_figlio').value = '';
document.all('Data_di_nascita_1_figlio').value = '';
document.all('tab2kind').style.display = 'none';
document.all('Nome_2_figlio').value = '';
document.all('Cognome_2_figlio').value = '';
document.all('Data_di_nascita_2_figlio').value = '';
document.all('tab3kind').style.display = 'none';
document.all('Nome_3_figlio').value = '';
document.all('Cognome_3_figlio').value = '';
document.all('Data_di_nascita_3_figlio').value = '';
document.all('tab4kind').style.display = 'none';
document.all('Nome_4_figlio').value = '';
document.all('Cognome_4_figlio').value = '';
document.all('Data_di_nascita_4_figlio').value = '';
}
if (ns) {
document.layers('minus1').display = 'none';
document.layers('plus1').display = 'block';
document.layers('tab2').display = 'none';
document.layers('Nome_coniuge').value = '';
document.layers('Cognome_coniuge').value = '';
document.layers('Data_di_nascita_coniuge').value = '';
document.layers('tab1kind').display = 'none';
document.layers('Nome_1_figlio').value = '';
document.layers('Cognome_1_figlio').value = '';
document.layers('Data_di_nascita_1_figlio').value = '';
document.layers('tab2kind').display = 'none';
document.layers('Nome_2_figlio').value = '';
document.layers('Cognome_2_figlio').value = '';
document.layers('Data_di_nascita_2_figlio').value = '';
document.layers('tab3kind').display = 'none';
document.layers('Nome_3_figlio').value = '';
document.layers('Cognome_3_figlio').value = '';
document.layers('Data_di_nascita_3_figlio').value = '';
document.layers('tab4kind').display = 'none';
document.layers('Nome_4_figlio').value = '';
document.layers('Cognome_4_figlio').value = '';
document.layers('Data_di_nascita_4_figlio').value = '';
}
if (moz) {
document.getElementById('minus1').style.display = 'none';
document.getElementById('plus1').style.display = '';
document.getElementById('tab2').style.display = 'none';
document.getElementById('Nome_coniuge').value = '';
document.getElementById('Cognome_coniuge').value = '';
document.getElementById('Data_di_nascita_coniuge').value = '';
document.getElementById('tab1kind').style.display = 'none';
document.getElementById('Nome_1_figlio').value = '';
document.getElementById('Cognome_1_figlio').value = '';
document.getElementById('Data_di_nascita_1_figlio').value = '';
document.getElementById('tab2kind').style.display = 'none';
document.getElementById('Nome_2_figlio').value = '';
document.getElementById('Cognome_2_figlio').value = '';
document.getElementById('Data_di_nascita_2_figlio').value = '';
document.getElementById('tab3kind').style.display = 'none';
document.getElementById('Nome_3_figlio').value = '';
document.getElementById('Cognome_3_figlio').value = '';
document.getElementById('Data_di_nascita_3_figlio').value = '';
document.getElementById('tab4kind').style.display = 'none';
document.getElementById('Nome_4_figlio').value = '';
document.getElementById('Cognome_4_figlio').value = '';
document.getElementById('Data_di_nascita_4_figlio').value = '';
}

}
function incrementa () {
if (ie) {if (document.all('tab1kind').style.display == 'none') {document.all('tab1kind').style.display = 'block';document.all('minus1').style.display = 'block';}
else if (document.all('tab2kind').style.display == 'none') {document.all('tab2kind').style.display = 'block'}
else if (document.all('tab3kind').style.display == 'none') {document.all('tab3kind').style.display = 'block'}
else if (document.all('tab4kind').style.display == 'none') {document.all('tab4kind').style.display = 'block';document.all('plus1').style.display = 'none';};}
if (ns) {if (document.layers('tab1kind').display == 'none') {document.layers('tab1kind').display = 'block';document.layers('minus1').display = 'block'}
else if (document.layers('tab2kind').display == 'none') {document.layers('tab2kind').display = 'block'}
else if (document.layers('tab3kind').display == 'none') {document.layers('tab3kind').display = 'block'}
else if (document.layers('tab4kind').display == 'none') {document.layers('tab4kind').display = 'block';document.layers('plus1').display = 'none'}}
if (moz) {if (document.getElementById('tab1kind').style.display == 'none') {document.getElementById('tab1kind').style.display = '';document.getElementById('minus1').style.display = ''}
else if (document.getElementById('tab2kind').style.display == 'none') {document.getElementById('tab2kind').style.display = ''}
else if (document.getElementById('tab3kind').style.display == 'none') {document.getElementById('tab3kind').style.display = ''}
else if (document.getElementById('tab3kind').style.display == 'none') {document.getElementById('tab4kind').style.display = '';document.getElementById('plus1').style.display = 'none'}}
}
function decrementa () {
if (ie) {if (document.all('tab4kind').style.display == 'block') {document.all('tab4kind').style.display = 'none'; document.all('plus1').style.display = 'block'; document.all('Nome_4_figlio').value = ''; document.all('Cognome_4_figlio').value = ''; document.all('Data_di_nascita_4_figlio').value = '';}
else if (document.all('tab3kind').style.display == 'block') {document.all('tab3kind').style.display = 'none'; document.all('Nome_3_figlio').value = ''; document.all('Cognome_3_figlio').value = ''; document.all('Data_di_nascita_3_figlio').value = '';}
else if (document.all('tab2kind').style.display == 'block') {document.all('tab2kind').style.display = 'none'; document.all('Nome_2_figlio').value = ''; document.all('Cognome_2_figlio').value = ''; document.all('Data_di_nascita_2_figlio').value = '';}
else if (document.all('tab1kind').style.display == 'block') {document.all('tab1kind').style.display = 'none'; document.all('minus1').style.display = 'none'; document.all('Nome_1_figlio').value = ''; document.all('Cognome_1_figlio').value = ''; document.all('Data_di_nascita_1_figlio').value = '';};}
if (ns) {if (document.layers('tab4kind').display == 'block') {document.layers('tab4kind').display = 'none';document.layers('plus1').display = 'none';document.layers('Nome_4_figlio').value = '';document.layers('Cognome_4_figlio').value = '';document.layers('Data_di_nascita_4_figlio').value = '';}
else if (document.layers('tab3kind').display == 'block') {document.layers('tab3kind').display = 'none';document.layers('Nome_3_figlio').value = '';document.layers('Cognome_3_figlio').value = '';document.layers('Data_di_nascita_3_figlio').value = '';}
else if (document.layers('tab2kind').display == 'block') {document.layers('tab2kind').display = 'none';document.layers('Nome_2_figlio').value = '';document.layers('Cognome_2_figlio').value = '';document.layers('Data_di_nascita_2_figlio').value = ''}
else if (document.layers('tab1kind').display == 'block') {document.layers('tab1kind').display = 'none';document.layers('minus1').display = 'none';document.layers('Nome_1_figlio').value = '';document.layers('Cognome_1_figlio').value = '';document.layers('Data_di_nascita_1_figlio').value = '';}}
if (moz) {if (document.getElementById('tab4kind').style.display == '') {document.getElementById('tab4kind').style.display = 'none';document.getElementById('plus1').style.display = '';document.getElementById('Nome_4_figlio').value = '';document.getElementById('Cognome_4_figlio').value = '';document.getElementById('Data_di_nascita_4_figlio').value = '';}
else if (document.getElementById('tab3kind').style.display == '') {document.getElementById('tab3kind').style.display = 'none';document.getElementById('Nome_3_figlio').value = '';document.getElementById('Cognome_3_figlio').value = '';document.getElementById('Data_di_nascita_3_figlio').value = '';}
else if (document.getElementById('tab2kind').style.display == '') {document.getElementById('tab2kind').style.display = 'none';document.getElementById('Nome_2_figlio').value = '';document.getElementById('Cognome_2_figlio').value = '';document.getElementById('Data_di_nascita_2_figlio').value = '';}
else if (document.getElementById('tab1kind').style.display == '') {document.getElementById('tab1kind').style.display = 'none';document.getElementById('minus1').style.display = 'none';document.getElementById('Nome_1_figlio').value = '';document.getElementById('Cognome_1_figlio').value = '';document.getElementById('Data_di_nascita_1_figlio').value = '';}}
}
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
   var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
   if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
//-->

