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_changeProp(objName,x,theProp,theValue) { //v6.0
  var obj = MM_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 organigrama(i)
{

	org1=window.open('ppOrganigrama.asp?i='+i,'Organigrama','width=580,height=335,left=180,top=60,scrollbars=no');
	}else {	
	org2=window.open('ppOrganigrama.asp?i='+i,'Organigrama','width=580,height=335,left=180,top=60,scrollbars=no');
	}
}*/

function organigrama(imageName,imageWidth,imageHeight,Wwidth,Wheight,alt,posLeft,posTop,texto) {
	newWindow = window.open("","newWindow","width="+Wwidth+",height="+Wheight+",left="+posLeft+",top="+posTop);
	newWindow.document.open();
	newWindow.document.write('<html><head><title>'+alt+'</title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><style type"text/css">.texto{font-family: Arial;font-size:11;color:#396081;</style></head><body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0">'); 
	newWindow.document.write('<img src="imagen/cabeza_estruc_pp.jpg">');
	newWindow.document.write('<img src='+imageName+' width='+imageWidth+' height='+imageHeight+' alt='+alt+'>');
	newWindow.document.write('<table width='+Wwidth+' border="0"><tr><td width="570" height="24" align="right" valign="top"><hr noshade color=#ffcc00 width=100% align=center size=1><a href="javascript:window.close()"><font face=Tahoma size=2 color=#666666><b>Close</b></font></a>&nbsp;&nbsp;</td></tr></table>');
	//			   <div align="left" class="texto">'+texto+'</div></td><td width="70" height="24" valign="top"><a href="#"><img src="imagen/Cerrarw.gif" valign="middle" border="0" OnClick="window.close()" alt="Cerrar Ventana"></a></td></tr></table>'); 
	newWindow.document.write('</body></html>');
	newWindow.focus();
}

function abre_flashnoti()
{
 window.open("notiflash3.html","COMUNICADO","toolbar=no,location=no,directories=no,status=no, menubar=no,scrollbars=no,resizable=no,width=425,height=297,top=500,left=240");
 }

function abre_boletin1()
{

 window.open('boletin.html',"COMUNICADO","toolbar=no,location=no,directories=no,status=no, menubar=no,scrollbars=no,resizable=no,width=315,height=189,top=350,left=50");
 }

function abre_popupGral()
{
    window.open('alternativa_ventana.html',"Csa","toolbar=no,location=no,directories=no,status=no, menubar=no,scrollbars=no,resizable=no,width=300,height=277,top=250,left=150");
 }

function abre_nuevocentral()
{
 window.open('nueva_central.html',"central","toolbar=no,location=no,directories=no,status=no, menubar=no,scrollbars=no,resizable=no,width=280,height=300,top=150,left=100");
 }


function abre_flashpredi()
{
 window.open('notiPredio.html',"PREDIO","toolbar=no,location=no,directories=no,status=no, menubar=no,scrollbars=no,resizable=no,width=325,height=150,top=410,left=415");
 //width=338,height=150,top=410,left=400
  }

  
function abre_infplano()
{
// window.open('pdf/cat_listadoProducto.pdf',"PREDIO1","toolbar=no,location=no,directories=no,status=no, menubar=no,scrollbars=yes,resizable=no,width=800,height=690,top=100,left=200");
 window.location.href="/web/comercializacion.asp?i=1";
 //width=338,height=150,top=410,left=400
  }

function abre_formulario()
{
	   window.open('aviso.html',"PREDIO","toolbar=no,location=no,directories=no,status=no, menubar=no,scrollbars=no,resizable=no,width=400,height=312,top=210,left=200");
}

function abre_ley()
{
   window.open('aviso_ley.html',"avisoley","toolbar=no,location=no,directories=no,status=no, menubar=no,scrollbars=no,resizable=no,width=300,height=165,top=500,left=580");
}	


