// JavaScript Document
function index_f_chk_int(obj){

if(_CF_checkinteger(obj.form.txtinteresse.value) || ! obj.form.txtinteresse.value.length == 0){obj.form.chkIntsuAl.checked=true;}else{obj.form.chkIntsuAl.checked=false;obj.form.chkIntsuDal.checked=false;};

}

function index_f_chk_intleg(obj){
	obj.form.selectinc.disabled=false;

if(obj.checked){alert('Il calcolo degli interessi legali verrą automatizzato');obj.form.txtTipoCalcoloInt.disabled=false;obj.form.chkAutoIntMora2.checked=false;obj.form.txtinteresse.value='';obj.form.chkAutoIntMora.checked=false;  obj.form.txtinteresse.disabled=obj.checked;obj.form.selectinc.options[7].selected=true;obj.form.chkDalconst.checked=false;obj.form.chkAlconst.checked=false}else {alert('Gli interessi non verranno automatizzati');obj.form.txtTipoCalcoloInt.disabled=true;obj.form.txtinteresse.disabled=false;obj.form.txtTipoCalcoloInt.options[0].selected=true; obj.form.selectinc.options[0].selected=true;obj.form.chkAutoIntMora2.checked=false;}
}

function index_f_chk_intmor(obj){
if(obj.checked){alert('Il calcolo degli interessi moratori verrą automatizzato');obj.form.txtTipoCalcoloInt.options[0].selected=true;obj.form.txtinteresse.value='';obj.form.chkAutoIntLeg.checked=false;obj.form.txtinteresse.disabled=obj.checked;obj.form.selectinc.options[7].selected=true;obj.form.chkIntsuAl.checked=true;obj.form.chkDalconst.checked=false;obj.form.chkAlconst.checked=false}else {alert('Il calcolo degli moratori non verrą automatizzato');obj.form.txtinteresse.disabled=false;obj.form.chkAutoIntMora2.checked=false;obj.form.selectinc.options[0].selected=true;obj.form.chkIntsuAl.checked=false;obj.form.chkIntsuDal.checked=false;}
}

function index_f_chk_intmor2(obj){
javascript:if(obj.form.chkAutoIntMora.checked){}else{obj.checked=false}

}

function index_f_chk_txtTipoCalcoloInt(obj){
if(obj.form.txtTipoCalcoloInt.value=='1'){obj.form.selectinc.options[0].selected=true;obj.form.selectinc.disabled=true;}else {obj.form.selectinc.disabled=false;}
}


function index_f_chk_riv(obj){
if(obj.checked) {} else	{obj.form.chkIntsuAl.checked=false;if(obj.form.chkAutoIntLeg.checked || obj.form.chkAutoIntMora.checked){obj.form.chkIntsuDal.checked=true;}else {}}
}

function index_f_chkintsual(obj){
if(obj.checked){obj.form.chkIntsuDal.checked=false;obj.form.chkIntsu75.checked=false;obj.form.txtinteresse.disabled=false;obj.form.chkAutoIntLeg.disable=false;obj.form.chkAutoIntLeg.disable=false;}else{obj.form.txtinteresse.disabled=true;obj.form.chkAutoIntLeg.checked=false;obj.form.chkIntCap.checked=false;}
}

function index_f_chkintsudal(obj){
if(obj.checked){obj.form.chkIntsuAl.checked=false;obj.form.chkIntsu75.checked=false;obj.form.txtinteresse.disabled=false;obj.form.chkAutoIntLeg.disable=false;obj.form.chkAutoIntLeg.disable=false;}else{obj.form.txtinteresse.disabled=true;obj.form.chkAutoIntLeg.checked=false;obj.form.chkIntCap.checked=false;}
}

function index_f_chkintsu75(obj){
if(obj.checked){obj.form.chkIntsuAl.checked=false;obj.form.chkIntsuDal.checked=false;obj.form.txtinteresse.disabled=false;obj.form.chkAutoIntLeg.disable=false;obj.form.chkAutoIntLeg.disable=false;}else{obj.form.txtinteresse.disabled=true;obj.form.chkAutoIntLeg.checked=false;obj.form.chkIntCap.checked=false;}
}

function index_f_chkintcap(obj){
if(obj.checked){obj.form.chkImpInizConst.checked=false;obj.form.txtinteresse.disabled=false;}else {}
}

function index_f_chkdalconst(obj){
if(obj.checked){obj.form.chkAlconst.checked=false;obj.form.chkImpInizConst.checked=true;}else {obj.form.chkImpInizConst.checked=false;}
}

function index_f_chkalconst(obj){
if(obj.checked){obj.form.chkDalconst.checked=false;obj.form.txtinteresse.disabled=false; if(obj.form.selectinc.options[0].selected){alert('Affinchč l\'opzione selezionata abbia efficacia\nconsigliamo di selezionare uno sviluppo diverso da intero');}}else {}
}

function index_f_chkimpinizconst(obj){
if(obj.checked){obj.form.chkIntCap.checked=false;obj.form.chkSumImpIniziale.checked=false;}else {}
}

function index_f_chksumimpiniziale(obj){
if(obj.checked){obj.form.chkImpInizConst.checked=false;}else {}
}