<? require_once("checar.php"); 
session_name("SESION");
session_start(); 
require_once("coneccion.php");
$id=$_SESSION[id];
$pwd=$_SESSION[password];
$_SESSION[lugar]=5;
//	//alain=(document.forma.librosv3.value + document.forma.publicacionesv3.value + document.forma.tesis3.value + document.forma.documentos3.value + document.forma.mapas3.value + document.forma.micro3.value + document.diapositivas3.tesis3.value + document.forma.peliculas3.value + document.forma.discos3.value + document.forma.video3.value + document.forma.cd3.value + document.forma.digital3.value+document.forma.digital3.value)
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>.::Estadistica de Bibliotecas::.</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" type="text/css" href="estilos1.css">
<script type="text/javascript" src="funciones5.js"></script>


<script LANGUAGE="JavaScript">


function sumas(x){
//alert("alain");
	
/*	var uno=parseInt(document.forma.librosv3.value);
	var dos=parseInt(document.forma.publicacionesv3.value);
	var tres=parseInt(document.forma.tesis3.value);
	var cuatro=parseInt(document.forma.documentos3.value);
	var cinco=parseInt(document.forma.mapas3.value);
	var seis=parseInt(document.forma.micro3.value);
	var siete=parseInt(document.forma.diapositivas3.value);
	var ocho=parseInt(document.forma.peliculas3.value);
	var nueve=parseInt(document.forma.discos3.value);
	var diez=parseInt(document.forma.video3.value);
	var once=parseInt(document.forma.cd3.value);
	var doce=parseInt(document.forma.digital3.value);
	var trece=parseInt(document.forma.disquetes3.value);*/
//	sumaa=uno+dos+tres+cuatro+cinco+seis+siete+ocho+nueve+diez+once+doce+trece;
//	document.forma.suma.value=sumaa;
	var sumatoria=0;
	if(document.forma.librosv3.value>0)sumatoria=sumatoria+parseInt(document.forma.librosv3.value);
	if(document.forma.publicacionesv3.value>0)sumatoria=sumatoria+parseInt(document.forma.publicacionesv3.value);
	if(document.forma.tesis3.value>0)sumatoria=sumatoria+parseInt(document.forma.tesis3.value);
	if(document.forma.documentos3.value>0)sumatoria=sumatoria+parseInt(document.forma.documentos3.value);
	if(document.forma.mapas3.value>0)sumatoria=sumatoria+parseInt(document.forma.mapas3.value);
	if(document.forma.micro3.value>0)sumatoria=sumatoria+parseInt(document.forma.micro3.value);
	if(document.forma.diapositivas3.value>0)sumatoria=sumatoria+parseInt(document.forma.diapositivas3.value);
	if(document.forma.peliculas3.value>0)sumatoria=sumatoria+parseInt(document.forma.peliculas3.value);
	if(document.forma.discos3.value>0)sumatoria=sumatoria+parseInt(document.forma.discos3.value);
	if(document.forma.video3.value>0)sumatoria=sumatoria+parseInt(document.forma.video3.value);									
	if(document.forma.cd3.value>0)sumatoria=sumatoria+parseInt(document.forma.cd3.value);
	if(document.forma.digital3.value>0)sumatoria=sumatoria+parseInt(document.forma.digital3.value);
	if(document.forma.disquetes3.value>0)sumatoria=sumatoria+parseInt(document.forma.disquetes3.value);			
	
//	quince=parseInt(document.forma.librosv3.value)+parseInt(document.forma.publicacionesv3.value)+parseInt(document.forma.tesis3.value)+parseInt(document.forma.documentos3.value)+parseInt(document.forma.mapas3.value)+parseInt(document.forma.micro3.value)+parseInt(document.forma.diapositivas3.value)+parseInt(document.forma.peliculas3.value)+parseInt(document.forma.discos3.value)+parseInt(document.forma.video3.value)+parseInt(document.forma.cd3.value)+parseInt(document.forma.digital3.value)+parseInt(document.forma.disquetes3.value);	
	document.forma.suma.value=sumatoria;	
	}
	

