

function conferma(testo,url){

			a=window.confirm(testo);

			if (a){

				location.href=url;}

		}



function confermacancella(testo,url){

			a=window.confirm(testo);

			if (a)

				return true;

			else

				return false;	

		}	

		

function changeto(highlightcolor){

source=event.srcElement

if (source.tagName=="TR"||source.tagName=="TABLE")

return

while(source.tagName!="TR")

source=source.parentElement

if (source.style.backgroundColor!=highlightcolor&&source.id!="ignore")

source.style.backgroundColor=highlightcolor

}



function changeback(originalcolor){

if (event.fromElement.contains(event.toElement)||source.contains(event.toElement)||source.id=="ignore")

return

if (event.toElement!=source)

source.style.backgroundColor=originalcolor

}		



function selectAll(newState)

  {

  for (var i=0;i<document.formcancella.elements.length;i++)

    {

        var e = document.formcancella.elements[i];

      e.checked = newState;

    }

  }




// JavaScript Document