function abre_publicar(r,flag) {

	
	if (r == 1)
	{
	 window.open(flag+'publicar/ems_aviso.html',"MIRAND","toolbar=no,location=no,directories=no,status=no, menubar=no,scrollbars=yes,resizable=no,width=600,height=280,top=210,left=378");

	} else if (r == 2) 
	{
	 window.open(flag+'publicar/otro_aviso.html',"MIRAND1","toolbar=no,location=no,directories=no,status=no, menubar=no,scrollbars=yes,resizable=no,width=500,height=600,top=210,left=378");
	} else if (r == 3) 
	{
		window.open(flag+'publicar/conv_220609-1.html',"conv1","toolbar=no,location=no,directories=no,status=no, menubar=no,scrollbars=yes,resizable=no,width=420,height=700,top=210,left=378");	
	} else if (r == 4) 
	{
		window.open(flag+'publicar/conv_220609-2.html',"conv2","toolbar=no,location=no,directories=no,status=no, menubar=no,scrollbars=yes,resizable=no,width=420,height=700,top=210,left=378");
	}
	else if (r == 5) 
	{
		window.open(flag+'publicar/conv_230709.html',"conv2","toolbar=no,location=no,directories=no,status=no, menubar=no,scrollbars=yes,resizable=no,width=420,height=525,top=210,left=378");
	}
	else if (r == 6) 
	{
		window.open(flag+'publicar/conv_030809.html',"conv2","toolbar=no,location=no,directories=no,status=no, menubar=no,scrollbars=no,resizable=no,width=448,height=655,top=210,left=378");
	}
	else if (r == 7) 
	{
		window.open(flag+'publicar/conv_130809.html',"conv3","toolbar=no,location=no,directories=no,status=no, menubar=no,scrollbars=yes,resizable=no,width=520,height=655,top=210,left=378");
	}
	else if (r == 8) 
	{
		window.open(flag+'publicar/conv_200809.html',"conv4","toolbar=no,location=no,directories=no,status=no, menubar=no,scrollbars=yes,resizable=no,width=620,height=901,top=210,left=400");
	}
	else if (r == 9) 
	{
		window.open(flag+'publicar/msg_2708094taConv.html',"conv5","toolbar=no,location=no,directories=no,status=no, menubar=no,scrollbars=yes,resizable=no,width=480,height=175,top=210,left=400");
	}
	else if (r == 10) 
	{
		window.open(flag+'publicar/resu/resuRECAS-2009-IV_Conv.html',"conv6","toolbar=no,location=no,directories=no,status=no, menubar=no,scrollbars=no,resizable=no,width=480,height=585,top=210,left=400");
	}
	else if (r == 11) 
	{
		window.open(flag+'publicar/conv_131009.html',"conv6","toolbar=no,location=no,directories=no,status=no, menubar=no,scrollbars=yes,resizable=no,width=560,height=585,top=210,left=400");
	}
	else if (r == 12) 
	{
		window.open(flag+'publicar/conv_191009.html',"conv7","toolbar=no,location=no,directories=no,status=no, menubar=no,scrollbars=no,resizable=no,width=540,height=635,top=330,left=500");
	}
	else if (r == 13) 
	{
		window.open(flag+'publicar/resu/resuRECAS-2009-V_Conv.html',"resu5","toolbar=no,location=no,directories=no,status=no, menubar=no,scrollbars=no,resizable=no,width=400,height=100,top=210,left=400");
	}
	else if (r == 14) 
	{
		window.open(flag+'publicar/conv_211009.html',"conv8","toolbar=no,location=no,directories=no,status=no, menubar=no,scrollbars=yes,resizable=no,width=505,height=635,top=330,left=200");
	}
	 else if (r == 15) 
	{
	 window.open(flag+'publicar/otro_aviso2.html',"MIRAND1","toolbar=no,location=no,directories=no,status=no, menubar=no,scrollbars=no,resizable=no,width=386,height=180,top=210,left=378");
	}
	 else if (r == 16) 
	{
	 window.open(flag+'publicar/conv_091109.html',"MIRAND2","toolbar=no,location=no,directories=no,status=no, menubar=no,scrollbars=no,resizable=no,width=540,height=650,top=190,left=278");
	}
	else if (r == 17) 
	{
	 //window.open('publicar/conv_010109.html',"RMAZA55","toolbar=no,location=no,directories=no,status=no, menubar=no,scrollbars=yes,resizable=no,width=700,height=600,top=190,left=278");
	 window.open(flag+'publicar/conv_011209_.html',"RMAZA55","toolbar=no,location=no,directories=no,status=no, menubar=no,scrollbars=yes,resizable=no,width=585,height=715,top=190,left=278");
	}
	else if (r == 18) 
	{
	 window.open(flag+'publicar/conv_211209.html',"MIRANDA3","toolbar=no,location=no,directories=no,status=no, menubar=no,scrollbars=auto,resizable=no,width=675,height=735,top=190,left=278");
	}
	else if (r == 19) 
	{
	 window.open(flag+'publicar/conv_291209.html',"MIRANDA4","toolbar=no,location=no,directories=no,status=no, menubar=no,scrollbars=yes,resizable=no,width=630,height=735,top=250,left=300");
	}
	else if (r == 20) 
	{
	 window.open(flag+'publicar/resu/resuREC-2009-XII.html',"MIRANDA5","toolbar=no,location=no,directories=no,status=no, menubar=no,scrollbars=auto,resizable=no,width=380,height=180,top=250,left=300");
	}
	else if (r == 21) 
	{
	 window.open(flag+'publicar/conv_14012010cofo.html',"MIRANDA6","toolbar=no,location=no,directories=no,status=no, menubar=no,scrollbars=yes,resizable=no,width=500,height=600,top=250,left=600");
	}
	else if (r == 22) 
	{
	 window.open(flag+'publicar/conv_27012010cofo.html',"MIRANDA6","toolbar=no,location=no,directories=no,status=no, menubar=no,scrollbars=yes,resizable=no,width=578,height=600,top=250,left=600");
	}//resuREC-2010-I
	else if (r == 23) 
	{
		window.open(flag+'publicar/resu/resuREC-2010-I.html',"resu5","toolbar=no,location=no,directories=no,status=no, menubar=no,scrollbars=no,resizable=no,width=400,height=190,top=210,left=400");
	}
	else if (r == 24) 
	{
	 window.open(flag+'publicar/conv_01022010.html',"MIRANDA4","toolbar=no,location=no,directories=no,status=no, menubar=no,scrollbars=yes,resizable=no,width=680,height=735,top=280,left=580");
	}
	else if (r == 25) 
	{
		window.open(flag+'publicar/resu/resuREC-2010-II.html',"resu5","toolbar=no,location=no,directories=no,status=no, menubar=no,scrollbars=no,resizable=no,width=370,height=120,top=210,left=400");
	}
	else if (r == 26) 
	{
	 window.open(flag+'publicar/conv_12022010cofo.html',"MIRANDA6","toolbar=no,location=no,directories=no,status=no, menubar=no,scrollbars=yes,resizable=no,width=550,height=600,top=150,left=200");
	}
	else if (r == 27) 
	{
	 window.open(flag+'publicar/conv_15022010cofo.html',"MIRANDA1","toolbar=no,location=no,directories=no,status=no, menubar=no,scrollbars=yes,resizable=no,width=570,height=600,top=200,left=600");
	}
	else if (r == 28) 
	{
	 window.open(flag+'publicar/aviso_conv_4ta2010.html',"MIRAND17","toolbar=no,location=no,directories=no,status=no, menubar=no,scrollbars=yes,resizable=no,width=330,height=150,top=420,left=278");
	}
	else if (r == 29) 
	{
	 window.open(flag+'publicar/conv_22022010.html',"MIRANDA18","toolbar=no,location=no,directories=no,status=no, menubar=no,scrollbars=yes,resizable=no,width=432,height=600,top=250,left=600");
	}
	else if (r == 30) 
	{
	 	 window.open(flag+'publicar/aviso_conv_3ra.html',"MIRAND19","toolbar=no,location=no,directories=no,status=no, menubar=no,scrollbars=no,resizable=no,width=470,height=200,top=210,left=278");
	}
	else if (r == 31) 
	{
		window.open(flag+'publicar/resu/resuREC-2010-III.html',"resu5","toolbar=no,location=no,directories=no,status=no, menubar=no,scrollbars=no,resizable=no,width=370,height=150,top=210,left=400");
	}
	else if (r == 32) 
	{
		 window.open(flag+'publicar/conv_16032010cofo.html',"MIRANDA1","toolbar=no,location=no,directories=no,status=no, menubar=no,scrollbars=yes,resizable=no,width=451,height=600,top=200,left=600");
	}
	else if (r == 33) 
	{
		window.open(flag+'publicar/resu/resuREC-2010-IV.html',"resu5","toolbar=no,location=no,directories=no,status=no, menubar=no,scrollbars=no,resizable=no,width=370,height=100,top=210,left=500");
	}
	else if (r == 34) 
	{
		window.open(flag+'publicar/conv_23042010cofo.html',"MIRANDA5","toolbar=no,location=no,directories=no,status=no, menubar=no,scrollbars=yes,resizable=no,width=570,height=600,top=200,left=600");

	}
	else if (r == 35) 
	{
		window.open(flag+'publicar/avisoResol.html',"MIRANDA6","toolbar=no,location=no,directories=no,status=no, menubar=no,scrollbars=yes,resizable=no,width=300,height=40,top=200,left=600");
	}
	else if (r == 36) 
	{
 	 window.open(flag+'publicar/otro_aviso3.html',"MIRAND36","toolbar=no,location=no,directories=no,status=no, menubar=no,scrollbars=no,resizable=no,width=300,height=190,top=210,left=278");

	}
	else if (r == 37) 
	{
 	 window.open(flag+'publicar/resu/resuREC-2010-V.html',"conv91","toolbar=no,location=no,directories=no,status=no, menubar=no,scrollbars=no,resizable=no,width=480,height=130,top=210,left=400");

	}
	else if (r == 38) 
	{
		window.open(flag+'publicar/conv_16062010cofo.html',"MIRANDA8","toolbar=no,location=no,directories=no,status=no, menubar=no,scrollbars=yes,resizable=no,width=535,height=600,top=200,left=600");
	}
	else if (r == 39) 
	{
		window.open(flag+'publicar/resu/resuREC-2010-VI.html',"resu6","toolbar=no,location=no,directories=no,status=no, menubar=no,scrollbars=no,resizable=no,width=370,height=100,top=210,left=550");
	} 
	else if (r == 40) 
	{
		window.open(flag+'publicar/comunicado.html',"comun","toolbar=no,location=no,directories=no,status=no, menubar=no,scrollbars=no,resizable=no,width=300,height=277,top=210,left=580");
	}
	else if (r == 41) 
	{
		window.open(flag+'publicar/conv_13072010cofo.html',"MIRANDA74","toolbar=no,location=no,directories=no,status=no, menubar=no,scrollbars=yes,resizable=no,width=520,height=600,top=200,left=450");
	}
	else if (r == 42) 
	{
		window.open(flag+'publicar/resu/resuCLS-2010-I(SNIP).html',"MIRANDA75","toolbar=no,location=no,directories=no,status=no, menubar=no,scrollbars=yes,resizable=no,width=430,height=25,top=200,left=460");
	}



}