function checar(myfield,e,dec){

	valor= myfield.value;
	nombre= myfield.name;	

//	cad = nombre.substr (0, 7); 


//	cad=((myfield.name).substr(0,nombre.length-1))+1;	
//	alert(nombre);
	if(valor>0){
		if(nombre=="librost2"){
			forma.librost[0].disabled=false;		
			forma.librost[1].disabled=false;		
			forma.librost[2].disabled=true;
			if(!(forma.librost[0].checked))forma.librost[1].checked=true;				
			}
		if(nombre=="publicacionest2"){
			forma.publicacionest[0].disabled=false;		
			forma.publicacionest[1].disabled=false;		
			forma.publicacionest[2].disabled=true;
			if(!(forma.publicacionest[0].checked))forma.publicacionest[1].checked=true;				
			}	
		if(nombre=="tesis2"){
			forma.tesis[0].disabled=false;		
			forma.tesis[1].disabled=false;		
			forma.tesis[2].disabled=true;
			if(!(forma.tesis[0].checked))forma.tesis[1].checked=true;				
			}	
		if(nombre=="documentos2"){
			forma.documentos[0].disabled=false;		
			forma.documentos[1].disabled=false;		
			forma.documentos[2].disabled=true;
			if(!(forma.documentos[0].checked))forma.documentos[1].checked=true;				
			}									
		if(nombre=="mapas2"){
			forma.mapas[0].disabled=false;		
			forma.mapas[1].disabled=false;		
			forma.mapas[2].disabled=true;
			if(!(forma.mapas[0].checked))forma.mapas[1].checked=true;				
			}	
		}

	if(valor==0){
		if(nombre=="librost2"){
			forma.librost[0].disabled=true;		
			forma.librost[1].disabled=true;		
			forma.librost[2].disabled=false;
			forma.librost[2].checked=true;				
			}
		if(nombre=="publicacionest2"){
			forma.publicacionest[0].disabled=true;		
			forma.publicacionest[1].disabled=true;		
			forma.publicacionest[2].disabled=false;
			forma.publicacionest[2].checked=true;				
			}			
		if(nombre=="tesis2"){
			forma.tesis[0].disabled=true;		
			forma.tesis[1].disabled=true;		
			forma.tesis[2].disabled=false;
			forma.tesis[2].checked=true;				
			}	
		if(nombre=="documentos2"){
			forma.documentos[0].disabled=true;		
			forma.documentos[1].disabled=true;		
			forma.documentos[2].disabled=false;
			forma.documentos[2].checked=true;				
			}	
		if(nombre=="mapa2"){
			forma.mapas[0].disabled=true;		
			forma.mapas[1].disabled=true;		
			forma.mapas[2].disabled=false;
			forma.mapas[2].checked=true;				
			}		
		}	
	if(nombre=="diapositivas2" || nombre=="peliculas2" || nombre=="discos2" || nombre=="video2"){
		if(document.forma.diapositivas2.value>0 || document.forma.peliculas2.value>0 || document.forma.discos2.value>0 || document.forma.video2.value>0){					
			forma.material[0].disabled=false;		
			forma.material[1].disabled=false;		
			forma.material[2].disabled=true;
			if(!(forma.material[0].checked))forma.material[1].checked=true;				

			}
		if(!(document.forma.diapositivas2.value>0) && !(document.forma.peliculas2.value>0) && !(document.forma.discos2.value>0) && !(document.forma.video2.value>0)){					
			forma.material[0].disabled=true;		
			forma.material[1].disabled=true;		
			forma.material[2].disabled=false;
			forma.material[2].checked=true;							
			}		
		}	
		
	if(nombre=="cd2" || nombre=="digital2" || nombre=="disquetes2"){
		if(document.forma.cd2.value>0 || document.forma.digital2.value>0 || document.forma.disquetes2.value>0){					
			forma.bases[0].disabled=false;		
			forma.bases[1].disabled=false;		
			forma.bases[2].disabled=true;
			if(!(forma.bases[0].checked))forma.bases[1].checked=true;				

			}
		if(!(document.forma.cd2.value>0) && !(document.forma.digital2.value>0) && !(document.forma.disquetes2.value>0)){					
			forma.bases[0].disabled=true;		
			forma.bases[1].disabled=true;		
			forma.bases[2].disabled=false;
			forma.bases[2].checked=true;							
			}		
		}				
	}



function menu()
	{
	location.href="menu.php";
	}


function numbersonly(myfield, e, dec)
{
var key;
var keychar;
if (window.event)
   key = window.event.keyCode;
else if (e)
   key = e.which;
else
{	//Capt_Val();
   	return true;
}
keychar = String.fromCharCode(key);
// control keys
if ((key==null) || (key==0) || (key==8) || 
    (key==9) || (key==13) || (key==27) )
{   
return true;
}
else if ((("0123456789").indexOf(keychar) > -1))
{	//Capt_Val();
   	return true;
}
else if (dec && (keychar == "."))
   {
   myfield.form.elements[dec].focus();
   
   return false;
   }
else
   return false;
}	

function salir(){
	location.href="salir.php";
	}
	
</script>
<style type="text/css">
.foot {	
	
	margin:0 auto;
	width:920px;
	padding:10px;
	margin-top:20px;
	background:#545454 url(bg-foot.jpg) no-repeat center top;
	
	position:relative;
	font-size:11px;
	/*text-transform:uppercase;*/
	line-height:1.4em;
}


.foot-texto {
	text-align:left;
	color:#ddd;
	padding:10px;
	padding-left:80px;
	background: url(bg-escudo-sonora.jpg) no-repeat  left center;

}

.foot-texto strong {
	color:#FFF;
	text-transform:uppercase;
}

.foot-texto a {
	color:#ddd;
}

.logo-ns-foot {
	background:url(logo-ns-foot.jpg) no-repeat center;
	width:137px;
	height:43px;
	position:absolute;
	top:25px;
	right:15px;
}
/*.contacto-aviso {
	background: #FFC63B url(bg-menu-portales-a-color.jpg) repeat-x bottom;
	padding:10px 5px;
	color:#ffffff;*/
	
