//JavaScript Functions
function videophp() {
var fo = new FlashObject("player.swf", "t", "300", "240", "8", "#000000");

                    fo.addParam("wmode", "transparent");

					fo.addParam("FlashVars","file=<?=$video?>");

                    fo.write("player1");
}

function registrophp() {
var frmvalidator  = new Validator("envio");

	frmvalidator.addValidation("email","maxlen=50");

	frmvalidator.addValidation("email","req", "Por favor ingrese su email");

	frmvalidator.addValidation("email","email");

	frmvalidator.addValidation("nombre","req","Por favor ingrese su nombre");

	frmvalidator.addValidation("apellido","req","Por favor ingrese su apellido");

	frmvalidator.addValidation("usuario","req","Por favor ingrese un nombre de usuario");

	frmvalidator.addValidation("passw","req","Por favor ingrese una password");

	frmvalidator.addValidation("comentarios","regexp=^[A-Za-z0-9ρΡανισϊ\-\_ \,\\.\]", "caracteres invalidos");
}

function recoamigophp() {
	var frmvalidator  = new Validator("envio");

	frmvalidator.addValidation("dest","maxlen=50");

	frmvalidator.addValidation("dest","req", "Por favor ingrese su email");

	frmvalidator.addValidation("dest","email");

	frmvalidator.addValidation("nomremi","req","Por favor ingrese su nombre");

	frmvalidator.addValidation("mailremi","maxlen=50");

	frmvalidator.addValidation("mailremi","req", "Por favor ingrese su email");

	frmvalidator.addValidation("mailremi","email");

	frmvalidator.addValidation("comentarios","regexp=^[A-Za-z0-9ρΡανισϊ\-\_ \,\\.\]", "caracteres invalidos");
}

function olvidephp() {
	var frmvalidator  = new Validator("envio");

	frmvalidator.addValidation("dest","maxlen=50");

	frmvalidator.addValidation("dest","req", "Por favor ingrese su email o nombre de usuario");
	

}

function noticiadphp(a, b) { 
	if (document.getElementById('ss' + a))

		document.getElementById('ss' + a).style.fontWeight="bold";

	if (document.getElementById('boton' + b)){

		document.getElementById('boton' + b).style.color="#fff";

		document.getElementById('boton' + b).style.backgroundImage="url(img/bot/bo_ov.jpg)";

	}

}

function header1() {

	new Fx.Font($$('p'),$('shrink'),$('grow'));

	show5();

}
function header2() {
if (!document.phpAds_used) document.phpAds_used = ',';

   phpAds_random = new String (Math.random()); phpAds_random = phpAds_random.substring(2,11);

   document.write ("<" + "script language='JavaScript' type='text/javascript' src='");

   document.write ("http://www.revistareto.com.ar/banners/adjs.php?n=" + phpAds_random);

   document.write ("&amp;what=zone:20");

   document.write ("&amp;exclude=" + document.phpAds_used);

   if (document.referer)

      document.write ("&amp;referer=" + escape(document.referer));

   document.write ("'><" + "/script>");
}

function header3() {
 if (!document.phpAds_used) document.phpAds_used = ',';

   phpAds_random = new String (Math.random()); phpAds_random = phpAds_random.substring(2,11);

   document.write ("<" + "script language='JavaScript' type='text/javascript' src='");

   document.write ("http://www.revistareto.com.ar/banners/adjs.php?n=" + phpAds_random);

   document.write ("&amp;what=zone:4");

   document.write ("&amp;exclude=" + document.phpAds_used);

   if (document.referer)

      document.write ("&amp;referer=" + escape(document.referer));

   document.write ("'><" + "/script>");
}

function pie3footer(){
if (!document.phpAds_used) document.phpAds_used = ',';

   phpAds_random = new String (Math.random()); phpAds_random = phpAds_random.substring(2,11);

   

   document.write ("<" + "script language='JavaScript' type='text/javascript' src='");

   document.write ("http://www.revistareto.com.ar/banners/adjs.php?n=" + phpAds_random);

   document.write ("&amp;what=zone:27");

   document.write ("&amp;exclude=" + document.phpAds_used);

   if (document.referer)

      document.write ("&amp;referer=" + escape(document.referer));

   document.write ("'><" + "/script>");
   }
   
