<!--
function lib_bwcheck(){ 
this.ver= parseInt(navigator.appVersion);
var agt=navigator.userAgent.toLowerCase();
this.dom=document.getElementById?1:0
this.mac=agt.indexOf("mac")>-1;
this.pc=agt.indexOf("win")>-1;
this.linux=agt.indexOf("mac")==-1 && agt.indexOf("win")==-1;
this.ns= agt.indexOf("netscape")>-1;
this.ns4 = (this.ns && (this.ver == 4));
this.ns4up =(this.ns && (this.ver > 4));
this.ns7=agt.indexOf("netscape/7")!=-1||agt.indexOf("netscape7")!=-1;
this.ns6=agt.indexOf("netscape/6")!=-1||agt.indexOf("netscape6")!=-1;
this.ies     = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1));
this.ie4    = (this.ies && (this.ver == 4) && (agt.indexOf("msie 4")!=-1) );
this.ie  = (this.ies  && (this.ver >= 4));
this.ie5    = (this.ies && (this.ver == 4) && (agt.indexOf("msie 5.0")!=-1) );
this.ie5_5  = (this.ies && (this.ver == 4) && (agt.indexOf("msie 5.5") !=-1));
this.ie5up  = (this.ies  && !this.ie3 && !this.ie4);
this.ie5_5up =(this.ies && !this.ie3 && !this.ie4 && !this.ie5);
this.ie6 =(this.ies && !this.ie3 && !this.ie4 && !this.ie5 && !this.ie5_5);
this.safari=this.mac && agt.indexOf("safari")!=-1;
this.macie=(this.mac && this.ie5up);
this.ie6 = (this.ies && (this.ver == 4) && (agt.indexOf("msie 6.")!=-1) );
this.opera7=agt.indexOf("opera 7")>-1;
this.opera6=agt.indexOf("opera 6")>-1;
this.operadown=agt.indexOf("opera 5")>-1;
this.mozilla=(this.ver >=5) && (agt.indexOf('mozilla')!=-1) && (agt.indexOf('gecko')!=-1);
this.konqueror=(agt.indexOf('konqueror')!=-1);
this.firefox=this.mozilla && (agt.indexOf('firefox')!=-1);
if(this.firefox){var versfirefox=parseFloat(agt.match(/firefox[\/\s](\d+([\.-]\d)*)/)[1]) > parseFloat("0.9")?1:0;}
this.firefox09up=versfirefox && this.firefox;
this.bw=(this.ie5up ||this.ns4up||this.opera7||this.firefox||this.mozilla||this.safari||this.konqueror)
return this
}

bw=new lib_bwcheck() //Browsercheck object

function lib_message(txt){alert(txt); return false}

function lib_obj(obj,nest){ 
 this.nested="";
if(bw.ns4 && nest){ //get nested
nest="n "+nest;
nest=nest.split(' ');
for(var i=1;i<nest.length;i++) this.nested+="document."+nest[i]+".";}
this.evnt=bw.ns4?eval(this.nested+'document.layers["'+obj+'"]'):bw.ie4?eval('document.all["'+obj+'"]'):
bw.dom?eval('document.getElementById("'+obj+'")'):0;
  if(!this.evnt) return lib_message('The layer does not exist ('+obj+')' 
    +'- \nIf your using Netscape please check the nesting of your tags!')
  this.css=bw.dom||bw.ie4?this.evnt.style:this.evnt; 
  this.ref=bw.dom||bw.ie4?document:this.css.document
    this.x=parseInt(this.css.left)||this.css.pixelLeft||this.evnt.offsetLeft||0;
  this.y=parseInt(this.css.top)||this.css.pixelTop||this.evnt.offsetTop||0
  }

