// JavaScript Library
//===============================
//chequear
//===============================
function chequear_vacio(){
  if (document.buscar.busqueda.value == ""){
	alert("Debe ingresar un valor para la búsqueda");
	return (false);
  }
  	return (true);
}
//===============================
//chequear email
//===============================
function checkEmail(myForm) {
	if (document.form1.email.value=="")
	{
		alert("La dirección de email es requerida");
		return false;
	}	
	if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(myForm.email.value)){
		return (true)
	}			
	alert("La dirección de email no es válida")
	return (false)	
}

function ampliarTapa(libroID) {
	void(window.open('tapaLibro.asp?libroID='+libroID, '_blank', 'width=350,height=500'))
};

function ampliarFotoAutor(autorID) {
	void(window.open('fotoAutor.asp?autorID='+autorID, '_blank', 'width=350,height=320'))
};

function verPrensa(prensaID) {
	void(window.open('articuloPrensa.asp?ID='+prensaID, 'prensa', 'scrollbars=yes, width=640, height=450'))
}

//===============================
//detalles
//===============================
/*function verDetallesSol(numero) {
	void(window.open('sol_detalles.asp?id='+numero, 'detalle', 'width=600,height=430'))
}
function verDetallesLC(numero) {
	void(window.open('lc_detalles.asp?id='+numero, 'detalle', 'width=600,height=430'))
}*/
//===============================
//volver
//===============================
function volver() {
    history.go(-1);
}