function pie4footer() {
if (!document.phpAds_used) document.phpAds_used = ',';

   phpAds_random = new String (Math.random()); phpAds_random = phpAds_random.substring(2,11);

   

   document.write ("<" + "script language='JavaScript' type='text/javascript' src='");

   document.write ("http://www.revistareto.com.ar/banners/adjs.php?n=" + phpAds_random);

   document.write ("&amp;what=zone:28");

   document.write ("&amp;exclude=" + document.phpAds_used);

   if (document.referer)

      document.write ("&amp;referer=" + escape(document.referer));

   document.write ("'><" + "/script>");
}

function pie5footer() {
if (!document.phpAds_used) document.phpAds_used = ',';

   phpAds_random = new String (Math.random()); phpAds_random = phpAds_random.substring(2,11);

   

   document.write ("<" + "script language='JavaScript' type='text/javascript' src='");

   document.write ("http://www.revistareto.com.ar/banners/adjs.php?n=" + phpAds_random);

   document.write ("&amp;what=zone:29");

   document.write ("&amp;exclude=" + document.phpAds_used);

   if (document.referer)

      document.write ("&amp;referer=" + escape(document.referer));

   document.write ("'><" + "/script>");

}

function pie6footer() {
 if (!document.phpAds_used) document.phpAds_used = ',';

   phpAds_random = new String (Math.random()); phpAds_random = phpAds_random.substring(2,11);

   

   document.write ("<" + "script language='JavaScript' type='text/javascript' src='");

   document.write ("http://www.revistareto.com.ar/banners/adjs.php?n=" + phpAds_random);

   document.write ("&amp;what=zone:30");

   document.write ("&amp;exclude=" + document.phpAds_used);

   if (document.referer)

      document.write ("&amp;referer=" + escape(document.referer));

   document.write ("'><" + "/script>");
}

function pie7footer() {
 if (!document.phpAds_used) document.phpAds_used = ',';

   phpAds_random = new String (Math.random()); phpAds_random = phpAds_random.substring(2,11);

   

   document.write ("<" + "script language='JavaScript' type='text/javascript' src='");

   document.write ("http://www.revistareto.com.ar/banners/adjs.php?n=" + phpAds_random);

   document.write ("&amp;what=zone:31");

   document.write ("&amp;exclude=" + document.phpAds_used);

   if (document.referer)

      document.write ("&amp;referer=" + escape(document.referer));

   document.write ("'><" + "/script>");

}

function pie8footer() {
 if (!document.phpAds_used) document.phpAds_used = ',';

   phpAds_random = new String (Math.random()); phpAds_random = phpAds_random.substring(2,11);

   

   document.write ("<" + "script language='JavaScript' type='text/javascript' src='");

   document.write ("http://www.revistareto.com.ar/banners/adjs.php?n=" + phpAds_random);

   document.write ("&amp;what=zone:32");

   document.write ("&amp;exclude=" + document.phpAds_used);

   if (document.referer)

      document.write ("&amp;referer=" + escape(document.referer));

   document.write ("'><" + "/script>");

}

function cueretotvphp() {
var so = new SWFObject('mediaplayer/mediaplayer.swf','mpl','580','300','8');

so.addParam('wmode', 'transparent');
so.addParam('allowfullscreen', 'true');
so.addParam('flashvars','config=config_video.xml');
so.write('player');

}

function cuerncnphp() {
var so = new SWFObject('mediaplayer/mediaplayer.swf','mpl','580','300','8');

so.addParam('wmode', 'transparent');
so.addParam('allowfullscreen', 'true');

so.addParam('flashvars','config=audio/config.xml');



so.write('player');

}

function comentario() {
	var frmvalidator  = new Validator("envio");

	frmvalidator.addValidation("comentarios","regexp=^[A-Za-z0-9ρΡανισϊ\-\_ \,\\.\]", "caracteres invalidos");

}