function abre_boletin()
{
 window.open('pdf/boletin/BoletinJulio.pdf',"PREDIO2","toolbar=no,location=no,directories=no,status=no, menubar=no,scrollbars=yes,resizable=no,width=800,height=800,top=100,left=100");
 //width=338,height=150,top=410,left=400
  }

function abre_concurso()
{
 //window.open('aviso5.html',"CONCURSO77","toolbar=no,location=no,directories=no,status=no, menubar=no,scrollbars=no,resizable=no,width=320,height=101,top=200,left=500");
  window.open('avison.html',"Buuuu","toolbar=no,location=no,directories=no,status=no, menubar=no,scrollbars=no,resizable=no,width=300,height=280,top=510,left=628");
}

function abre_bases_concurso()
{
 window.open('pdf/bases_formalizar.pdf',"BASES","toolbar=no,location=no,directories=no,status=no, menubar=no,scrollbars=yes,resizable=no,width=800,height=800,top=100,left=100");
}

function abre_concurso_recas()
{
 window.open('aviso.html',"BASES11","toolbar=no,location=no,directories=no,status=no, menubar=no,scrollbars=yes,resizable=no,width=480,height=490,top=210,left=378");
}

function abre_resul_RECAS2009()
{
  window.open('resuRECAS-2009-IIExt.html',"resultadoRecas2","toolbar=no,location=no,directories=no,status=no, menubar=no,scrollbars=yes,resizable=no,width=390,height=230,top=240,left=80");
}


