function validar2(form) 
{
	
	var error=new Array();
	
	// Limpiar datos	
	$('nombre').value=$$('nombre').trim();
	$('correo').value=$$('correo').trim();
	$('contrasena').value=$$('contrasena').trim();
	$('contrasena2').value=$$('contrasena2').trim();	
	$('sexo').value=$$('sexo').trim();
	//$('fecha_nacimiento').value=$$('fecha_nacimiento').trim();
	
	$('ocupacion').value=$$('ocupacion').trim();
	$('region').value=$$('region').trim();
	$('comuna').value=$$('comuna').trim();
	$('establecimiento').value=$$('establecimiento').trim();
			
	// Validar Campos
	if ($('nombre').value=="") {
		error.push('<strong style="font-size:20px; line-height:20px;">*</strong> Falta completar el campo Nombre');
	}
	
	if ($('contrasena').value=="") {
		error.push('<strong style="font-size:20px; line-height:20px;">*</strong> Falta completar el campo Contraseña');
	}
	
	if ($('contrasena').value!=$('contrasena2').value) {
		error.push('<strong style="font-size:20px; line-height:20px;">*</strong> Escriba los dos campos con contraseña iguales');
	}
	
	if ($('correo').value=="") {
		error.push('<strong style="font-size:20px; line-height:20px;">*</strong> Falta completar el campo Correo');
	}
	
	if(!$$('correo').isEmail()){
		error.push('<strong style="font-size:20px; line-height:20px;">*</strong> Escriba correo válido');
	}
	
	if ($('sexo').value=="") {
		error.push('<strong style="font-size:20px; line-height:20px;">*</strong> Falta seleccionar su sexo');
	}
	/*
	if ($('fecha_nacimiento').value=="") {
		error.push('<strong style="font-size:20px; line-height:20px;">*</strong> Falta su fecha de nacimiento');
	}
	*/

	if ($('ocupacion').value=="") {
		error.push('<strong style="font-size:20px; line-height:20px;">*</strong> Falta seleccionar su ocupación');
	}
	
	if ($('region').value=="") {
		error.push('<strong style="font-size:20px; line-height:20px;">*</strong> Falta seleccionar su región');
	}
	
	if ($('comuna').value=="") {
		error.push('<strong style="font-size:20px; line-height:20px;">*</strong> Falta seleccionar su comuna');
	}
	
	if ($('establecimiento').value=="") {
		error.push('<strong style="font-size:20px; line-height:20px;">*</strong> Falta seleccionar su establecimiento');
	}
		
	// Imprimir errores sólo si hay, sino enviar formulario
	if (error.length) {	
		$('erroresForm').innerHTML = error[0].toString();
		return false;
	} else {
		return true;
	}
}