.contacto-aviso {
	background: #3E5D72 url(bg-menu-res.jpg) repeat-x bottom;
	padding:10px 5px;
	color:#3E5D72;
}

<!--
@font-face { 
@font-family: MiFuente; 
src: url('http://148.235.6.240/upeo/insreal/geo_sans_light/GeosansLight.ttf'); 
} 
-->
</style>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<form name="forma">
<?
$sql = "SELECT * FROM cie_cct where row_id='$_SESSION[id]'";
$result = mysql_query($sql);  
$row = mysql_fetch_array($result);

$acervo02 = "SELECT * FROM acervo where id='$_SESSION[id]'";
$acervo01 = mysql_query($acervo02);  
if($acervo01!='') $acervo = mysql_fetch_array($acervo01);

$servi02 = "SELECT sala1, domicilio1 FROM servicios where id='$_SESSION[id]'";
$servi01 = mysql_query($servi02);  
if($servi01!='') $servi = mysql_fetch_array($servi01);
?>
<center>
<table width="806" border="0">
<tr> <td colspan="4" align="center"><img src="header.png" width="1000" height="120"></td> </tr>
<tr class="contacto-aviso">
    <td height="35" colspan="4" align="center" valign="bottom"><font face="Arial, Helvetica, sans-serif" color="#FFFFFF" size="+2">S</font><font face="Arial, Helvetica, sans-serif" color="#FFFFFF">ISTEMA  DE </font><font color="#FFFFFF" size="+2" face="Arial, Helvetica, sans-serif">B</font><font face="Arial, Helvetica, sans-serif" color="#FFFFFF">IBLIOTECAS - </font><font color="#FFFFFF" size="+2" face="Arial, Helvetica, sans-serif">2014</font></td>
    <!--<td height="39" colspan="4" align="left" ><font face="MiFuente" color="#E9690B" size="+2">SEGUIMIENTO de Estructuras Educativas</font></td>-->
  </tr>
</table>
	<table width="1000" border="0">
	<tr>
		<td width="71"><font face="Arial, Helvetica, sans-serif" color="#000000" size="-1">ESCUELA:</font></td>
		<td width="767"> <font color="#17375E" face="Arial, Helvetica, sans-serif"><strong><? echo $row["nombrect"];?></strong></font> </td> 
		<td width="39"><font face="Arial, Helvetica, sans-serif" color="#000000" size="-1">CCT:</font></td>
		<td width="105"> <font face="Arial, Helvetica, sans-serif" color="#17375E"><strong><? echo $row["clavecct"];?></strong></font> </td> 
	</tr>

	</table>
</center>



<div id="transparencia"><div id="transparenciaMensaje"></div>
</div>    


<br>
<center> 	
<TABLE border=0  width="850" cellpadding=0 cellspacing=0 bordercolor="#FFFFFF" rules="none" class="tabla1" >
	<tr>
	    <td align="left"><button id="botonEnviar" onClick="menu()" type="button">Ir al menu</button></td>
    	<td align="right" ><strong><input type="button" value="SALIR" onClick="salir();"></strong></td>
    </tr>
    <tr>
	    <td colspan="2"><button id="botonEnviar" onClick="validaForm()" type="button" <? if($_SESSION[folio]==1) echo "disabled"; ?>>Guardar</button></td>
	</tr>
</TABLE>

