function nuevoAjax()
{ 
	/* Crea el objeto AJAX. Esta funcion es generica para cualquier utilidad de este tipo, por
	lo que se puede copiar tal como esta aqui */
	var xmlhttp=false;
	try
	{
		// Creacion del objeto AJAX para navegadores no IE
		xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");
	}
	catch(e)
	{
		try
		{
			// Creacion del objet AJAX para IE
			xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
		}
		catch(E)
		{
			if (!xmlhttp && typeof XMLHttpRequest!='undefined') xmlhttp=new XMLHttpRequest();
		}
	}
	return xmlhttp; 
}


// hacer validaciones
function validar(theForm)
{  
   
   if(theForm.modalidad[0].checked || theForm.modalidad[1].checked || theForm.modalidad[2].checked)
   {
 
     if (theForm.Cmodalidad.value == 0)
     { 
       if(theForm.modalidad[1].checked == false)
	     alert("Seleccione una Sede");
	   else
	     alert("Seleccione un Cat.");
		 
       theForm.Cmodalidad.focus();	
       return (false);
     }	
  }
  else
  {
	 alert("Seleccione una Modalidad.");
	 return (false);
  }
}


function mandar()
{
		
	var ajax = nuevoAjax();		
	    
    ajax.open("POST", "../inscripcion/index.php", true);	
	ajax.send(null);
	alert('aa');
	    
	
	
}


function cancelar()
{
   document.location = 'http://www.cecar.edu.co';
   return true;
}



