function NewAjax(){ 
 /* var xmlhttp=false; 
  try { 
   // Creación del objeto ajax para navegadores diferentes a Explorer 
   xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); 
//   alert("Msxml2.XMLHTTP");
  } catch (e) { 
   // o bien 
   try { 
     // Creación del objet ajax para Explorer 
     xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); } catch (E) { 
     xmlhttp = false; 
	 
   } 
//   alert("Microsoft.XMLHTTP");
  } 

  if (!xmlhttp && typeof XMLHttpRequest!='undefined') { 
   xmlhttp = new XMLHttpRequest(); 
  } 
  
  return xmlhttp; */
  
	var xmlHttp=false;
	try
	 {
	// alert('Firefox, Opera 8.0+, Safari');
	 xmlHttp=new XMLHttpRequest();
	 }
	catch (e)
	 {
	 // Internet Explorer
	 try
	  {
	  //alert('Internet Explorer 6 and later');
	  xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
	  }
	 catch (e)
	  {
	  //alert('Internet Explorer Pre 6');	  
	  xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
	  }
	 }
	return xmlHttp;
}





function AddOptionToSelect(sIdSelect, sOptionValue, sOptionText){
	var oOption = document.createElement("OPTION");
	oOption.text = sOptionText;
	oOption.value = sOptionValue;
	try {
		document.getElementById(sIdSelect).add(oOption);
	} catch(e){
		document.getElementById(sIdSelect).appendChild(oOption);
	}
}