<TABLE class="tabla1" width="850" align="center"  border=1 rules="none" cellspacing=0 cellpadding=2 bordercolor="#E4E4E4" >
  <tr> 
    <td colspan="6" bgcolor="#E4E4E4"><font size="2" face="Arial"><strong>V. ACERVO</strong></font></td>
  </tr>
  <tr bgcolor="#E4E4E4"> 
    <td width="12" valign="top"><font size="2" face="Arial">1.</font></td>
    <td colspan="6" ><font size="2" face="Arial">En <strong>adquisicion anual</strong>, escriba el numero total de adquisiciones efectuadas durante el a&ntilde;o; no considere adquisiciones para reposicion.<br>
      En <strong>existencia total</strong>, registre el numero de material existente mas la adiquisicion anual en la biblioteca al mes de de diciembre del a&ntilde;o al que corresponde esta estadistica.<br>
    En <strong>consultados </strong>registre el numero total de los materiales consultados durante el a&ntilde;o.</font></td>
  </tr>  
  <tr > 
	<td>&nbsp;</td>
    <td width="178">&nbsp;</td>
    
	<td colspan="2" align="center"><font size="2" face="Arial"><strong>LIBROS</strong><BR>
	</font>	  <HR></td>
	
    <td colspan="2" align="center"><font size="2" face="Arial"><strong>PUBLICACIONES PERIODICAS</strong><BR>
    </font>      <HR></td>
  </tr>
  <tr > 
	<td>&nbsp;</td>
	<td bgcolor="#EFEFEF">&nbsp;</td>
	<td width="98" align="center" bgcolor="#EFEFEF"><font size="2" face="Arial">TITULOS</font></td>        
	<td width="193" align="center" bgcolor="#EFEFEF"><font size="2" face="Arial">VOLUMENES</font></td>
    <td width="132" align="center" bgcolor="#EFEFEF"><font size="2" face="Arial">TITULOS</font></td>
    <td width="201" align="center" bgcolor="#EFEFEF"><font size="2" face="Arial">POR VOLUMEN</font></td>
  </tr>  
  <tr > 
	<td>&nbsp;</td>
	<td bgcolor="#EFEFEF"><font size="2" face="Arial">ADQUISICION ANUAL</font></td>
	<td width="98" align="center" bgcolor="#EFEFEF"><input size="7" maxlength="7" name="librost1" value="<? echo $acervo[1];?>" <? if($_SESSION[folio]==1)echo "disabled";?>></td>        
	<td width="193" align="center" bgcolor="#EFEFEF"><input size="7" maxlength="7" name="librosv1" value="<? echo $acervo[4];?>"<? if($_SESSION[folio]==1)echo "disabled";?>></td>
    <td width="132" align="center" bgcolor="#EFEFEF"><input size="7" maxlength="7" name="publicacionest1" value="<? echo $acervo[7];?>"<? if($_SESSION[folio]==1)echo "disabled";?>></td>
    <td width="201" align="center" bgcolor="#EFEFEF"><input size="7" maxlength="7" name="publicacionesv1" value="<? echo $acervo[10];?>"<? if($_SESSION[folio]==1)echo "disabled";?>></td>
  </tr>  
  <tr > 
	<td>&nbsp;</td>
	<td bgcolor="#EFEFEF"><font size="2" face="Arial">EXISTENCIA TOTAL</font></td>
	<td width="98" align="center" bgcolor="#EFEFEF"><input size="7" maxlength="7" name="librost2" value="<? echo $acervo[2];?>" onChange="return checar(this,event)" <? if($_SESSION[folio]==1)echo "disabled";?>></td>        
	<td width="193" align="center" bgcolor="#EFEFEF"><input size="7" maxlength="7" name="librosv2" value="<? echo $acervo[5];?>"<? if($_SESSION[folio]==1)echo "disabled";?>></td>
    <td width="132" align="center" bgcolor="#EFEFEF"><input size="6" maxlength="6" name="publicacionest2" value="<? echo $acervo[8];?>" onChange="return checar(this,event)" <? if($_SESSION[folio]==1)echo "disabled";?>></td>
    <td width="201" align="center" bgcolor="#EFEFEF"><input size="6" maxlength="6" name="publicacionesv2" value="<? echo $acervo[11];?>"<? if($_SESSION[folio]==1)echo "disabled";?>></td>
  </tr>  
  <tr > 
	<td>&nbsp;</td>
	<td bgcolor="#EFEFEF"><font size="2" face="Arial">CONSULTADOS</font></td>
	<td width="98" align="center" bgcolor="#EFEFEF"><input size="7" maxlength="7" name="librost3" value="<? echo $acervo[3];?>"<? if($_SESSION[folio]==1)echo "disabled";?>></td>        
	<td width="193" align="center" bgcolor="#EFEFEF"><input size="7" maxlength="7" name="librosv3" value="<? echo $acervo[6];?>" onChange="sumas();"<? if($_SESSION[folio]==1)echo "disabled";?> onKeyPress="return numbersonly(this, event)"></td>
    <td width="132" align="center" bgcolor="#EFEFEF"><input size="6" maxlength="6" name="publicacionest3" value="<? echo $acervo[9];?>"<? if($_SESSION[folio]==1)echo "disabled";?> onKeyPress="return numbersonly(this, event)"></td>
    <td width="201" align="center" bgcolor="#EFEFEF"><input size="6" maxlength="6" name="publicacionesv3" value="<? echo $acervo[12];?>" onChange="sumas();"<? if($_SESSION[folio]==1)echo "disabled";?> onKeyPress="return numbersonly(this, event)"></td>
  </tr>  
  <tr > 
	<td>&nbsp;</td>
	<td colspan="5" bgcolor="#EFEFEF"><font size="1" face="Arial"><strong>- Los vol&uacute;menes deber&aacute;n ser siempre igual o mayor que los t&iacute;tulos, teniendo que haber al menos un t&iacute;tulo para que existan volumenes</strong></font></td>
	</tr>    
  <tr > 
	<td>&nbsp;</td>
	<td>&nbsp;</td>
	<td width="98" align="center"><font size="2" face="Arial">TESIS</font></td>        
	<td width="193" align="center"><font size="2" face="Arial">DOCUMENTOS, INFORMES TECNICOS Y FOLLETOS</font></td>
    <td width="132" align="center"><font size="2" face="Arial">MAPAS</font></td>
    <td width="201" align="center"><font size="2" face="Arial">MICROFORMATOS (UNIDADES)</font></td>
  </tr>  
  <tr > 
	<td>&nbsp;</td>
	<td><font size="2" face="Arial">ADQUISICION ANUAL</font></td>
	<td width="98" align="center"><input size="6" maxlength="6" name="tesis1" value="<? echo $acervo[13];?>"<? if($_SESSION[folio]==1)echo "disabled";?>></td>        
	<td width="193" align="center"><input size="7" maxlength="7" name="documentos1" value="<? echo $acervo[16];?>"<? if($_SESSION[folio]==1)echo "disabled";?>></td>
    <td width="132" align="center"><input size="5" maxlength="5" name="mapas1" value="<? echo $acervo[19];?>"<? if($_SESSION[folio]==1)echo "disabled";?>></td>
    <td width="201" align="center"><input size="6" maxlength="6" name="micro1" value="<? echo $acervo[22];?>"<? if($_SESSION[folio]==1)echo "disabled";?>></td>
  </tr>  
  <tr > 
	<td>&nbsp;</td>
	<td><font size="2" face="Arial">EXISTENCIA TOTAL</font></td>
	<td width="98" align="center"><input size="6" maxlength="6" name="tesis2" value="<? echo $acervo[14];?>" onChange="return checar(this,event)" <? if($_SESSION[folio]==1)echo "disabled";?> ></td>        
	<td width="193" align="center"><input size="7" maxlength="7" name="documentos2" value="<? echo $acervo[17];?>" onChange="return checar(this,event)" <? if($_SESSION[folio]==1)echo "disabled";?>></td>
    <td width="132" align="center"><input size="5" maxlength="5" name="mapas2" value="<? echo $acervo[20];?>" onChange="return checar(this,event)" <? if($_SESSION[folio]==1)echo "disabled";?>></td>
    <td width="201" align="center"><input size="6" maxlength="6" name="micro2" value="<? echo $acervo[23];?>" <? if($_SESSION[folio]==1)echo "disabled";?> ></td>
  </tr>  
  <tr > 
	<td>&nbsp;</td>
	<td><font size="2" face="Arial">CONSULTADOS</font></td>
	<td width="98" align="center"><input size="6" maxlength="6" name="tesis3" value="<? echo $acervo[15];?>" onChange="sumas();"<? if($_SESSION[folio]==1)echo "disabled";?> onKeyPress="return numbersonly(this, event)"></td>        
	<td width="193" align="center"><input size="7" maxlength="7" name="documentos3" value="<? echo $acervo[18];?>" onChange="sumas()"<? if($_SESSION[folio]==1)echo "disabled";?> onKeyPress="return numbersonly(this, event)" ></td>
    <td width="132" align="center"><input size="5" maxlength="5" name="mapas3" value="<? echo $acervo[21];?>" onChange="sumas()"<? if($_SESSION[folio]==1)echo "disabled";?> onKeyPress="return numbersonly(this, event)"></td>
    <td width="201" align="center"><input size="6" maxlength="6" name="micro3" value="<? echo $acervo[24];?>" onChange="sumas()"<? if($_SESSION[folio]==1)echo "disabled";?> onKeyPress="return numbersonly(this, event)"></td>
  </tr>  
