function colDirector()

{

	window.location.href = "http://www.diariolaprimeraperu.com/online/indColumArticulos.php?IdSeccion=3&idRedactor=2";

}

function colArchivo()

{

	window.location.href = "http://www.diariolaprimeraperu.com/online/indColumnas.php?IdSeccion=4";

}



function cines()

{

	var url = 'http://www.diariolaprimeraperu.com/online/cartelera.php';

	ventana(url,"cartelera",700,500,0);

}

function votar()

{

	var respuesta;

	var d = document.frmEncuesta;

	var idCodigo= d.ENcodigo.value;

	if(d.alternativa[0].checked) respuesta = d.alternativa[0].value;

	else if(d.alternativa[1].checked) respuesta = d.alternativa[1].value;

	else respuesta = 'Para votar marque una opción.';

	if((respuesta == 1) || (respuesta == 2))

	{

		var url = 'http://www.diariolaprimeraperu.com/online/encuesta.php?idPregunta='+idCodigo+'&opcion='+respuesta;

		ventana(url,"encuesta",550,340,0);

	}

	else { alert(respuesta); }

}

function resultados()

{

	var d = document.frmEncuesta;

	var idCodigo= d.ENcodigo.value;

	var url = 'http://www.diariolaprimeraperu.com/online/encuesta.php?idPregunta='+idCodigo;

	ventana(url,"encuesta",550,340,0);

}



function masvotados()

{

	var url = 'http://www.diariolaprimeraperu.com/online/encuesta.php?modoVisual=masvotados';

	ventana(url,"encuesta",550,340,0);

}



function anteriores()

{

	var url = 'http://www.diariolaprimeraperu.com/online/encuesta.php?modoVisual=anteriores';

	ventana(url,"encuesta",550,340,0);

}



function edicionPDF()

{

	window.location.href = 'http://www.diariolaprimeraperu.com/online/lpPdf.php';

}



function denuncia()

{

	window.location.href = 'http://www.diariolaprimeraperu.com/online/lpDenuncias.php';

}



function navegacion(j)

{

	if(j=="inicio") {

		window.location.href = "http://www.diariolaprimeraperu.com/online/index.php";  }

	if(j=="publicidad")	{

		window.location.href = "http://www.diariolaprimeraperu.com/online/lpPublicidad.php";  }

	if(j=="archivo") {

		window.location.href = "http://www.diariolaprimeraperu.com/online/lpArchivo.php";  }

	if(j=="contactos") {

		window.location.href = "http://www.diariolaprimeraperu.com/online/lpContactos.php";

	}

		

}

function buscar()

{

	var dc = document.google;

	if(dc.q.value=="")

	{

		alert('Ingrese una frase para buscar');

	}

	else

	dc.submit();

}



function recomendar(h)

{

	var url = 'http://www.diariolaprimeraperu.com/online/recomendar.php?Idn='+h;

	ventana(url,"http://www.diariolaprimeraperu.com/online/recomendar",550,450,0);

}


function comentario(h)

{

	var url = 'http://www.diariolaprimeraperu.com/online/usuarios/index.php?Idn='+h;

	ventana(url,"recomendar",570,300,0);

}

function imprimir()

{

	print();

}





function 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=FindObj(n,d.layers[i].document);

if(!x && d.getElementById) x=d.getElementById(n); return x;

}



function ChangeProp(objName,x,theProp,theValue) { //v6.0

var obj = FindObj(objName);

if (obj && (theProp.indexOf("style.")==-1 || obj.style)){

if (theValue == true || theValue == false)

eval("obj."+theProp+"="+theValue);

else eval("obj."+theProp+"='"+theValue+"'");

}

}



function LoadActualFontSize() {

tempArray = document.cookie.split(";");

for (tA = 0; tA < tempArray.length; tA++){

if (tempArray[tA].indexOf('fontSize') > -1){

fontSizeValue = tempArray[tA].split("=")

ACTUAL_FONTSIZE = parseInt(fontSizeValue[1]);

}

}

}



function SaveActualFontSize() {

var expire = new Date ();

expire.setTime (expire.getTime() + (6000 * 24 * 3600000));

expire = expire.toGMTString();

document.cookie="fontSize="+ACTUAL_FONTSIZE+"; path=/; expires="+expire;

}