function coldertv(){
 if (!document.phpAds_used) document.phpAds_used = ',';

   phpAds_random = new String (Math.random()); phpAds_random = phpAds_random.substring(2,11);

   

   document.write ("<" + "script language='JavaScript' type='text/javascript' src='");

   document.write ("http://www.revistareto.com.ar/banners/adjs.php?n=" + phpAds_random);

   document.write ("&amp;what=zone:22");

   document.write ("&amp;exclude=" + document.phpAds_used);

   if (document.referer)

      document.write ("&amp;referer=" + escape(document.referer));

   document.write ("'><" + "/script>");

}

function valmecolder(){
var so = new SWFObject("mediaplayer/valmec.swf", "valmec", "296", "240", "8", "#ffffff");
   				so.addParam("wmode", "transparent");
			
				so.write("valmec");
}

function colderhome() {
 if (!document.phpAds_used) document.phpAds_used = ',';
   phpAds_random = new String (Math.random()); phpAds_random = phpAds_random.substring(2,11);
   
   document.write ("<" + "script language='JavaScript' type='text/javascript' src='");
   document.write ("http://www.revistareto.com.ar/banners/adjs.php?n=" + phpAds_random);
   document.write ("&amp;what=zone:33");
   document.write ("&amp;exclude=" + document.phpAds_used);
   if (document.referer)
      document.write ("&amp;referer=" + escape(document.referer));
   document.write ("'><" + "/script>");
}

function colderhome2() {

var so = new SWFObject("mediaplayer/sciensa.swf", "sci", "296", "240", "8", "#ffffff");
   				so.addParam("wmode", "transparent");
			
				so.write("sciensa");
}

function tcpcolder() {
   				var so = new SWFObject("mediaplayer/tcp.swf", "tcp", "296", "240", "8", "#ffffff");
   				so.addParam("wmode", "transparent");
			
				so.write("tcp");

}

function colderhome3() {
 if (!document.phpAds_used) document.phpAds_used = ',';
   phpAds_random = new String (Math.random()); phpAds_random = phpAds_random.substring(2,11);
   
   document.write ("<" + "script language='JavaScript' type='text/javascript' src='");
   document.write ("http://www.revistareto.com.ar/banners/adjs.php?n=" + phpAds_random);
   document.write ("&amp;what=zone:23&amp;block=1");
   document.write ("&amp;exclude=" + document.phpAds_used);
   if (document.referer)
      document.write ("&amp;referer=" + escape(document.referer));
   document.write ("'><" + "/script>");
}

function colderhome4() {
if (!document.phpAds_used) document.phpAds_used = ',';
       phpAds_random = new String (Math.random()); phpAds_random = phpAds_random.substring(2,11);
       
       document.write ("<" + "script language='JavaScript' type='text/javascript' src='");
       document.write ("http://www.revistareto.com.ar/banners/adjs.php?n=" + phpAds_random);
       document.write ("&amp;what=zone:24");
       document.write ("&amp;exclude=" + document.phpAds_used);
       if (document.referer)
          document.write ("&amp;referer=" + escape(document.referer));
       document.write ("'><" + "/script>");
}

function colderhome5(){
   				var so = new SWFObject("mediaplayer/fadecco.swf", "ise", "296", "240", "8", "#ffffff");
   				so.addParam("wmode", "opaco");
				so.write("ise");

}
function colderhome6(){
   				var so = new SWFObject("mediaplayer/launion.swf", "launion", "296", "240", "8", "#ffffff");
   				so.addParam("wmode", "transparent");
			
				so.write("launion");

}

function limpia(id, texto) {
	switch (id) {
		case 'dest': 
			if (texto == 'E-mail (campo obligatorio)'){
			document.getElementById(id).value = ''
			};
			break;			
		case 'nomremi': 
			if (texto == 'Nombre/s'){
			document.getElementById(id).value = ''
			};
			break;
		case 'mailremi': 
			if (texto == 'E-mail (campo obligatorio)'){
			document.getElementById(id).value = ''
			};
			break;
		}
}