// JavaScript Document
function cleanField (field) {
	document.getElementById(field).value=""
}

function clearField (field) {	
	document.getElementById(field).value="";
}

function turnBlue(div_menu){	
	document.getElementById(div_menu).setAttribute("class", "menu_azul");
}

function turnRed(div_menu){	
	document.getElementById(div_menu).setAttribute("class", "menu_principal");
}

function turnLight(div_menu){	
	document.getElementById(div_menu).setAttribute("class", "menu_izq");
}

function turnDark(div_menu){	
	document.getElementById(div_menu).setAttribute("class", "menu_izqOver");
}

function linkTo(url){
	location.replace(url)
}

// JavaScript Document
function checkForm () {
	if (document.getElementById("nombre").value=="") {		
		alert ("El nombre es un campo obligatorio ")
		return false
	}
	if (document.getElementById("cedula").value=="") {		
		alert ("La cedula es un campo obligatorio ")
		return false
	}
	if (document.getElementById("extendida").value=="") {		
		alert (" Todos los campos son requeridos")
		return false
	}
	if (document.getElementById("edad").value=="") {		
		alert ("La edad es un campo obligatorio ")
		return false
	}
	if (document.getElementById("sexo").value=="") {		
		alert ("El sexo es un campo obligatorio ")
		return false
	}
	if (document.getElementById("empadronamiento").value=="") {		
		alert ("El empadronamiento es un campo obligatorio ")
		return false
	}
	if (document.getElementById("email").value=="") {		
		alert ("El email es un campo obligatorio ")
		return false
	}
	if (document.getElementById("telefono").value=="") {		
		alert ("El telefono es un campo obligatorio ")
		return false
	}
	
}