function abre_concurso_pcdpi()
{
// window.open('avisoPCDPI.html',"BASES12","toolbar=no,location=no,directories=no,status=no, menubar=no,scrollbars=yes,resizable=yes,width=380,height=213,top=310,left=678");
 window.open('aviso_pcdpi.html',"BASES12","toolbar=no,location=no,directories=no,status=no, menubar=no,scrollbars=no,resizable=no,width=510,height=660,top=210,left=300");
}

function org_comple()
{
 org1=window.open('ppOrgcomp.htm','Org','width=775,height=530,left=30,top=30,scrollbars=no,resizable=yes');
}

function Abre_mapa()
{
map=window.open('banner/Telefonos.htm','Ambito_De_Accion','height=550,width=950,left=0,top=40,scrollbars=no');
}

function abrir1(){
	window.location.href="rutaftp.asp?opc=1"	
}
function abrir2(){
	window.location.href="rutaftp.asp?opc=2"
}

function verGaleria(ubi)
{
	window.location.href="bdigital.asp?nf="+ubi
//	gal=window.open('galeria.asp?indice='+ubi,'GaleriadeFotos','width=605,height=490,top=110,left=110');
}
//Politica Remunerativa
function Abre_politica_rem()
{
polrem=window.open('quie_politicaRemun.html','POL','width=639,height=420,left=100,top=150,scrollbars=yes');
}

function ver_foto(i,x)
{
 org=window.open('ppVerFoto.asp?i='+i+'&x='+x,'Organigrama','width=640,height=480,left=0,top=0,scrollbars=no');
}

function winopen1(nom,id,ven) {
msg1=open("prueba_ver_foto.asp?nom="+nom+"&id="+id,ven,"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=342,height=256,left=440,top=240");
}


function openPictureWindow(imageName,imageWidth,imageHeight,Wwidth,Wheight,alt,posLeft,posTop,texto) {
	newWindow = window.open("","newWindow","width="+Wwidth+",height="+Wheight+",left="+posLeft+",top="+posTop);
	newWindow.document.open();
	newWindow.document.write('<html><head><title>'+alt+'</title><style type"text/css">.texto{font-family: Arial;font-size:11;color:#396081;</style></head><body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0">'); 
	newWindow.document.write('<img src='+imageName+' width='+imageWidth+' height='+imageHeight+' alt='+alt+'>');
	newWindow.document.write('<table width="640" border="0"><tr><td width="570" height="24" valign="middle"><div align="left" class="texto">'+texto+'</div></td><td width="70" height="24" valign="top"><a href="#"><img src="imagen/Cerrarw.gif" valign="middle" border="0" OnClick="window.close()" alt="Cerrar Ventana"></a></td></tr></table>'); 
	newWindow.document.write('</body></html>');
	newWindow.focus();
}

function openVideoWindow(VideoName,Wwidth,Wheight,posLeft,posTop,texto) {
	newWindow = window.open("","newWindow","width="+Wwidth+",height="+Wheight+",left="+posLeft+",top="+posTop);
	newWindow.document.open();
	newWindow.document.write('<html><head><title>Archivo de Video</title><style type"text/css">.texto{font-family: Arial;font-size:11;color:#ffffff;</style></head>');
	newWindow.document.write('<body bgcolor="#000000" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0">');
	newWindow.document.write('<div align="center"><table bgcolor="#000000" width="350">');
	newWindow.document.write('<tr height="65"><td width="350" background="imagen/cabeza_estruc_vid.jpg" valign="middle" class="texto">'+texto+'<br><br><br></td></tr>');
	newWindow.document.write('<tr><td><div align="center"><img src="imagen/Video.gif" width="320" height="240"  dynsrc="videos/'+VideoName+'" controls start="fileopen" loop="1" showcontrols=1 border="1" align="absmiddle"></div><td></tr>');
	newWindow.document.write('<tr><td align="center"><a href="javascript:window.location.reload()"><img src="imagen/reload.gif" alt="Volver a Ver" width="24" height="24" border="0"></a>&nbsp;&nbsp;&nbsp;&nbsp;');
	newWindow.document.write('<a href="javascript:window.close()"><img src="imagen/exit.gif" alt="Cerrar" border="0"></a></td></tr>');
	newWindow.document.write('</table></div>');
	newWindow.document.write('</body></html>');
	newWindow.focus();
}


