function check0(state) {
	if (state==true) {
		document.f_an_add.an_prezzo.disabled=false;
		document.f_an_add.an_prezzo.style.backgroundColor='#ffe';
		document.f_an_add.an_tratt.disabled=false;
		document.f_an_add.an_couff.disabled=false;
	} else {
		document.f_an_add.an_prezzo.disabled=true;
		document.f_an_add.an_prezzo.style.backgroundColor='#ddc';
		document.f_an_add.an_tratt.disabled=true;
		document.f_an_add.an_tratt.checked=false;
		document.f_an_add.an_couff.disabled=true;
		}
}

function check1(state) {
	if (state==true) {
		document.f_an_add.an_prezzo.disabled=false;
		document.f_an_add.an_prezzo.style.backgroundColor='#ffe';
		document.f_an_add.an_tratt.disabled=false;
		document.f_an_add.an_par.disabled=false;
	} else {
		document.f_an_add.an_prezzo.disabled=true;
		document.f_an_add.an_prezzo.style.backgroundColor='#ddc';
		document.f_an_add.an_tratt.disabled=true;
		document.f_an_add.an_tratt.checked=false;
		document.f_an_add.an_par.disabled=true;
		}
}

function ucheck(state) {
	if (state==true) {
		document.f_an_update.an_prezzo.disabled=false;
		document.f_an_update.an_prezzo.style.backgroundColor='#ffe';
		document.f_an_update.an_tratt.disabled=false;
	} else {
		document.f_an_update.an_prezzo.disabled=true;
		document.f_an_update.an_prezzo.style.backgroundColor='#ddc';
		document.f_an_update.an_tratt.disabled=true;
		document.f_an_update.an_tratt.checked=false;
		}
}

function disablesubmit() {
	document.f_an_add.submitButton.disabled=true;
	document.f_an_add.submitButton.style.backgroundColor='#d4d0c8';
	document.f_an_add.submitButton.style.color='#9190a7';
	document.f_an_add.submit();
	return true;
}

function hideBusysign() {
	document.getElementById('bysy_indicator').style.display ='none';
}

function showBusysign() {
	document.getElementById('bysy_indicator').style.display ='inline';
}

function show(index) {
	document.images['tagimg'].src=imgArray[index];
}

function select_all(obj) {
	var text_val=eval(obj);
	text_val.focus();
	text_val.select();
	if (!document.all) return; // IE only
}