<TR>
<td colspan="2">&nbsp;</td>
<td colspan="4" align="center"><font size="2" face="Arial"><strong>MATERIAL AUDIOVISUAL</strong><BR>
</font>  <HR></td>
</TR>
  <tr > 
	<td>&nbsp;</td>
	<td>&nbsp;</td>
	<td width="98" align="center"><font size="2" face="Arial">DIAPOSITIVAS</font></td>        
	<td width="193" align="center"><font size="2" face="Arial">PELICULAS, VIDEOCASETES</font></td>
    <td width="132" align="center"><font size="2" face="Arial">DISCOS, CASETES, DISCOS COMPACTOS</font></td>
    <td width="201" align="center"><font size="2" face="Arial">VIDEODISCOS, DISCOS DE VIDEO DIGITAL (DVD) O BLU-RAY</font></td>
  </tr>  
  <tr > 
	<td>&nbsp;</td>
	<td><font size="2" face="Arial">ADQUISICION ANUAL</font></td>
	<td width="98" align="center"><input size="7" maxlength="7" name="diapositivas1" value="<? echo $acervo[25];?>"<? if($_SESSION[folio]==1)echo "disabled";?>></td>
	<td width="193" align="center"><input size="5" maxlength="5" name="peliculas1" value="<? echo $acervo[28];?>"<? if($_SESSION[folio]==1)echo "disabled";?>></td>
    <td width="132" align="center"><input size="5" maxlength="5" name="discos1" value="<? echo $acervo[31];?>"<? if($_SESSION[folio]==1)echo "disabled";?>></td>
    <td width="201" align="center"><input size="5" maxlength="5" name="video1" value="<? echo $acervo[34];?>"<? if($_SESSION[folio]==1)echo "disabled";?>></td>
  </tr>  
  <tr > 
	<td>&nbsp;</td>
	<td><font size="2" face="Arial">EXISTENCIA TOTAL</font></td>
	<td width="98" align="center"><input size="7" maxlength="7" name="diapositivas2" value="<? echo $acervo[26];?>" onChange="return checar(this,event)" <? if($_SESSION[folio]==1)echo "disabled";?>></td>        
	<td width="193" align="center"><input size="5" maxlength="5" name="peliculas2" value="<? echo $acervo[29];?>" onChange="return checar(this,event)" <? if($_SESSION[folio]==1)echo "disabled";?>></td>
    <td width="132" align="center"><input size="5" maxlength="5" name="discos2" value="<? echo $acervo[32];?>" onChange="return checar(this,event)" <? if($_SESSION[folio]==1)echo "disabled";?>></td>
    <td width="201" align="center"><input size="5" maxlength="5" name="video2" value="<? echo $acervo[35];?>" onChange="return checar(this,event)" <? if($_SESSION[folio]==1)echo "disabled";?>></td>
  </tr>  
  <tr > 
	<td>&nbsp;</td>
	<td><font size="2" face="Arial">CONSULTADOS</font></td>
	<td width="98" align="center"><input size="7" maxlength="7" name="diapositivas3" value="<? echo $acervo[27];?>" onChange="sumas();"<? if($_SESSION[folio]==1)echo "disabled";?> onKeyPress="return numbersonly(this, event)"></td>        
	<td width="193" align="center"><input size="5" maxlength="5" name="peliculas3" value="<? echo $acervo[30];?>" onChange="sumas();"<? if($_SESSION[folio]==1)echo "disabled";?> onKeyPress="return numbersonly(this, event)"></td>
    <td width="132" align="center"><input size="5" maxlength="5" name="discos3" value="<? echo $acervo[33];?>" onChange="sumas();"<? if($_SESSION[folio]==1)echo "disabled";?> onKeyPress="return numbersonly(this, event)"></td>
    <td width="201" align="center"><input size="5" maxlength="5" name="video3" value="<? echo $acervo[36];?>" onChange="sumas();"<? if($_SESSION[folio]==1)echo "disabled";?> onKeyPress="return numbersonly(this, event)"></td>
  </tr>  
