<!--
function SelListAllLitems(Lista) {

	QuestoForm= document.getElementById("newsletter");
	NumCampi= QuestoForm.elements.length;
	CheckboxSelettoreLista=document.getElementById("Lists_"+Lista);
	//alert(CheckboxSelettoreLista.checked);
	//ListaSelezionata= CheckboxSelettoreLista.checked;
	//InputSelezioneId="sel_"+Lista+"_"+ItemId;
	//InputSelezione=document.getElementById("sel_"+Lista+"_"+ItemId);
	for(j=0;j<NumCampi;j++){
		Elemento=QuestoForm[j];
		var str=Elemento.id;
		//identifico il selettore
		strTmp=str.split("_");
		if  ((strTmp[0]=="selector") && (strTmp[1]==Lista)){
			if (CheckboxSelettoreLista.checked==true){
					Elemento.checked=true;
			}else{
					Elemento.checked=false;
			}
		}
		if  ((strTmp[0]=="sel") && (strTmp[1]==Lista)){
			if (CheckboxSelettoreLista.checked==true){
					Elemento.value="1";
			}else{
					Elemento.value="0";
			}
		}		
	}
	//alert(InputSelezione.value);
  }
function SelListItem(Lista,ItemId) {
	CheckboxSelettoreLista=document.getElementById("Lists_"+Lista);
	QuestoForm= document.getElementById("newsletter");
	NumCampi= QuestoForm.elements.length;
	CheckboxSelettore=document.getElementById("selector_"+Lista+"_"+ItemId);
	InputSelezioneId="sel_"+Lista+"_"+ItemId;
	InputSelezione=document.getElementById("sel_"+Lista+"_"+ItemId);
	for(j=0;j<NumCampi;j++){
		Elemento=QuestoForm[j];
		var str=Elemento.id;
		if  (str==InputSelezioneId){
			//alert (Elemento.checked);
			if (CheckboxSelettore.checked==true){
					InputSelezione.value="1";
					if(CheckboxSelettoreLista.checked==false){
						CheckboxSelettoreLista.checked=true;
					}
			}else{
					InputSelezione.value="0";
					if(CheckboxSelettoreLista.checked==true){
						//CheckboxSelettoreLista.checked=false;
					}
			}
		}
	}
	//alert(InputSelezione.value);
  }

function confirmSubmit() {
  var agree=confirm("Are you sure you want to continue?");
  if (agree)
  	return true;
  else
  	return false;
}
function ManResInvia(Azione) {
	var AzioneCampo = document.getElementById("ManResAzione");
	AzioneCampo.value= Azione;
	document.getElementById("ManRes").submit();
  }
  function SelAll() {
	QuestoForm= document.getElementById("ManRes");
	NumCampi= QuestoForm.elements.length;
	for(j=0;j<NumCampi;j++){
		Elemento=QuestoForm[j];
		var str=Elemento.id;
		if  (str=="ManResArray[]"){
			//alert (Elemento.checked);
			if (Elemento.checked==true){
					Elemento.checked=false;
			}else{
					Elemento.checked=true;
			}
		}
	}
  }
  function ShowHideDetails(DetailTr,DetailPulsante){
  Detail= document.getElementById(DetailTr);
  DetailPuls= document.getElementById(DetailPulsante);
  if(Detail.style.display=="none"){
        Detail.style.display="";
		DetailPuls.innerHTML="Hide Emails";
      }else{
        Detail.style.display="none";
		DetailPuls.innerHTML="Show Emails";
	}
}

//-->