function Ampliar() {

ACTUAL_FONTSIZE = ACTUAL_FONTSIZE+1;

if (ACTUAL_FONTSIZE > LARGEST_FONTSIZE) { ACTUAL_FONTSIZE = LARGEST_FONTSIZE }

ChangeProp('texto','','style.fontSize',ACTUAL_FONTSIZE,'SPAN');

SaveActualFontSize();

}



function Reducir() {

ACTUAL_FONTSIZE = ACTUAL_FONTSIZE-1

if (ACTUAL_FONTSIZE < SMALLEST_FONTSIZE) { ACTUAL_FONTSIZE = SMALLEST_FONTSIZE }

ChangeProp('texto','','style.fontSize',ACTUAL_FONTSIZE,'SPAN');

SaveActualFontSize();

}



ACTUAL_FONTSIZE = 12;

SMALLEST_FONTSIZE = 12;

LARGEST_FONTSIZE = 20;



function ventana(url,nombre,ancho,alto,scroll)

{

	var objWin = new Object();

	objWin.width = ancho;

	objWin.height = alto;

	if (navigator.appName == "Netscape")

	{

		objWin.left = window.screenX + ((window.outerWidth - objWin.width) / 2);

		objWin.top = window.screenY + ((window.outerHeight - objWin.height) / 2);

		var atributo = 'screenX=' + objWin.left + ',screenY=' + objWin.top + ',resizable=no,width=' + objWin.width + ',height=' + objWin.height + ',scrollbars=' + scroll + ',menubar=no,location=no,toolbar=no,status=no,directories=no';

	}

	else if (document.all)

	{

		objWin.left = ((screen.width-objWin.width) / 2);

		objWin.top = ((screen.height-objWin.height) / 2);

		var atributo = 'left=' + objWin.left + ',top=' + objWin.top + ',resizable=no,width=' + objWin.width + ',height=' + objWin.height + ',scrollbars=' + scroll + ',menubar=no,location=no,toolbar=no,status=no,directories=no';

	}

window.open(url,nombre,atributo);

}




function cambiar()
{
	var dcf = document.frmEdicion;
	if (((dcf.selMes.value>=1) && (dcf.selMes.value<=6)) && (dcf.selAnnio.value==2007))
	{
		alert('Las ediciones anteriores se implementaron a partir del 03 de julio del 2007');
		//alert('Mes: ' + dcf.selMes.value + ' Año: ' + dcf.selAnnio.value);
	}
	else
	{
		dcf.submit();
	}
}

function ventanaPDF(url,nombre,ancho,alto,scroll)
{
	var objWin = new Object();
	objWin.width = ancho;
	objWin.height = alto;
	if (navigator.appName == "Netscape")
	{
		objWin.left = window.screenX + ((window.outerWidth - objWin.width) / 2);
		objWin.top = window.screenY + ((window.outerHeight - objWin.height) / 2);
		var atributo = 'screenX=' + objWin.left + ',screenY=' + objWin.top + ',resizable=yes,width=' + objWin.width + ',height=' + objWin.height + ',scrollbars=yes,menubar=no,location=no,toolbar=yes,status=no,directories=no';
	}
	else if (document.all)
	{
		objWin.left = ((screen.width-objWin.width) / 2);
		objWin.top = ((screen.height-objWin.height) / 2);
		var atributo = 'left=' + objWin.left + ',top=' + objWin.top + ',resizable=yes,width=' + objWin.width + ',height=' + objWin.height + ',scrollbars=yes,menubar=no,location=no,toolbar=yes,status=no,directories=no';
	}
//window.open(url,nombre,atributo);
window.open(url,nombre,'');

}
function edicion(j)
{
	var url = 'http://www.diariolaprimeraperu.com/online/edicionInicio.php?EF='+j;
	ventanaPDF(url,"ediciones",790,600);
//	alert("Estimado lector esta opción se encuentra en implementación, por \n lo que  sugerimos usar nuestro buscador para encontrar las \n noticias de las ediciones publicadas. \n \n ")
}