function openMediaWindow(VideoName,Wwidth,Wheight,posLeft,posTop,texto,Vidwidth,Vidheight) {
	newWindow = window.open("","newWindow","width="+Wwidth+",height="+Wheight+",left="+posLeft+",top="+posTop);
	newWindow.document.open();
	newWindow.document.write('<html><head><title>Archivo de Video</title><style type"text/css">.texto{font-family: Arial;font-size:11;color:#ffffff;</style></head>');
	newWindow.document.write('<body bgcolor="#000000" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0">');
	newWindow.document.write('<div align="center"><table bgcolor="#000000" width="350">');
	newWindow.document.write('<tr height="65"><td width="350" background="imagen/cabeza_estruc_vid.jpg" valign="middle" class="texto">'+texto+'<br><br><br></td></tr>');
	newWindow.document.write('<tr><td><div align="center"><OBJECT id=MediaPlayer  codeBase=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715 type=application/x-oleobject height='+Vidheight+' standby="Loading Microsoft Windows Media Player components..." width='+Vidwidth+' classid=CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95>');
	newWindow.document.write('<PARAM NAME="FileName" VALUE="'+VideoName+'"><PARAM NAME="AnimationatStart" VALUE="true"><PARAM NAME="TransparentatStart" VALUE="false"><PARAM NAME="AutoStart" VALUE="true"><PARAM NAME="ShowControls" VALUE="1">');
	newWindow.document.write('<EMBED type="application/x-mplayer2" pluginspage="http://www.microsoft.com/isapi/redir.dll?prd=windows&sbp=mediaplayer&ar=Media&sba=Plugin&" src="'+VideoName+'" showcontrols="1" width="'+Vidwidth+'" height="'+Vidheight+'"></EMBED></OBJECT></div><td></tr>');
	newWindow.document.write('<tr><td align="center">&nbsp;&nbsp;&nbsp;&nbsp;</td></tr>');
	newWindow.document.write('</table></div>');
	newWindow.document.write('</body></html>');
	newWindow.focus();
}


function openFlvWindow(VideoName,Wwidth,Wheight,posLeft,posTop,texto,Vidwidth,Vidheight) {
	newWindow = window.open("","newWindow","width="+Wwidth+",height="+Wheight+",left="+posLeft+",top="+posTop);
	newWindow.document.open();
	newWindow.document.write('<html><head><title>Archivo de Video</title><style type"text/css">.texto{font-family: Arial;font-size:11;color:#ffffff;</style></head>');
	newWindow.document.write('<body bgcolor="#000000" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0">');
	newWindow.document.write('<div align="center"><table bgcolor="#000000" width="350">');
	newWindow.document.write('<tr height="65"><td width="350" background="imagen/cabeza_estruc_vid.jpg" valign="middle" class="texto">'+texto+'<br><br><br></td></tr>');
	newWindow.document.write('<tr><td><div align="center"><OBJECT id=MediaPlayer  codeBase=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715 type=application/x-oleobject height='+Vidheight+' standby="Loading Microsoft Windows Media Player components..." width='+Vidwidth+' classid=CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95>');
	newWindow.document.write('<PARAM NAME="FileName" VALUE="'+VideoName+'"><PARAM NAME="AnimationatStart" VALUE="true"><PARAM NAME="TransparentatStart" VALUE="false"><PARAM NAME="AutoStart" VALUE="true"><PARAM NAME="ShowControls" VALUE="1">');
	newWindow.document.write('<EMBED type="application/x-mplayer2" pluginspage="http://www.microsoft.com/isapi/redir.dll?prd=windows&sbp=mediaplayer&ar=Media&sba=Plugin&" src="'+VideoName+'" showcontrols="1" width="'+Vidwidth+'" height="'+Vidheight+'"></EMBED></OBJECT></div><td></tr>');
	newWindow.document.write('<tr><td align="center">&nbsp;&nbsp;&nbsp;&nbsp;</td></tr>');
	newWindow.document.write('</table></div>');
	newWindow.document.write('</body></html>');
	newWindow.focus();
}

