
// script para bordes redondos en IE

    DD_roundies.addRule("#contacto", 15);
	DD_roundies.addRule("#activo", 15);

// script para seguimiento de google analitics
	var _gaq = _gaq || [];
  _gaq.push(["_setAccount", "UA-17416819-1"]);
  _gaq.push(["_trackPageview"]);

  (function() {
    var ga = document.createElement("script"); ga.type = "text/javascript"; ga.async = true;
    ga.src = ("https:" == document.location.protocol ? "https://ssl" : "http://www") + ".google-analytics.com/ga.js";
    var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(ga, s);
  })();



// script para imprimir solo un DIV 


  function imprSelec(nombre)

  {

  var ficha = document.getElementById(nombre);

  var ventimp = window.open(" ", "popimpr");

  ventimp.document.write( ficha.innerHTML );

  ventimp.document.close();

  ventimp.print( );

  ventimp.close();

  } 



 // script para el registro, solo admite números en los campos especificados 


      function onlyNumbers(evt)
      {
        var keyPressed = (evt.which) ? evt.which : event.keyCode
        return !(keyPressed > 31 && (keyPressed < 48 || keyPressed > 57));
      }

 
	function UltimoDiaMes(mes,anio){ 
	dias=[31,29,31,30,31,30,31,31,30,31,30,31];
	ultimo=0; 
	if (mes==1){ 
	fecha=new Date(anio,1,29) 
	vermes=fecha.getMonth(); 
	if(vermes!=mes){ultimo=28} 
	} 
	if(ultimo==0){ultimo=dias[mes]} 
	return ultimo 
	} 

