//Specify affected tags. Add or remove from list: 
var tgs = new Array( 'font','h3'); 

//Specify spectrum of different font sizes: 
var szs = new Array( 'xx-small','x-small','small','medium','large','x-large','xx-large' ); 
var startSz = 2; 

function ts( trgt,inc ) { 
if (!document.getElementById) return 
var d = document,cEl = null,sz = startSz,i,j,cTags; 

sz += inc; 
if ( sz < 0 ) sz = 0; 
if ( sz > 6 ) sz = 6; 
startSz = sz; 

if (!( cEl = d.getElementById( trgt ) ) ) cEl = d.getElementsByTagName( trgt )[ 0 ]; 

cEl.style.fontSize = szs[ sz ]; 

for ( i = 0 ; i < tgs.length ; i++ ) { 
cTags = cEl.getElementsByTagName( tgs[ i ] ); 
for ( j = 0 ; j < cTags.length ; j++ ) cTags[ j ].style.fontSize = szs[ sz ]; 
} 
} 
// texto oculto, se muestra apretando un link
// Hernán J. González - http://www.hjg.com.ar/
function verocultar(href)
{
var c = href.nextSibling;
if(c.style.display == 'none') 
 { c.style.display = 'block'; href.innerHTML ='[Leer -]'; }
else 
 { c.style.display = 'none';  href.innerHTML ='[Leer +]'; }
return false;
}

//ENVIA PAGINA Con ayuda de Hernn de Fotos del Apocalipsis
function EnviaPagina(postid,permalink) {
  CadenaMail = "mailto:?subject= Te recomiendo esta pagina ";
  CadenaMail += "&body=Te recomiendo leer esta nota: " + postid;
  CadenaMail += ". \n Para acceder, sigue este enlace: " + permalink;
  location.href = CadenaMail;
}
// Imprimir
function printPage(permalink) {
window.print(); 
  }
// author: Susan Lee

var from_time = new Date();
from_time = from_time.getTime();
function  show_loading_time()
{
var to_time = new Date();
to_time = to_time.getTime();
var secs = (to_time - from_time) /1000;
document.f.t.value = secs + " seconds";
}	


function fAfterSelected(y,m,d) {

//y+'_'+m+'_'+d+  

//gdSelect[2]	  

  if (m<10) m='0'+m;

//	if (d<10) d='0'+d;

	var h=fDate2W(y,m,d);

	var wd=fGetDOW(y,m,d)+1;

  var j=wd-1;

	var mi=d-j;

	if (mi<10) mi='0'+mi;
}

//saludo
function saludar(){
var tiempo = new Date();
var hora, cad="son las ";
with (tiempo){
hora = getHours();
cad += hora + ":" + getMinutes()+":"+getSeconds();
}
if (hora < 12)
      cad = "Buenos días";
else if (hora < 18)
      cad = "Buenas tardes";
else
      cad = "Buenas noches" ;

return cad
}