function openMap(imageName,imageWidth,imageHeight,Wwidth,Wheight,alt,posLeft,posTop,texto) {
	newWindow = window.open("mapa2.html","newWindow","width="+Wwidth+",height="+Wheight+",left="+posLeft+",top="+posTop+",scrollbars=yes");
}
function expandCollapse() {
	for (var i=0; i<expandCollapse.arguments.length; i++) {
		var element = document.getElementById(expandCollapse.arguments[i]);
		element.style.display = (element.style.display == "none") ? "block" : "none";
		//alert("DISPLAY =  " + eval(element.style.display)  + " elemento " + eval(element));
	}
}
function popup_func(x)
{
	//alert(i);
	//return;
	//x = eval(i);
	//alert(x);
	if (x=='1'){
		func1=window.open('quie_funcion_de.htm','Direccion_Ejecutiva','width=657,height=180,left=100,top=250,scrollbars=no');
		}
	else if (x=='2'){
		func2=window.open('quie_funcion_oci.htm','Organo_de_Control_Institucional','width=673,height=200,left=100,top=250,scrollbars=yes');
		}
	else if (x=='3'){
		func3=window.open('quie_funcion_tap.htm','Tribunal_Administrativo_de_la_Propiedad','width=673,height=200,left=100,top=250,scrollbars=yes');
	}
	else if (x=='4'){
		func4=window.open('quie_funcion_sg.htm','Secretaria_General','width=673,height=195,left=100,top=250,scrollbars=yes');
	}
	else if (x=='5'){
		func5=window.open('quie_funcion_opp.htm','Oficina_de_Planeamiento_y_Presupuesto','width=673,height=265,left=100,top=250,scrollbars=yes');
	}
	else if (x=='6'){
		func6=window.open('quie_funcion_oaj.htm','Oficina_de_Asesoria_Juridica','width=673,height=220,left=100,top=250,scrollbars=yes');
	}
	else if (x=='7'){
		func7=window.open('quie_funcion_oa.htm','Oficina_de_Administracion','width=673,height=350,left=100,top=250,scrollbars=yes');
	}
	else if (x=='8'){
		func8=window.open('quie_funcion_os.htm','Oficina_de_Sistemas','width=657,height=220,left=100,top=250,scrollbars=no');
	}
	else if (x=='9'){
		func9=window.open('quie_funcion_ocd.htm','Oficina_de_Coordinacion_Descentralizada','width=657,height=220,left=100,top=250,scrollbars=yes');
	}
	else if (x=='10'){
		func10=window.open('quie_funcion_dc.htm','Direccion_de_Catastro','width=673,height=220,left=100,top=250,scrollbars=yes');
	}
	else if (x=='11'){
		func11=window.open('quie_funcion_dfint.htm','Direccion_de_Formalizacion_Integral','width=673,height=220,left=100,top=250,scrollbars=yes');
	}
	else if (x=='12'){
		func12=window.open('quie_funcion_dfind.htm','Direccion_de_Formalizacion_Individual','width=673,height=220,left=100,top=250,scrollbars=yes');
	}
	else if (x=='13'){
		func13=window.open('quie_funcion_dnd.htm','Direccion_de_Normalizacion_y_Desarrollo','width=673,height=220,left=100,top=250,scrollbars=yes');
	}




}
function popup_estruc(x)
{
	var estr1, estr2;
	if (x=='1'){
		estr1=window.open('../quie_estruct_org.htm','Organigrama1','width=626,height=580,left=100,top=250,scrollbars=no');
		}
	else if (x=='2'){
		estr2=window.open('../quie_estruct_orgcom.htm','Organigrama2','width=791,height=580,left=30,top=30,scrollbars=yes');
	} else if (x=='3'){
		estr1=window.open('web/quie_estruct_org.htm','Organigrama1','width=626,height=580,left=100,top=250,scrollbars=no');
	}
		
}
function popup_activ(x)
{
	if (x=='0'){
		act0=window.open('../trans_actividades_de.asp','Organigrama','width=610,height=460,left=100,top=250,scrollbars=yes');
		} else {
		act1=window.open('trans_actividades_de.asp','Organigrama','width=610,height=460,left=100,top=250,scrollbars=yes');
		}


	/*else if (x=='1'){
		act1=window.open('trans_actividades_pres.asp','Organigrama','width=596,height=460,left=100,top=250,scrollbars=yes');
		}
	else if (x=='2'){
		act2=window.open('trans_actividades_cn.asp','Organigrama','width=596,height=460,left=100,top=250,scrollbars=yes');
	}*/
		
}

function enviar(){
		if (document.form1.tu_nombre.value==""){
			alert("Por favor, ingresa tu nombre.");
			document.form1.tu_nombre.focus();
			return;
			}
		if (document.form1.tu_email.value==""){
			alert("Por favor, ingresa tu email.");
			document.form1.tu_email.focus();
			return;
		} else {
				if(!validarEmail(document.form1.tu_email.value)) {
						document.form1.tu_email.focus();
						return;
				}
		}

		if (document.form1.tu_dni.value!=""){
			 var er = /^[0-9]+$/;
			  if(document.form1.tu_dni.value.match(er)) {}
			  else {
				  document.form1.tu_dni.focus();
					return;
			  }
		} else {
			alert("Por favor, ingresa tu dni.");
			document.form1.tu_dni.focus();
			return;
		}

		if (document.form1.tu_coment.value==""){
			alert("Por favor ingresa tus comentarios.");
			document.form1.tu_coment.focus();
			return;
		}
		else{
			//alert("va a enviar");
			document.form1.submit();
		}
	}
function catastro()
{
	window.open('cat_sigcat.asp','Catastro',' toolbar=no,scrollbars=yes');
}

function popup_arq(x)
{
	if (x=='0'){
		arq0=window.open('form_arqueolog_prod.htm','Productos','width=637,height=450,left=100,top=250,scrollbars=yes');
		}
	else if (x=='1'){
		arq1=window.open('form_arqueolog_etapa1.htm','Etapa_l','width=653,height=515,left=100,top=150,scrollbars=no');
		}
	else if (x=='2'){
		arq2=window.open('form_arqueolog_etapa2.htm','Etapa_2','width=653,height=515,left=100,top=150,scrollbars=no');
	}
	else if (x=='3'){
		arq3=window.open('form_arqueolog_etapa3.htm','Etapa_3','width=653,height=515,left=100,top=150,scrollbars=no');
	}
	else if (x=='4'){
		arq4=window.open('form_arqueolog_convenio.htm','Convenio','width=653,height=515,left=100,top=150,scrollbars=no');
	}
}




function popup_public(x)
{
	if (x=='0'){
		arq0=window.open('bdig_public_caso1.htm','Caso_1','width=637,height=450,left=100,top=150,scrollbars=yes');
		}
	else if (x=='1'){
		arq1=window.open('bdig_public_caso2.htm','Caso_2','width=637,height=450,left=100,top=150,scrollbars=yes');
		}
	else if (x=='2'){
		arq2=window.open('bdig_public_caso3.htm','Caso_3','width=637,height=450,left=100,top=150,scrollbars=yes');
	}
	else if (x=='3'){
		arq3=window.open('bdig_public_caso4.htm','Caso_4','width=637,height=450,left=100,top=150,scrollbars=yes');
	}
	else if (x=='4'){
		arq4=window.open('bdig_public_devmist.htm','Develando_El_Misterio','width=637,height=450,left=100,top=150,scrollbars=yes');
	}
	else if (x=='5'){
		arq4=window.open('bdig_public_exito.htm','Cuatro_Historias_De_Exito','width=637,height=450,left=100,top=150,scrollbars=yes');
	}
	else if (x=='6'){
		arq4=window.open('bdig_public_ghif.htm','Promoción_del_Crédito_y_las_Inversiones_Informe_Final','width=637,height=450,left=100,top=150,scrollbars=yes');
	}
	else if (x=='7'){
		arq4=window.open('bdig_public_arena.htm','Promoción_del_Crédito_y_las_Inversiones_Informe_Final','width=637,height=450,left=100,top=150,scrollbars=yes');
	}
	else if (x=='8'){
		arq4=window.open('bdig_public_lts.htm','Promoción_del_Crédito_y_las_Inversiones_Informe_Final','width=637,height=450,left=100,top=150,scrollbars=yes');
	}
	else if (x=='9'){
		arq4=window.open('bdig_public_mium.htm','Estudio_Cualitativo_del_Mercado_Inmobiliario_Urbano_Marginal','width=637,height=450,left=100,top=150,scrollbars=yes');
	}
	else if (x=='10'){
		arq4=window.open('bdig_public_desco.htm','Estudio_de_Cultura_Registral','width=637,height=450,left=100,top=150,scrollbars=yes');
	}
}