<TR>
<td colspan="2">&nbsp;</td>
<td colspan="4" align="center"><font size="2" face="Arial"><strong>BASES DE DATOS</strong><BR>
</font>  <HR></td>
</TR>
  <tr > 
	<td>&nbsp;</td>
	<td>&nbsp;</td>
	<td width="98" align="center"><font size="2" face="Arial">DISCOS COMPACTOS</font></td>        
	<td width="193" align="center"><font size="2" face="Arial">DISCOS DE VIDEO DIGITAL (DVD)</font></td>
    <td width="132" align="center"><font size="2" face="Arial">DISQUETES O USB</font></td>
    <td width="201" align="center">&nbsp;</td>
  </tr>  
  <tr > 
	<td>&nbsp;</td>
	<td><font size="2" face="Arial">ADQUISICION ANUAL</font></td>
	<td width="98" align="center"><input size="7" maxlength="7" name="cd1" value="<? echo $acervo[37];?>"<? if($_SESSION[folio]==1)echo "disabled";?> onKeyPress="return numbersonly(this, event)"></td>        
	<td width="193" align="center"><input size="5" maxlength="5" name="digital1" value="<? echo $acervo[40];?>"<? if($_SESSION[folio]==1)echo "disabled";?> onKeyPress="return numbersonly(this, event)"></td>
    <td width="132" align="center"><input size="5" maxlength="5" name="disquetes1" value="<? echo $acervo[43];?>"<? if($_SESSION[folio]==1)echo "disabled";?> onKeyPress="return numbersonly(this, event)"></td>
    <td width="201" align="center">&nbsp;</td>
  </tr>  
  <tr > 
	<td>&nbsp;</td>
	<td><font size="2" face="Arial">EXISTENCIA TOTAL</font></td>
	<td width="98" align="center"><input size="7" maxlength="7" name="cd2" value="<? echo $acervo[38];?>" onChange="return checar(this,event)" <? if($_SESSION[folio]==1)echo "disabled";?> onKeyPress="return numbersonly(this, event)"></td>        
	<td width="193" align="center"><input size="5" maxlength="5" name="digital2" value="<? echo $acervo[41];?>" onChange="return checar(this,event)" <? if($_SESSION[folio]==1)echo "disabled";?> onKeyPress="return numbersonly(this, event)"></td>
    <td width="132" align="center"><input size="5" maxlength="5" name="disquetes2" value="<? echo $acervo[44];?>" onChange="return checar(this,event)" <? if($_SESSION[folio]==1)echo "disabled";?> onKeyPress="return numbersonly(this, event)"></td>
    <td width="201" align="center">&nbsp;</td>
  </tr>  
  <tr > 
	<td>&nbsp;</td>
	<td><font size="2" face="Arial">CONSULTADOS</font></td>
	<td width="98" align="center"><input size="7" maxlength="7" name="cd3" value="<? echo $acervo[39];?>" onChange="sumas();"<? if($_SESSION[folio]==1)echo "disabled";?> onKeyPress="return numbersonly(this, event)"></td>        
	<td width="193" align="center"><input size="5" maxlength="5" name="digital3" value="<? echo $acervo[42];?>" onChange="sumas();"<? if($_SESSION[folio]==1)echo "disabled";?> onKeyPress="return numbersonly(this, event)"></td>
    <td width="132" align="center"><input size="5" maxlength="5" name="disquetes3" value="<? echo $acervo[45];?>" onChange="sumas();"<? if($_SESSION[folio]==1)echo "disabled";?> onKeyPress="return numbersonly(this, event)"></td>
    <td width="201" align="center">&nbsp;</td>
  </tr>  
  <tr>
  <td>&nbsp;  </td>
  <td colspan="5"><font size="2" face="Arial"><strong>NOTA:</strong> La suma de todos los materiales consultados durante el a&ntilde;o -<em> sin incluir libros (t&iacute;tulos), ni publicaciones peri&oacute;dicas (t&iacute;tulos)-</em>, debe ser igual a la suma de pr&eacute;stamo en sala y pr&eacute;stamo a domicilio, reportados en la pregunta 1 de la seccion III.</font>&nbsp;&nbsp;<strong>&lt; <font color="#FF0000" face="Arial, Helvetica, sans-serif"><? echo $servi[0]+$servi[1]; ?></font> &gt;</strong> </td>
  </tr>
  <tr>
  <td>&nbsp;  </td>
  <td colspan="2"><font size="2" face="Arial"><strong>SUMA DE MATERIALES CONSULTADOS</strong></font></td>
  <TD colspan="5"><input type="text" name="suma" readonly value="<? echo $acervo[53]; ?>"<? if($_SESSION[folio]==1)echo "disabled";?>></font></TD>
  </tr>  
  <tr>
  <td colspan='6'>&nbsp;</td>
  </tr>
  </TABLE>
