
///////////////////////////////////////////////////////
//06-11-05 aggiunta funzione per eliminare un elemento 
//dall'array dei controlli
///////////////////////////////////////////////////////


/*
cancella un elemento dall'array in base al nome 
*/
function deleteItemByName(nome,listacontrolli) 
{
			for (var i=0; i<listacontrolli.length; i++) 
			{		
					var obj = 	listacontrolli[i].split(",");
					if (obj[0] == nome) 
					{
						listacontrolli.splice(i,1); 
					}
			}

}
 
 function getXmlHttpRequest(){
  if (window.ActiveXObject) {
   /*@cc_on
                        @if (@_win32)
                                     return new ActiveXObject("Microsoft.XMLHTTP");
                          @end
                @*/
   return null;
  }
  else if (window.XMLHttpRequest)
  return new XMLHttpRequest();
  else return null;
 }
 
 
 function getXmlHttpRequestAlert()
 {
    objHTTP=getXmlHttpRequest();
                  if(!objHTTP) {
                           alert("Si è verificato un problema di browser ");
                           return false;
                  }    
                  else
                  return objHTTP;
 }
 
 
 


 
