//
// MultiZona.com (c) 2002
// http://www.multizona.com/
//

// Boton envio formularios
function Enviar() 
   {
       if ( vEmail() )
          {
          document.form1.submit();
          }

   }


// Validacion Email
function vEmail() 
    {
	if (document.form1.Email.value == "")
           {
             alert('\nDebés ingresar tu e-mail.');
             document.form1.Email.focus();
             return(false);
        }

        if (document.form1.Email.value.indexOf('@',0)==-1 || document.form1.Email.value.indexOf('@',0)== 0 ||
          document.form1.Email.value.indexOf('.',0)==-1)
             {
                 alert('\nLa dirección de e-mail no es válida.');
                 document.form1.Email.focus();
                 return(false);
              }
             else { return(true); }
    }


// Boton votacion encuesta
function Votar()
{
	document.encuesta780.submit()
}

// PopUp BannersGratis
<!--
function bannersgratis(desktopURL){   var desktop = window.open( desktopURL, "_blank", "width=540,height=500,scrollbars=yes,resizable=no");}
// -->

// PopUp Ranking
<!--
function ranking(desktopURL){   var desktop = window.open( desktopURL, "_blank", "width=440,height=450,scrollbars=no,resizable=no");}
// -->

// PopUp Aventuras
<!--
function aventuras(desktopURL){   var desktop = window.open( desktopURL, "_blank", "width=475,height=500,scrollbars=yes,resizable=no");}
// -->

//
// RANDOM BANNER MENU-TOP
//
<!--
// Begin
function banner(imgSource,url,alt,chance) {
this.imgSource = imgSource;
this.url = url;
this.alt = alt;
this.chance = chance;
}
function dispBanner() {
with (this) document.write("<a href=" + url + "><img src='" + imgSource + "' with='140' height='400' border='0' alt='" + alt + "'></a>");
}
banner.prototype.dispBanner = dispBanner;
banners = new Array();
banners[0] = new banner("http://www.intergratis.com/banners/140x400-intergratis.gif",
                        "http://www.intergratis.com/ target='_blank'",
                        "Intergratis.com",
                        44);
banners[1] = new banner("/banners/unaxdia-140x400-2.jpg",
                        "http://www.unaxdia.com/ target='_blank'",
                        "Las mejores mujeres de la web",
                        7);
banners[2] = new banner("/banners/unaxdia-140x400-3.jpg",
                        "http://www.unaxdia.com/ target='_blank'",
                        "Las mejores mujeres de la web",
                        7);
banners[3] = new banner("/banners/unaxdia-140x400-4.jpg",
                        "http://www.unaxdia.com/ target='_blank'",
                        "Las mejores mujeres de la web",
                        7);
banners[4] = new banner("/banners/unaxdia-140x400-5.jpg",
                        "http://www.unaxdia.com/ target='_blank'",
                        "Las mejores mujeres de la web",
                        7);
banners[5] = new banner("/banners/unoxdia-140x400-1.jpg",
                        "http://www.unoxdia.com/ target='_blank'",
                        "Los mejores hombres de la web",
                        14);
banners[6] = new banner("/banners/aldeadvd-140x400-5.gif",
                        "http://www.aldeadvd.com/ target='_blank'",
                        "Todo lo que siempre quisiste saber sobre el DVD y no te atreviste a preguntar",
                        14);

sum_of_all_chances = 0;
for (i = 0; i < banners.length; i++) {
sum_of_all_chances += banners[i].chance;
}
function randomBanner() {
chance_limit = 0;
randomly_selected_chance = Math.round((sum_of_all_chances - 1) * Math.random()) + 1;
for (i = 0; i < banners.length; i++) {
chance_limit += banners[i].chance;
if (randomly_selected_chance <= chance_limit) {
document.write("<a href=" + banners[i].url + "><img src='" + banners[i].imgSource + "' width='140' height='400' border='0' alt='" + banners[i].alt + "'></a>");
return banners[i];
break;
      }
   }
}
//  End -->

<!--
        if (document.images) {            // Active Images
// ENCENDIDO
// Aventuras
            img00on = new Image();
            img00on.src = "/images/aventuras/bot-cerrar-on.gif";
			
// APAGADO
// Aventuras
            img00off = new Image();
            img00off.src = "/images/aventuras/bot-cerrar-off.gif";
        }

// Function to 'activate' images.
function imgOn(imgName) {
        if (document.images) {
            document[imgName].src = eval(imgName + "on.src");

        }
}
// Function to 'deactivate' images.
function imgOff(imgName) {
        if (document.images) {
            document[imgName].src = eval(imgName + "off.src");
        }
}

// -->
// -->