<TABLE class="tabla1" width="850" align="center"  border=1 rules="none" cellspacing=0 cellpadding=2 bordercolor="#E4E4E4" >
  <TR bgcolor="#E4E4E4">
  <TD width="10"><font size="2" face="Arial">2.</font></TD>
  <TD colspan="5"><font size="2" face="Arial">&iquest;Considera que el acervo de la biblioteca est&aacute; actualizado?</font></TD>
  </TR>
  <tr  bgcolor="#E4E4E4">
  <td>&nbsp;</td>
  <td colspan="5"><font size="2" face="Arial">Marque segun corresponda.</font></td>
  </tr>
  <tr>
  <td>&nbsp;</td>
  <td width="397">&nbsp;</td>  
  <td width="46" align="center"><font size="2" face="Arial">SI</font></td>
  <td width="66" align="center"><font size="2" face="Arial">NO</font></td>
  <td width="124" align="center"><font size="2" face="Arial">NO HAY EXISTENCIA</font></td>
  <td width="171">&nbsp;</td>
  </tr>
  <tr>
  <td>&nbsp;</td>
  <td><font size="2" face="Arial">LIBROS</font></td>
  <td width="46" align="center"><input class="Radio" type="radio" name="librost" value="1" <? if ($acervo[46]==2) echo "checked"; if ($acervo[46]!=2 and $acervo[46]!=1) echo "disabled"; ?> <? if($_SESSION[folio]==1)echo "disabled";?>></td>
  <td width="66" align="center"><input class="Radio" type="radio" name="librost" value="2" <? if ($acervo[46]==1) echo "checked"; 
  if ($acervo[46]!=2 and $acervo[46]!=1) //echo "disabled";?> <? if($_SESSION[folio]==1)echo "disabled";?>></td>
  <td width="124" align="center"><input class="Radio" type="radio" name="librost" value="3" <? if ($acervo[46]==0) echo "checked"; if ($acervo[46]==2 || $acervo[46]==1) echo "disabled";?> <? if($_SESSION[folio]==1)echo "disabled";?>></td>
  <td>&nbsp;</td>  
  </tr>  
  <tr>
  <td>&nbsp;</td>
  <td><font size="2" face="Arial">PUBLICACIONES</font></td>
  <td align="center"><input class="Radio" type="radio" name="publicacionest" value="1" <? if ($acervo[47]==2) echo "checked"; if ($acervo[47]!=2 and $acervo[47]!=1) echo "disabled";?> <? if($_SESSION[folio]==1)echo "disabled";?>></td>
  <td align="center"><input class="Radio" type="radio" name="publicacionest" value="2" <? if ($acervo[47]==1) echo "checked"; if ($acervo[47]!=2 and $acervo[47]!=1) echo "disabled";?> <? if($_SESSION[folio]==1)echo "disabled";?>></td>
  <td align="center"><input class="Radio" type="radio" name="publicacionest" value="3" <? if ($acervo[47]==0) echo "checked"; if ($acervo[47]==2 || $acervo[47]==1) echo "disabled";?> <? if($_SESSION[folio]==1)echo "disabled";?>></td>
  <td>&nbsp;</td>  
  </tr>    
  <tr>
  <td>&nbsp;</td>
  <td><font size="2" face="Arial">TESIS</font></td>
  <td align="center"><input class="Radio" type="radio" name="tesis" value="1" <? if ($acervo[48]==2) echo "checked"; if ($acervo[48]!=2 and $acervo[48]!=1) echo "disabled";?> <? if($_SESSION[folio]==1)echo "disabled";?>></td>
  <td align="center"><input class="Radio" type="radio" name="tesis" value="2" <? if ($acervo[48]==1) echo "checked"; if ($acervo[48]!=2 and $acervo[48]!=1) echo "disabled";?> <? if($_SESSION[folio]==1)echo "disabled";?>></td>
  <td align="center"><input class="Radio" type="radio" name="tesis" value="3" <? if ($acervo[48]==0) echo "checked"; if ($acervo[48]==2 || $acervo[48]==1) echo "disabled";?> <? if($_SESSION[folio]==1)echo "disabled";?>></td>
  <td>&nbsp;</td>  
  </tr>    
  <tr>
  <td>&nbsp;</td>
  <td><font size="2" face="Arial">DOCUMENTOS, INFORMES Y FOLLETOS</font></td>
  <td align="center"><input class="Radio" type="radio" name="documentos" value="1" <? if ($acervo[49]==2) echo "checked"; if ($acervo[49]!=2 and $acervo[49]!=1) echo "disabled";?> <? if($_SESSION[folio]==1)echo "disabled";?>></td>
  <td align="center"><input class="Radio" type="radio" name="documentos" value="2" <? if ($acervo[49]==1) echo "checked"; if ($acervo[49]!=2 and $acervo[49]!=1) echo "disabled";?> <? if($_SESSION[folio]==1)echo "disabled";?>></td>
  <td align="center"><input class="Radio" type="radio" name="documentos" value="3" <? if ($acervo[49]==0) echo "checked"; if ($acervo[49]==2 || $acervo[49]==1) echo "disabled";?> <? if($_SESSION[folio]==1)echo "disabled";?>></td>
  <td>&nbsp;</td>  
  </tr>   
  <tr>
  <td>&nbsp;</td>
  <td><font size="2" face="Arial">MAPAS</font></td>
  <td align="center"><input class="Radio" type="radio" name="mapas" value="1" <? if ($acervo[50]==2) echo "checked"; if ($acervo[50]!=2 and $acervo[50]!=1) echo "disabled";?> <? if($_SESSION[folio]==1)echo "disabled";?>></td>
  <td align="center"><input class="Radio" type="radio" name="mapas" value="2" <? if ($acervo[50]==1) echo "checked"; if ($acervo[50]!=2 and $acervo[50]!=1) echo "disabled";?> <? if($_SESSION[folio]==1)echo "disabled";?>></td>
  <td align="center"><input class="Radio" type="radio" name="mapas" value="3" <? if ($acervo[50]==0) echo "checked"; if ($acervo[50]==2 || $acervo[50]==1) echo "disabled";?> <? if($_SESSION[folio]==1)echo "disabled";?>></td>
  <td>&nbsp;</td>  
  </tr>    
  <tr>
  <td>&nbsp;</td>
  <td><font size="2" face="Arial">MATERIAL AUDIOVISUAL</font></td>
  <td align="center"><input class="Radio" type="radio" name="material" value="1" <? if ($acervo[51]==2) echo "checked"; if ($acervo[51]!=2 and $acervo[51]!=1) echo "disabled";?> <? if($_SESSION[folio]==1)echo "disabled";?>></td>
  <td align="center"><input class="Radio" type="radio" name="material" value="2" <? if ($acervo[51]==1) echo "checked"; if ($acervo[51]!=2 and $acervo[51]!=1) echo "disabled";?> <? if($_SESSION[folio]==1)echo "disabled";?>></td>
  <td align="center"><input class="Radio" type="radio" name="material" value="3" <? if ($acervo[51]==0) echo "checked"; if ($acervo[51]==2 || $acervo[51]==1) echo "disabled";?> <? if($_SESSION[folio]==1)echo "disabled";?>></td>
  <td>&nbsp;</td>  
  </tr>    
  <tr>
  <td>&nbsp;</td>
  <td><font size="2" face="Arial">BASES DE DATOS</font></td>
  <td align="center"><input class="Radio" type="radio" name="bases" value="1" <? if ($acervo[52]==2) echo "checked"; if ($acervo[52]!=2 and $acervo[52]!=1) echo "disabled";?> <? if($_SESSION[folio]==1)echo "disabled";?>></td>
  <td align="center"><input class="Radio" type="radio" name="bases" value="2" <? if ($acervo[52]==1) echo "checked"; if ($acervo[52]!=2 and $acervo[52]!=1) echo "disabled";?> <? if($_SESSION[folio]==1)echo "disabled";?>></td>
  <td align="center"><input class="Radio" type="radio" name="bases" value="3" <? if ($acervo[52]==0) echo "checked"; if ($acervo[52]==2 || $acervo[52]==1) echo "disabled";?> <? if($_SESSION[folio]==1)echo "disabled";?>></td>
  <td>&nbsp;</td>  
  </tr>    
</table>
</center>
<input type="hidden" name="sumasita" value="<? echo $servi[0]+$servi[1]; ?>"> 
</form>
<div id="mensajesAyuda">
	<div id="ayudaTitulo"></div>
	<div id="ayudaTexto"></div>
</div>
</body>
</html>