function popup_creditos(x)
{
	if (x=='1'){
		arq0=window.open('cif_pp_creditos.asp?i=1','Información_Crediticia_1','width=686,height=530,left=50,top=130,scrollbars=yes');
		}
	else if (x=='2'){
		arq1=window.open('cif_pp_creditos.asp?i=2','Información_Crediticia_2','width=686,height=530,left=50,top=130,scrollbars=yes');
		}
	else if (x=='3'){
		arq2=window.open('cif_pp_creditos.asp?i=3','Información_Crediticia_3','width=686,height=530,left=100,top=130,scrollbars=yes');
	}
	else if (x=='4'){
		arq3=window.open('cif_pp_creditos.asp?i=4','Información_Crediticia_4','width=686,height=530,left=100,top=130,scrollbars=yes');
	}
	else if (x=='5'){
		arq4=window.open('cif_pp_creditos.asp?i=5','Información_Crediticia_5','width=686,height=530,left=100,top=130,scrollbars=yes');
	}
	else if (x=='6'){
		arq4=window.open('cif_pp_creditos.asp?i=6','Información_Crediticia_6','width=686,height=530,left=100,top=130,scrollbars=yes');
	}
	else if (x=='7'){
		arq4=window.open('cif_pp_creditos.asp?i=7','Información_Crediticia_7','width=686,height=530,left=100,top=130,scrollbars=yes');
	}
	else if (x=='8'){
		arq4=window.open('cif_pp_creditos.asp?i=8','Información_Crediticia_7','width=686,height=530,left=100,top=130,scrollbars=yes');
	}

}

function Abre_plan()
{
//plan=window.open('pdf/PlaneamientoEstrategico2006-2010.pdf','Planeamiento_Estrategico','height=550,width=950,left=0,top=40,scrollbars=yes');
pe=window.open('quie_pe.htm','Planeamiento_Estrategico','width=637,height=390,left=100,top=150,scrollbars=yes');
}

function Abre_nlegales()
{
pe=window.open('quie_mlegalnormas.htm','Normas_Legales','width=637,height=390,left=100,top=150,scrollbars=yes');
}

function Abre_planop()
{
//plan=window.open('pdf/PlaneamientoEstrategico2006-2010.pdf','Planeamiento_Estrategico','height=550,width=950,left=0,top=40,scrollbars=yes');
pe=window.open('quie_poi.htm','Plan_Operativo_Institucional','width=637,height=390,left=100,top=150,scrollbars=yes');
}

function Abre_mof()
{
mof=window.open('quie_mof.htm','MOF','width=637,height=420,left=100,top=150,scrollbars=yes');
}

function Abre_rof()
{
rof=window.open('quie_rof.htm','ROF','width=637,height=420,left=100,top=150,scrollbars=yes');
}

function Abre_cap()
{
cap=window.open('quie_cap.htm','CAP','width=637,height=420,left=100,top=150,scrollbars=yes');
}

function Abre_clascargo()
{
cap=window.open('quie_clfcargo.html','CLA','width=637,height=420,left=100,top=150,scrollbars=yes');
}

function Ir_predio() {
	window.location.href="clinea.asp?i=0";
}

//Memoria Anual
function Abre_memoria()
{
polrem=window.open('quie_memoria.html','POL','width=639,height=420,left=100,top=150,scrollbars=yes');
}


function popup_trans_adj(o,y,z)
{
	indice = 0;
	cont = 0;
	rot1 = "www.cofopri.gob.pe";
	rot2 = "www.cofoprialdia.gob.pe";

	url = document.location.href; 
    partes = url.split("");

	for(x = 7; x < url.length; x++)
	{
			if (partes[x]=="/")
			{
				cont++;
				indice = x
				if (cont = 3)
					 break;
			}
			
			
	} 

	if (url.substring(7,indice) == rot1)
		{
					act1=window.open('../trans_adj_fr.asp?act='+o+'&c1='+y+'&c2='+z,'Transparencia','width=596,height=600,left=100,top=250,scrollbars=yes,resizable=yes');
		} else {
					act1=window.open('../web/trans_adj_fr.asp?act='+o+'&c1='+y+'&c2='+z,'Transparencia','width=596,height=600,left=100,top=250,scrollbars=yes,resizable=yes');
		}
	
}


function popup_transp(x,y,z)
{
//	alert('x='+x+' y='+y+' z='+z)
act1=window.open('trans_gral_fr1.asp?act='+x+'&c1='+y+'&c2='+z,'Transparencia1','width=596,height=460,left=100,top=250,scrollbars=yes,resizable=yes');
}


