// funzione per l'inserimento di un div+contenuto dentro un'altro div

function DIV_Insert(id_elemento,action,div_recive,style,innerdiv){

	//if((Element_Exist(div_recive))&&(!Element_Exist(id_elemento))){

		GET_ElementById(div_recive).innerHTML = '<div id="'+id_elemento+'" style="'+style+'" '+action+'>'+innerdiv+'</div>';

	//	}

	}

	

	

// funzione per il controllo automatico della visibilità del div

function DIV_autovisibility(id_elemento){

	if(GET_ElementById(id_elemento)){

		if(GET_ElementById(id_elemento).style.visibility=='visible'){

			GET_ElementById(id_elemento).style.visibility='hidden';

			}

		else{

			GET_ElementById(id_elemento).style.visibility='visible';

			}

		}

	}

	

	

function DIV_visibility(id_elemento,visible){

	GET_ElementById(id_elemento).style.visibility=visible;

	}

	

	

function DIV_GetStyle(id_elemento){

	return GET_ElementById(id_elemento).style;

	}	
