function Milenio935online() {
    window.open("http://www.paralelo32.com.ar/includes/milenio/index.htm","Milenio935online","width=200,height=350,top=50,left=50");
}

function fmquiero(){
	window.open('http://www.paralelo32.com.ar/includes/fmquiero.html',"ventana1","width=420, height=150, scrollbars=yes, menubar=no, location=no, resizable=no")
}

function losparaisos(){
	window.open('http://www.paralelo32.com.ar/publicidad/los_paraisos.html',"ventana1","width=650, height=830, scrollbars=yes, menubar=no, location=no, resizable=no")
} 

function favoritos(){
//Para internet explorer
if ((navigator.appName=="Microsoft Internet Explorer") && (parseInt(navigator.appVersion)>=4)) {
var url="http://www.paralelo32.com.ar/"; //Cambia esta dirección por la de tu web
var titulo="Paralelo32.com.ar | El semanario de la región"; //Cambia esta nombre por el de tu web
window.external.AddFavorite(url,titulo);
}
//Para Netscape y Firefox
else {
if(navigator.appName == "Netscape")
window.sidebar.addPanel("Paralelo32.com.ar | El semanario de la región", "http://www.paralelo32.com.ar/","");
}
}

function pagina_inicio(){
	this.style.behavior='url(#default#homepage)';
	this.setHomePage('http://www.paralelo32.com.ar');
}

function divMasKeep(){
	var keep = 1;	
}
function divMasHide(){
	var keep = 0;
	var divMas = document.getElementById('mas');
	divMas.style.visibility = (divMas.style.visibility == 'hidden') ? 'visible' : 'hidden';
}

function MM_swapImgRestoreMas() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
  var divMas = document.getElementById('mas');
  if(keep==0){
	  divMas.style.visibility = (divMas.style.visibility == 'hidden') ? 'visible' : 'hidden';
  }
}
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImageMas() { //v3.0
  var i,j=0,x,a=MM_swapImageMas.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
   var divMas = document.getElementById('mas');
   divMas.style.visibility = (divMas.style.visibility == 'hidden') ? 'visible' : 'hidden';
}

function zoomText(Accion){
var obj=document.getElementById("nota");
var max = 16 //tamaño máximo del fontSize
var min = 11 //tamaño mínimo del fontSize
if (obj.style.fontSize==""){
obj.style.fontSize="12px";
}
actual=parseInt(obj.style.fontSize); //valor actual del tamaño del texto
incremento=1;// el valor del incremento o decremento en el tamaño

//accion sobre el texto
if( Accion=="aumentar" && ((actual+incremento) <= max )){
valor=actual+incremento;
obj.style.fontSize=valor+"px"
}
if( Accion=="disminuir" && ((actual+incremento) >= min )){
valor=actual-incremento;
obj.style.fontSize=valor+"px"
}
}

function comentar(){
	var formC = document.getElementById('form_comentario');
	var Vnombre = document.getElementById('val_nombre');
	var Vcorreo = document.getElementById('val_correo');
	var Vcomentario = document.getElementById('val_comentario');
	var Vcodigo = document.getElementById('val_codigo');
	if(formC.autor.value == "") {  
    	Vnombre.style.visibility = 'visible';
		formC.autor.focus();
	}else{
		Vnombre.style.visibility = 'hidden';
	}
    if(formC.mail.value == "") {  
    	Vcorreo.style.visibility = 'visible';
		formC.mail.focus();
	}else{
		Vcorreo.style.visibility = 'hidden';
	}
    if(formC.texto.value == "") {  
    	Vcomentario.style.visibility = 'visible';
		formC.texto.focus();
	}else{
		Vcomentario.style.visibility = 'hidden';
	}
    if(formC.codigo.value != document.codigo_img.alt) {  
    	Vcodigo.style.visibility = 'visible';
		formC.codigo.focus();
    } else {  
		Vcodigo.style.visibility = 'hidden';
		formC.submit();
	} 	
}


function validar_contacto(){
	var formC = document.getElementById('form_contacto');
	var Vnombre = document.getElementById('val_nombre');
	var Vcorreo = document.getElementById('val_correo');
	var Vmensaje = document.getElementById('val_mensaje');
	if(formC.nombre.value == "") {  
    	Vnombre.style.visibility = 'visible';
		formC.nombre.focus();
	}else{
		Vnombre.style.visibility = 'hidden';
	}
    if(formC.correo.value == "") {  
    	Vcorreo.style.visibility = 'visible';
		formC.correo.focus();
	}else{
		Vcorreo.style.visibility = 'hidden';
	}
    if(formC.mensaje.value == "") {  
    	Vmensaje.style.visibility = 'visible';
		formC.mensaje.focus();
	}else{
		Vmensaje.style.visibility = 'hidden';
		formC.submit();
	}	
}

function voto(idv){
	document.cookie = "idvoto" + "=" + encodeURIComponent(idv) + "; max-age=" + 60*60*24*5 + "; path=/;" ;
}