//Writing content to object ***
lib_obj.prototype.writeIt = function(text,startHTML,endHTML){
	if(bw.ns4){
    if(!startHTML){startHTML=""; endHTML=""}
	  this.ref.open("text/html"); 
    this.ref.write(startHTML+text+endHTML); 
    this.ref.close()
	}else this.evnt.innerHTML=text
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function comment(comentario,alternativo){
window.status=comentario;
if(alternativo){alternativo.title=comentario}
}
function uncomment(){
window.defaultStatus="Ciencia y deporte"
}
function printWindow(){
browserVersion = parseInt(navigator.appVersion)
if (browserVersion >= 4) window.print()
}
function construccion(){
alert('Lo sentimos, está sección está aún en construcción. En este momento, puede consultar principalmente la botonera superior y el primer número de la revista al que se accede desde la parte central de la página.')
}

function popUp(winName,fotoName,scroll,menu,centrar,ancho,alto,posy,posx,escribir,foto1024,ancho1024,alto1024,textual,borde,fondo,imprimir) {
if (foto1024!='' && screen.width>1000 && foto1024!=null){
ancho=ancho1024;alto=alto1024;}
if(scroll!=''){lavariable='scrollbars='+scroll}
if(menu!=''){lavariable+=',menubar='+menu}
lavariable+=',width='+(ancho+20)+'px'+',height='+(alto+10)+'px';
if(posy!=''){lavariable+=',top='+posy;}
if(posx!=''){lavariable+=',left='+posx}
//es obligatorio llamar a las anteriores variables si se quiere llegar a una posterior
//ejemplo:popUp('','1_Jornada','no','no','yes',600,428,'','','img/jornada/grande/exterior.gif','img/jornada/grande/1024/exterior1024.jpg',950,690)
//otro ejemplo es:javascript:popUp('','Referencias_bibliográficas','no','no','yes',400,400,1,1,'yes','','','',texto1,'3px double SteelBlue','F2F2F2','y')
if(centrar!=''){
      posx = (!bw.ie) ? innerWidth/2-(ancho/2): document.body.clientWidth/2-(ancho/2);
      posy = (!bw.ie) ? innerHeight/2-(alto/2)+75: document.body.clientHeight/2-(alto/2)+60;
lavariable+=',top='+posy+',left='+posx;}
ventana=open(winName,fotoName,lavariable); 
if(escribir!=''){
if(foto1024!='' && screen.width>1000 && foto1024!=null){
colocarfoto(foto1024,fotoName,ancho,alto,textual,borde,fondo);
}
else{
colocarfoto(escribir,fotoName,ancho,alto,textual,borde,fondo);}
}}
function colocarfoto(lafoto,fotoName,ancho,alto,textual,borde,fondo){
if(bw.ie4){
alert("Es posible que encuentre problemas a la hora de visualizar las fotos con Internet Explorer 4. Le recomendamos actualice su navegador")}
g=''
if(textual=="" || textual==null){
a='<html><title>'+fotoName+'</title><body marginwidth="0" marginheight="0" topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0" bgcolor="#FFFFFF"><div id=carga style="position:absolute;;top:30px;left:100px;color: #385478;font-weight:bold;font-family:arial;font-size:14px">Cargando...</div>'
d='<div style=position:absolute;top:1px><a href="#" onclick="self.close();return false"><center><img SRC="'+lafoto+'" height="'+alto+'" width="'+ancho+'" border="1" style="border:1px solid white"></center></a></div>';}
else{
a='<html><title>'+fotoName+'</title><body marginwidth="0" marginheight="0" topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0" bgcolor="#FFFFFF" onblur=self.close()>'
d='<div style="position:absolute;top:4px;left:4px;border:'+borde+';padding:5px;width:98%;height:98%;background:'+fondo+'">'+textual+'</div>';}
e='</body></html>';

ventana.document.write(a+d+g+e); 
}
//---------FORM

	function comprobarform(formobj){
	// dialog message
	var alertMsg = "Por favor rellene los siguientes campos:\n";
	var l_Msg = alertMsg.length;
	
	for (var i = 0; i < fieldRequired.length; i++){
		var obj = formobj.elements[fieldRequired[i]];
		if (obj){
			switch(obj.type){
			case "select-one":
				if (obj.selectedIndex == -1 || obj.options[obj.selectedIndex].text == "" || obj.options[obj.selectedIndex].value == ""){
					alertMsg += " - " + fieldDescription[i] + "\n";
				}
				break;
			case "select-multiple":
				if (obj.selectedIndex == -1){
					alertMsg += " - " + fieldDescription[i] + "\n";
				}
				break;
			case "file":
			if (obj.value == "" || obj.value == null){
					alertMsg += " - " + fieldDescription[i] + "\n";
				}
				break;
			case "text":
			case "textarea":
				if (obj.value == "" || obj.value == null){
					alertMsg += " - " + fieldDescription[i] + "\n";
				}
				break;
			default:
			}
			if (obj.type == undefined){
				var blnchecked = false;
				for (var j = 0; j < obj.length; j++){
					if (obj[j].checked){
						blnchecked = true;
					}
				}
				if (!blnchecked){
					alertMsg += " - " + fieldDescription[i] + "\n";
				}
			}
		}
try{
if(alertMsg.length == l_Msg && fieldEmail[i]==1 && validateEmail(obj.value)==false){
alertMsg='Por favor, compruebe que el e-mail que ha escrito en --'+fieldDescription[i]+'-- se compone de: nombredeusuario+@+dominio+.+extensión. Por ejemplo: nombreusuario@servidordecorreo.com';
break
}	
if(alertMsg.length == l_Msg && fieldFecha[i]==1 && ValidateFecha(obj.value)==false){
alertMsg=errorFecha + " en el campo " + fieldDescription[i];
break
}}
catch(e){}
	}

if (alertMsg.length == l_Msg){
//document.formid.someter.disabled=true;
//document.formid.someter.value="Enviando...";
if(document.getElementById("someter")){
document.getElementById("someter").style.display="none";
document.getElementById("sometiendo").style.display="inline";}
return true;
	}
	else{
		alert(alertMsg);
		return false;
	} 
}

function validateEmail(formobj)
{

splitted = formobj.match("^(.+)@(.+)$");
    var regexp_user=/^\"?[\w-_\.]*\"?$/;
    var regexp_domain=/^[\w-\.]*\.[A-Za-z]{2,4}$/;
    var regexp_ip =/^\[\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\]$/;	 
						    if(splitted==null || (splitted[1] != null && splitted[1].match(regexp_user) == null) || (splitted[2] != null && splitted[2].match(regexp_domain) == null && splitted[2].match(regexp_ip) == null))
							{ 						
return false;							}					
							return true;	
}

/**
 * DHTML date validation script. Courtesy of SmartWebby.com (http://www.smartwebby.com/dhtml/)
 */
// Declaring valid date character, minimum year and maximum year
var dtCh= "/";
var minYear=2005;
var maxYear=2100;
var errorFecha;
function isInteger(s){
	var i;
    for (i = 0; i < s.length; i++){   
        // Check that current character is number.
        var c = s.charAt(i);
        if (((c < "0") || (c > "9"))) return false;
    }
    // All characters are numbers.
    return true;
}

function stripCharsInBag(s, bag){
	var i;
    var returnString = "";
    // Search through string's characters one by one.
    // If character is not in bag, append to returnString.
    for (i = 0; i < s.length; i++){   
        var c = s.charAt(i);
        if (bag.indexOf(c) == -1) returnString += c;
    }
    return returnString;
}

function daysInFebruary (year){
	// February has 29 days in any year evenly divisible by four,
    // EXCEPT for centurial years which are not also divisible by 400.
    return (((year % 4 == 0) && ( (!(year % 100 == 0)) || (year % 400 == 0))) ? 29 : 28 );
}
function DaysArray(n) {
	for (var i = 1; i <= n; i++) {
		this[i] = 31
		if (i==4 || i==6 || i==9 || i==11) {this[i] = 30}
		if (i==2) {this[i] = 29}
   } 
   return this
}

function isDate(dtStr){
	var daysInMonth = DaysArray(12)
	var pos1=dtStr.indexOf(dtCh)
	var pos2=dtStr.indexOf(dtCh,pos1+1)
	var strDay=dtStr.substring(0,pos1)
	var strMonth=dtStr.substring(pos1+1,pos2)
	var strYear=dtStr.substring(pos2+1)
	strYr=strYear
	if (strDay.charAt(0)=="0" && strDay.length>1) strDay=strDay.substring(1)
	if (strMonth.charAt(0)=="0" && strMonth.length>1) strMonth=strMonth.substring(1)
	for (var i = 1; i <= 3; i++) {
		if (strYr.charAt(0)=="0" && strYr.length>1) strYr=strYr.substring(1)
	}
	month=parseInt(strMonth)
	day=parseInt(strDay)
	year=parseInt(strYr)
	if (pos1==-1 || pos2==-1){
		errorFecha="El formato debería ser : mm/dd/yyyy";
		return false
	}
	if (strMonth.length<1 || month<1 || month>12){
		errorFecha="Por favor, inserte un mes válido";
		return false
	}
	if (strDay.length<1 || day<1 || day>31 || (month==2 && day>daysInFebruary(year)) || day > daysInMonth[month]){
		errorFecha="Por favor, escribe una fecha válida";
		return false
	}
	if (strYear.length != 4 || year==0 || year<minYear || year>maxYear){
		errorFecha="Por favor inserte un año válido entre "+minYear+" y "+maxYear;
		return false
	}
	if (dtStr.indexOf(dtCh,pos2+1)!=-1 || isInteger(stripCharsInBag(dtStr, dtCh))==false){
		errorFecha="Por favor, inserte una fecha válida";
		return false
	}
return true
}

function ValidateFecha(dt){
	if (isDate(dt)==false){
		return false
	}
    return true
 }
function detectjava(versionOk)
{
if(document.getElementById("avisoJava")){
noJava="Hemos detectado que no tiene el plug-in de java"
oldJava="Hemos detectado que su plug-in de Java está anticuado con respecto a la versión que nosotros utilizamos";
noJava2=". Si su navegador de internet no le indica desde dónde puede instalarse dicho plug-in, pulse <a href='http://java.com/es/download/windows_xpi.jsp' target='_blank' class='rojo'>aquí </a> y abrirá un enlace desde donde podrá descargárselo.<br><br>";
avisoJ=new lib_obj("avisoJava")
if (document.applets[0]!=null || navigator.javaEnabled()==false){
try{var app = document.applets[0];
var version = app.getVersion();
var vendor = app.getVendor();	
if(versionOk>version){avisoJ.writeIt(oldJava,'<div class="naranja">','</div>')}}
catch(e){avisoJ.writeIt(noJava+noJava2,'<div class="naranja">','</div>');}
}
else{
avisoJ.writeIt(noJava+noJava2,'<div class="naranja">','</div>');}
}
}

function PostBack(formulario,url,valores)
  {
var FunArg=PostBack.arguments;
var LenArg=PostBack.arguments.length;
for (var i=2; i < LenArg; i+=2) {
 document.forms[formulario][FunArg[i]].value=FunArg[i+1];
   }
	if(url!=""){
	document.forms[formulario].action=url;
	}
   document.forms[formulario].submit()
	 }

var keybYNNM = new keybEdit('yn');
var keybNumericNM = new keybEdit('01234567890');
var keybAlphaNM = new keybEdit('abcdefghijklmnopqurstuvwxyáéíóú');
var keybAlphaNumericNM = new keybEdit('abcdefghiáéíóújklmnopqurstuvwxy01234567890');
var keybDecimalNM = new keybEdit('01234567890.');
var keybDateNM = new keybEdit('01234567890/');;

function keybEdit(strValid, strMsg) {
	this.valid = strValid.toLowerCase() + strValid.toUpperCase();
	
	if((strMsg == null) || (typeof(strMsg) == 'undefined'))
		this.message = '';
	else
		this.message = strMsg;

	//	Methods
	this.getValid = keybEditGetValid;
	this.getMessage = keybEditGetMessage;
	
	function keybEditGetValid() {
			return this.valid.toString();
	}
	
	function keybEditGetMessage() {
			return this.message;
	}
}


function desplegar(lacapa){
if (document.getElementById(lacapa).style.display=="none"){
document.getElementById(lacapa).style.display="block"
}
else{
document.getElementById(lacapa).style.display="none"
}}
 function editKeyBoard(objForm, objKeyb) {
	strWork = objKeyb.getValid();
	strMsg = '';							
	blnValidChar = false;					

	// Part 1: Validar
	if(!blnValidChar)
		for(i=0;i < strWork.length;i++)
			if(window.event.keyCode == strWork.charCodeAt(i)) {
				blnValidChar = true;

				break;
			}

	// Part 2: errores
	if(!blnValidChar) {
		if(objKeyb.getMessage().toString().length != 0)
			alert('Error: ' + objKeyb.getMessage());

		window.event.returnValue = false;		// Clear invalid character
		objForm.focus();						// Set focus
	}
}

//-->
<!-- 

 -->