// JavaScript Document
function validar(form){
	if(notEmpty(form.usuario)){
		if(notEmpty(form.contras)){
			return true;
		}
	}
	return false;
}
function validar2(form){
	if(notEmpty2(form.cert)){
		return true;
	}
	return false;
}
function validar3(form){
	if(notEmpty3(form.nombre)){
		if(notEmpty3(form.email)){
			return true;
		}
	}
	return false;
}
function notEmpty(elem){
	var str = elem.value;
	if(str.length == 0){
		alert('Es necesario rellenar todos los campos');
		return false;
	} else {
		return true;
	}
}
function notEmpty2(elem){
	var str = elem.value;
	if(str.length == 0){
		alert('Identifique el certificado');
		return false;
	} else {
		return true;
	}
}
function notEmpty3(elem){
	var str = elem.value;
	if(str.length == 0){
		alert('Rellene los campos obligatorios');
		return false;
	} else {
		return true;
	}
}
function imprime() {
	window.print();
}