function AC_AddExtension(src, ext)
{
  if (src.indexOf('?') != -1)
    return src.replace(/\?/, ext+'?'); 
  else
    return src + ext;
}

function AC_Generateobj(objAttrs, params, embedAttrs) 
{ 
  var str = '<object ';
  for (var i in objAttrs)
    str += i + '="' + objAttrs[i] + '" ';
  str += '>';
  for (var i in params)
    str += '<param name="' + i + '" value="' + params[i] + '" /> ';
  str += '<embed ';
  for (var i in embedAttrs)
    str += i + '="' + embedAttrs[i] + '" ';
  str += ' ></embed></object>';

  document.write(str);
}

function AC_FL_RunContent(){
  var ret = 
    AC_GetArgs
    (  arguments, ".swf", "movie", "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
     , "application/x-shockwave-flash"
    );
  AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
}

function AC_SW_RunContent(){
  var ret = 
    AC_GetArgs
    (  arguments, ".dcr", "src", "clsid:166B1BCA-3F9C-11CF-8075-444553540000"
     , null
    );
  AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
}

function AC_GetArgs(args, ext, srcParamName, classid, mimeType){
  var ret = new Object();
  ret.embedAttrs = new Object();
  ret.params = new Object();
  ret.objAttrs = new Object();
  for (var i=0; i < args.length; i=i+2){
    var currArg = args[i].toLowerCase();    

    switch (currArg){	
      case "classid":
        break;
      case "pluginspage":
        ret.embedAttrs[args[i]] = args[i+1];
        break;
      case "src":
      case "movie":	
        args[i+1] = AC_AddExtension(args[i+1], ext);
        ret.embedAttrs["src"] = args[i+1];
        ret.params[srcParamName] = args[i+1];
        break;
      case "onafterupdate":
      case "onbeforeupdate":
      case "onblur":
      case "oncellchange":
      case "onclick":
      case "ondblClick":
      case "ondrag":
      case "ondragend":
      case "ondragenter":
      case "ondragleave":
      case "ondragover":
      case "ondrop":
      case "onfinish":
      case "onfocus":
      case "onhelp":
      case "onmousedown":
      case "onmouseup":
      case "onmouseover":
      case "onmousemove":
      case "onmouseout":
      case "onkeypress":
      case "onkeydown":
      case "onkeyup":
      case "onload":
      case "onlosecapture":
      case "onpropertychange":
      case "onreadystatechange":
      case "onrowsdelete":
      case "onrowenter":
      case "onrowexit":
      case "onrowsinserted":
      case "onstart":
      case "onscroll":
      case "onbeforeeditfocus":
      case "onactivate":
      case "onbeforedeactivate":
      case "ondeactivate":
      case "type":
      case "codebase":
        ret.objAttrs[args[i]] = args[i+1];
        break;
      case "width":
      case "height":
      case "align":
      case "vspace": 
      case "hspace":
      case "class":
      case "title":
      case "accesskey":
      case "name":
      case "id":
      case "tabindex":
        ret.embedAttrs[args[i]] = ret.objAttrs[args[i]] = args[i+1];
        break;
      default:
        ret.embedAttrs[args[i]] = ret.params[args[i]] = args[i+1];
    }
  }
  ret.objAttrs["classid"] = classid;
  if (mimeType) ret.embedAttrs["type"] = mimeType;
  return ret;
}

function MostrarFecha()   
   {   
   var nombres_dias = new Array("Domingo", "Lunes", "Martes", "Miércoles", "Jueves", "Viernes", "Sábado")   
   var nombres_meses = new Array("enero", "febrero", "marzo", "abril", "mayo", "junio", "julio", "agosto", "septiembre", "octubre", "noviembre", "diciembre")   
  
   var fecha_actual = new Date()   
  
   dia_mes = fecha_actual.getDate()     //dia del mes   
   dia_semana = fecha_actual.getDay()       //dia de la semana   
   mes = fecha_actual.getMonth() + 1   
   anio = fecha_actual.getFullYear()   
  
   //escribe en pagina   
   document.write("<font style='font-family : Tahoma;color : #1E3260;font-size : 11px;font-weight : bold;font-size:10px'>")
   document.write("PERÚ&nbsp;,&nbsp;&nbsp;"+ dia_mes + " de " + nombres_meses[mes - 1] + " de " + anio+"</font>")   
   //document.write("PERÚ&nbsp;&nbsp;"+nombres_dias[dia_semana] + ", " + dia_mes + " de " + nombres_meses[mes - 1] + " de " + anio+"</font>")   
   }   


 function validarEmail(valor) {
  if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(valor)){
   return true
  } else {
   alert("La dirección de email es incorrecta.");
   return false
  }
 }

 function cerrarSesion(){ 
  	   //var pagina = self.location.href.match( /\/([^/]+)$/ )[1];
	//window.open('cerrarSession.asp','MOF','width=0px,height=0px,left=100,top=150,scrollbars=yes');
	   
	   //mof.close()
	   //alert(pagina)
	   //alert(window.event.clientX)
	   //alert(window.event.clientY)
	  if (window.event.clientX > 0 && (window.event.clientY > - 25 && window.event.clientY < 0))
		{
			mof = window.open('cerrarSession.asp','MOF','width=0px,height=0px,left=100,top=150,scrollbars=yes');
		    mof.close()


     
		}
 } 




        