function abrir(strFile, strNombre, intWidth, intHeight)
{
	leftVal = (screen.width - intWidth) / 2;
	topVal = (screen.height - intHeight) / 2;

	window.open(strFile, strNombre,'width=' + intWidth + ',height=' + intHeight + ',left=' + leftVal + ',top=' + topVal + ",scrollbars=yes");
}

function openWin(strFile, strNombre, intWidth, intHeight)
{
	leftVal = (screen.width - intWidth) / 2;
	topVal = (screen.height - intHeight) / 2;

	window.open(strFile, strNombre,'width=' + intWidth + ',height=' + intHeight + ',left=' + leftVal + ',top=' + topVal + ",scrollbars=no");
}

function votar(id)
{
	abrir("/votar.php?id=" + id, "votar", 300, 200);
}



//////////////////////////////////////////////////////////
  //
  //
  //	29-09-2007
  //	VERSION 1.0
  //	AUTOR: LUIS ENRIQUE GALLEGOS HUAMANI
  //	DESCRIPCION : CODIGO PARA AGRANDAR Y ACHICAR TEXTO
  //
  /////////////////////////////////////////////////////////

    function adzIncreaseFontSize(idElemento) {
	var elemento = document.all[idElemento];
		if (!elemento.style.fontSize) {
	    elemento.style.fontSize = '110%';
		 } else {
	     var fsize = elemento.style.fontSize;
		     if (fsize.indexOf("%")) {
			 fsize = fsize.substring(0,fsize.indexOf("%"))
			 fsize = Number(fsize)+10;
	         if(fsize >= max_size){
			 alert("No es posible aumentar mas el texto")
       }else{
     elemento.style.fontSize = (fsize+'%');
       }
     }
 }
    }

function adzDecreaseFontSize(idElemento) {
	var elemento = document.all[idElemento];
	alert(elemento.style.fontSize);
		if (!elemento.style.fontSize) {
	     elemento.style.fontSize = '90%';
			} else {
	     var fsize = elemento.style.fontSize;
     if (fsize.indexOf("%")) {
   fsize = fsize.substring(0,fsize.indexOf("%"))
   fsize = Number(fsize)-10;
   if(fsize <= min_size){
       alert("No es posible disminuir m&aacute;s el texto")
   }else{
       elemento.style.fontSize = (fsize+'%');
		}
	 }
 }
 }

    function adzResetFontSize(idElemento) {
	var elemento = document.all[idElemento];
	elemento.body.style.fontSize = '100%';
    }
    var max_size = 150;
    var min_size = 80;
    var tamagnoLetras = 100;

function dzIncreaseFontSize(idElemento) {
	if (document.all || document.getElementById) {    
	var elemento = document.all ? document.all[idElemento] : document.getElementById(idElemento);
     if (elemento) {    
	   if(tamagnoLetras >= max_size){
       alert("No es posible aumentar mas el texto")
	   }else{
       tamagnoLetras += 10;
       if (elemento.length) 
     for (i=0; i<elemento.length; i++) {
         elemento[i].style.fontSize = (tamagnoLetras+'%');
     }
       else
     elemento.style.fontSize = (tamagnoLetras+'%');    
   }
     }
 }
    }

function dzDecreaseFontSize(idElemento) {

 if (document.all || document.getElementById) {    
     var elemento = document.all ? document.all[idElemento] : document.getElementById(idElemento);
     if (elemento) {    
   if(tamagnoLetras <= min_size){
       alert("No es posible disminuir m&aacute;s el texto")
   }else{
       tamagnoLetras -= 10;
       if (elemento.length) 
     for (i=0; i<elemento.length; i++) {
         elemento[i].style.fontSize = (tamagnoLetras+'%');
     }
       else
     elemento.style.fontSize = (tamagnoLetras+'%');    
   }
     }
 }
    }
   

function dzResetFontSize(idElemento) {
 var elemento = document.all[idElemento];
 elemento.body.style.fontSize = '100%';
    }
  
  ///////////////////////////////////////////////////////////
  //
  //
  //
  // FIN AGRANDAR ACHICAR TEXTO
  //
  //
  //
  //
  ///////////////////////////////////////////////////////////