// Documento JavaScript
// McCain&copy;(aus) 2006
//

// Para inicializar todas las funciones JS onload sin que se pisen
window.onload = initPage;
function initPage() {
	extendedLinks();
	extendedForms();
}


function checkContactar(){
	if (document.getElementById('form_nombre').value==''){
		alert('Pon tu nombre');
		document.getElementById('form_nombre').focus();
		return(false);
	}
	if (document.getElementById('form_email').value==''){
		alert('Pon tu email');
		document.getElementById('form_email').focus();
		return(false);
	}
	return(true);
}

function checkBuscador(){
	if (document.getElementById('form_busqueda').value==''){
		alert('Introduce una palabra a buscar en las fichas de los dictámenes.');
		document.getElementById('form_busqueda').focus();
		return(false);
	}
	return(true);
}
