var char_set = '$%^NOZ1&PQR(./~`"CDEFG!@STUVWZghij}:<pHB*#8uvwx>?[]\',ef34590qrklmnoIJ)_+{st67 abcdAyzKLM2YńŃX-';

function ComillasComa(cad)
{
  var a = 0;
  var cadlen = cad.length;
  var letra = '';
  var total = '';

  while (a <= cadlen) {
    numreg = '';
    letra = cad.substr(a, 1);
    while ( (letra != ',') && (a <= cadlen) ) {
      letra = cad.substr(a,1);
      if (letra != ',') numreg = numreg + letra;       
      a++;
    }
    total = total + "'" + Trim(numreg) + "',";
  }
	total = total.substr(0, total.length - 1);
	return total;
}

function FormatearVentana(vHeight,vWidth)
{
  
  LeftPosition = (screen.width) ? (screen.width - vWidth)/2 : 0;
  TopPosition = (screen.height) ? (screen.height - vHeight)/2 : 0;
  settings ='height=' + vHeight + ',width=' + vWidth + ',top=' + TopPosition + ',left=' + LeftPosition + ',bar=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1';
  
  return(settings);
}
function FormatearVentanaExcel(vHeight,vWidth)
{
  
  LeftPosition = (screen.width) ? (screen.width - vWidth)/2 : 0;
  TopPosition = (screen.height) ? (screen.height - vHeight)/2 : 0;
  settings ='height=' + vHeight + ',width=' + vWidth + ',top=' + TopPosition + ',left=' + LeftPosition + ',bar=0,toolbar=1,location=0,directories=0,status=0,menubar=1,scrollbars=1,resizable=1';
  
  return(settings);
}
function FormatearVentanaSinScroll(vHeight,vWidth)
{
  
  LeftPosition = (screen.width) ? (screen.width - vWidth)/2 : 0;
  TopPosition = (screen.height) ? (screen.height - vHeight)/2 : 0;
  settings ='height=' + vHeight + ',width=' + vWidth + ',top=' + TopPosition + ',left=' + LeftPosition + ',bar=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0';
  
  return(settings);
}
function chkNumero(vNumero, vFlag, vTamanioMax, vAlert) 
{  
  Entero = "0";
  Decimal = "00";
  
  PtoDecimal = vNumero.indexOf(".");
  if (PtoDecimal != -1)
  {
    if (vNumero.indexOf(".",PtoDecimal+1) != -1)
    {
      if (vAlert == 1)
        alert("Valor no válido");
      return("x");
    }
    if (vNumero.indexOf(",",PtoDecimal+1) != -1)
    {
      if (vAlert == 1)
        alert("Valor no válido");
      return("x");
    }
    if (vNumero.indexOf("'",PtoDecimal+1) != -1)
    {
      if (vAlert == 1)
        alert("Valor no válido");
      return("x");
    }
    if (vFlag==0) 
    {
      if (vAlert == 1)
        alert("Solo se aceptan valores enteros");
      return("x");
    }
    if (PtoDecimal== 0)
    {
      Entero="0";
    }
    else
    {
      Entero=vNumero.substr(0,PtoDecimal);
    }
    if (PtoDecimal== vNumero.length-1)
    {
      Decimal="00";
    }
    else
    {
      Decimal=vNumero.substr(PtoDecimal+1);
    }        
  }
  else
  {
    Entero = vNumero;
  }
  
  for (i = 0; i <=Entero.length - 1 ; i++)
  {
    if (Entero.length > 1)
    {
    
      if (Entero.substr(i,1)!="0" && Entero.substr(i,1)!="," && Entero.substr(i,1)!="'")
      {
        break;
      }
       else
      {
        Entero = Entero.substr(i+1)
        i = i-1
      }
    }
  }
  
  contador = 0;
  
  for (i = Entero.length - 1; i >=0 ; i--)
  {
    contador = contador + 1;
    valor = Entero.substr(i,1);
    if (valor != "0" && valor != "1" && valor != "2" && valor != "3" && valor != "4" && valor != "5" &&    
        valor != "6" && valor != "7" && valor != "8" && valor != "9")
    {
      if (contador%8 == 0 && valor != "," && valor != "'")
      {
        if (vAlert == 1)
          alert("Valor no válido");
        return("x");
      }
      else if (contador%8 == 0 && (valor == ","  || valor == "'"))
      {
        Entero=Entero.substr(0,i)+"'"+Entero.substr(i+1)        
      }
      else if (contador%4 == 0 && valor != ",")
      {
        if (vAlert == 1)
          alert("Valor no válido");
        return("x");
      }
      else if (contador%4!=0 && (valor == "," || valor == "'"))
      {
        if (vAlert == 1)
          alert("Valor no válido");
        return("x");
      }
      else if (valor != "," && valor != "'" )
      {
        if (vAlert == 1)
          alert("Valor no válido");
        return("x");
      }   
    }
    else
    {
      if (contador%8==0)
      {
        Entero = Entero.substr(0,i+1) + "'" + Entero.substr(i+1)
        i = i + 1
      }
      else if (contador%4==0)
      {
        Entero = Entero.substr(0,i+1) + "," + Entero.substr(i+1)
        i = i + 1
      }         
    }
  }

  if (Entero.length > vTamanioMax)
  {
    if (vAlert == 1)
       alert("Valor ingresado es muy grande");
    return("x");
  }
   
  if (vFlag == 0)
  { 
    return(Entero);
  }
  else
  {
   
    Decimal.substr(0,2)
    Decimal = Decimal + "00";
    Decimal = Decimal.substr(0,2);
      
    return(Entero + "." + Decimal);
 }
}

function ReemplazarComilla(Valor)
{
  Cadena=Valor;
  NuevaCadena="";

  if (Cadena != "")
  { 
    i = 0;
  
    while (i >= 0)
    {
      var temp=/\'/i;
      i = Cadena.search(temp);
      if (i < 0)
      {
        NuevaCadena = NuevaCadena + Cadena;
        break;
      }
      else
      {
         NuevaCadena = NuevaCadena + Cadena.substr(0,i) + "\'";
         Cadena = Cadena.substr(i+1);
      }
    }
   
    Cadena=NuevaCadena;
    NuevaCadena="";
    i = 0;
 
    while (i >= 0)
    {
      var temp=/"/i;
      i = Cadena.search(temp);
      if (i < 0)
      {
        NuevaCadena = NuevaCadena + Cadena;
        break;
      }
      else
      {
         NuevaCadena = NuevaCadena + Cadena.substr(0,i) + "\'";
         Cadena = Cadena.substr(i+1);                  
      }
    }
    Cadena=NuevaCadena;
 }  
 return(Cadena);
}

function chkDate(vYear, vMonth, vDay) 
{  
  var monthDays = new montharr(31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31);
  
  if (vYear.length < 4) 
  {
    alert("Fecha no válida. " + vDay+"/"+vMonth+"/"+vYear);
    return false; 
  }

  if (vDay >= 1 && vDay <= 31) 
  {
    if (vMonth < 1 || vMonth > 12) 
    {
      alert("Fecha no válida. " + vDay+"/"+vMonth+"/"+vYear);
      return false; 
    }
  }
  else 
  {
    alert("Fecha no válida." + vDay+"/"+vMonth+"/"+vYear);
    return false;
  }

  if (((vYear % 4 == 0) && (vYear % 100 != 0)) || (vYear % 400 == 0))
    monthDays[1] = 29;
  
  nDays = monthDays[vMonth-1];

  if (vDay > nDays) 
  {
    alert("Fecha no válida." + vDay+"/"+vMonth+"/"+vYear);
    return false;
  }
  return true;
}

function montharr (m0, m1, m2, m3, m4, m5, m6, m7, m8, m9, m10, m11) 
{
  this[0]  = m0;
  this[1]  = m1;
  this[2]  = m2;
  this[3]  = m3;
  this[4]  = m4;
  this[5]  = m5;
  this[6]  = m6;
  this[7]  = m7;
  this[8]  = m8;
  this[9]  = m9;
  this[10] = m10;
  this[11] = m11;
}

function ShowCal(form, pType)
{      
  addWindow = window.open("/STDW/Tools/Calendar.asp?SFormName=" + form.name +
                          "CDateType=" + pType, "Calendar",
                          "width=275,height=180,resizable=0,status=0,menubar=0,scrollbars=0,fullscreen=0");
  addWindow.focus(); 
}

function chkTime(vHor, vMin) 
{  
  if (vHor >= 0 || vHor <= 23) 
  {
    if (vMin < 0 || vMin > 59) 
    {
      alert("Hora no válida. " + vHor + ":" + vMin);
      return false; 
    }
  }
  else 
  {
    alert("Hora no válida." + vHor + ":" + vMin);
    return false;
  }
  return true;
}

function encrypt_data(value) 
{
  var input = value;
  var output = "";
  var char_code;

  //get algorithm from pull down select
  var algorithm = 4 //window.input.shift_select.selectedIndex;
  algorithm++;

  var alpha_length = char_set.length - algorithm;
  var space;

  //begin for loop to cycle through input
  for (loop=0; loop<input.length; loop++) {

    //if conditional detects unknown characters
    if (char_set.indexOf(input.charAt(loop)) == -1) {
      alert("Program Error: Unknown Character!");
    }

    //search char_set string for character and set char_code variable...
    char_code = char_set.indexOf(input.charAt(loop));

    //actual text encoding algorithm goes here
    if (char_code + algorithm > char_set.length)
    {
      space = char_set.length - char_code;
      char_code = algorithm - space;
    }
    else
    {
      char_code += algorithm;
    }

    //set output variable in accordance to char_set
    output += char_set.charAt(char_code);
  }
  //dump contents of output variable into textarea
  return output;
}

function decrypt_data(value)
{
  var input = value;
  var output = "";
  var char_code;

  //get algorithm from pull down select
  var algorithm = 4 //window.input.shift_select.selectedIndex;
  algorithm++;

  var alpha_length = char_set.length - algorithm;
  var space;

  //begin for loop to cycle through input
  for (loop=0; loop<input.length; loop++) {

    //if conditional detects unknown characters
    if (char_set.indexOf(input.charAt(loop)) == -1) {
      alert("Program Error: Unknown Character!");
    }

    //search char_set string for character and set char_code variable...
    char_code = char_set.indexOf(input.charAt(loop));

    //oppisite of encrypt algorithm goes here
    if (char_code - algorithm < 0)
    {
      space = algorithm - char_code;
      char_code = char_set.length - space;
    }
    else
    {
      char_code -= algorithm;
    }

//set output variable in accordance to char_set
    output += char_set.charAt(char_code);
  }
  
  //dump contents of output variable into textarea
  return(output);
}

function EsNumero(txt)
{ 
  for (i = txt.value.length - 1; i >=0 ; i--)
  {
    valor = txt.value.substr(i,1);
    if (valor != "0" && valor != "1" && valor != "2" && valor != "3" && valor != "4" && 
        valor != "5" && valor != "6" && valor != "7" && valor != "8" && valor != "9") 
    {
      alert("Valor no válido");
      txt.focus();
      break;
    }
  }
  return;
}

function OnlyNum(Entero)
{ 
  cRtn = "";
  for (i = 0; i < Entero.length; i++)
  {
    valor = Entero.substr(i, 1);
    if (valor == "0" || valor == "1" || valor == "2" || valor == "3" || valor == "4" ||
        valor == "5" || valor == "6" || valor == "7" || valor == "8" || valor == "9") {
      cRtn = cRtn + valor;
    }
  }
  return(cRtn);
}

function IsNum(Entero)
{ 
  cRtn = "";
  alert(Entero);
  alert(Entero.length);
  for (i = Entero.length - 1; i >=0 ; i--)
  {
    valor = Entero.substr(i,1);
    alert(valor);
    if (valor != "0" && valor != "1" && valor != "2" && valor != "3" && valor != "4" && 
        valor != "5" && valor != "6" && valor != "7" && valor != "8" && valor != "9") 
    {
      alert("Valor no válido");
      cRtn = "x";
      break;
    }
  }
  return(cRtn);
}

function ValidarDate(txt)
{ 
  if ( IsDate(txt.value) == 'x' ) {
    txt.focus();
    return;
  }
}

function IsDate(Entero)
{ 
  cRtn = "";
  for (i = Entero.length - 1; i >=0 ; i--)
  {
    valor = Entero.substr(i,1);
    if (valor != "0" && valor != "1" && valor != "2" && valor != "3" && valor != "4" && 
        valor != "5" && valor != "6" && valor != "7" && valor != "8" && valor != "9" && 
        valor != "/" ) 
      {
      alert("Valor no válido");
      cRtn = "x";
      break;
    }
  }
  return(cRtn);
}

function ValidarTime(txt)
{ 
  if ( IsTime(txt.value) == 'x' ) {
    txt.focus();
    return;
  }
}

function IsTime(Entero)
{ 
  cRtn = "";
  for (i = Entero.length - 1; i >=0 ; i--)
  {
    valor = Entero.substr(i,1);
    if (valor != "0" && valor != "1" && valor != "2" && valor != "3" && valor != "4" && 
        valor != "5" && valor != "6" && valor != "7" && valor != "8" && valor != "9" && 
        valor != ":" ) 
    {
      alert("Valor no válido");
      cRtn = "x";
      break;
    }
  }
  return(cRtn);
}

function CCA(CB, noHL)
{
  if (!noHL)
    if (CB.checked) 
      hL(CB);
    else
      dL(CB);
}

function CCD(CB)
{
  dL(CB);
}

function CCE(CB)
{
  hL(CB);
}

function hL(E)
{
  while (E.tagName != "TR")
  { E = E.parentElement;}

  E.className="H";
}

function dL(E)
{
  while (E.tagName != "TR")
  {E = E.parentElement;}
  
  E.className = "";
}


function CambiarMayuscula(txt) 
{ 
  sValor = txt.value;
  txt.value = sValor.toUpperCase();
  return;
}

function ValidarTamanio(txt,tamanio) 
{ 
  if (txt.value.length > tamanio) {
    txt.value=txt.value.substr(0,tamanio)
    txt.focus();
    alert("Solo puede ingresar como máximo " + tamanio + " caracteres" );
  }
}

function TraerValor(valor)
{
  var temp = /\|/i;
  
  i = valor.search(temp);
  
  if (i != 0)
    valor = valor.substr(0, i);
  else
    valor = "";

  return(valor);
}

function Formatear(txt)
{
  NumeroExpediente = txt.value;
  NumeroExpediente = (NumeroExpediente.replace(/^\s*/g,'').replace(/\s+$/g,''));
  
  if (NumeroExpediente != '') {
    NumeroExpediente = '000000' + NumeroExpediente
    txt.value = NumeroExpediente.substr(NumeroExpediente.length-6,6);
  }
}

function Trim(s) 
{
  // Remove leading spaces and carriage returns  
  while ((s.substring(0,1) == ' ') || (s.substring(0,1) == '\n') || (s.substring(0,1) == '\r'))
  {
    s = s.substring(1,s.length);
  }

  // Remove trailing spaces and carriage returns
  while ((s.substring(s.length-1,s.length) == ' ') || (s.substring(s.length-1,s.length) == '\n') || (s.substring(s.length-1,s.length) == '\r'))
  {
    s = s.substring(0,s.length-1);
  }
  return s;
}

function DeshabilitarControl(control)
{
  control.style.backgroundColor = '#D3D3D3';
  control.style.Color = '#000000';
  control.readOnly = true;
  control.disabled = false;
}

function HabilitarControl(control)
{
  control.style.backgroundColor = '#FFFFFF';
  control.style.Color = '#000000';
  control.readOnly = false;
  control.disabled = false;
}

function LlenarTexto(cbo,txt) 
{  
  i=cbo.options.selectedIndex;
  valor=cbo.options(i).value
  valor = valor.substring(0,1);
  txt.value=valor;
}


function GoURL(URL)
{
  window.open(URL);
}

function GoKeys(pCLangCode)
{
  window.open("../../Tools/Programs/KeysPage.asp?CLangCode=" + pCLangCode, "KeyWords", 
              "toolbar=no, status=no, menubar=no, scrollbars=no, width=600, height=250");
}

function irPagina(URL,tipoL)
{ 
 if (URL.length > 0)
   {
    if (tipoL==1)
     {
	   if ('www'==URL.substring(0,3))
		     {
        	  window.location.replace('http://' + URL);
 	  	     }
  			 else if ('http://www'==URL.substring(0,7))
			   {
			   //window.open(URL);
			   window.location.replace(URL);
			   }
			   else
			   {
			   window.location.replace(URL);
			   }
	  }
	 else
	  { 
  	   if ('www'==URL.substring(0,3))
		     {
 			   window.open('http://' + URL );
			 }
		else if ('http://www'==URL.substring(0,7))
			   {
			   window.open(URL);
			   }
		 else
			   {
			   window.open(URL);
			   }
      }
   }  
}

function VentanasEmergentes(IdVentana,IdIdioma,TVentana)
	 {
	 if(TVentana == 1)
		 {//alert(TVentana);
			 window.location.replace("VentanasEmergentes.asp?IdVentana="+ IdVentana +'&Idioma='+ IdIdioma);		  		
			 }
			 else
			 { //alert(TVentana);
  		        window.open("CargaVentanas.asp?Ventana="+ IdVentana +'&Idioma='+ IdIdioma ,'', 'scrollbars=yes,toolbar=no,location=0,directories=0,status=1,copyhistory=0,width=500,height=500,top=50,left=200,,');		  						 
				 }
  	     }
	 
	 
function VerAlbum(Idalbum)
	 {
		window.open("VistaAlbum.asp?IdAlbum="+ Idalbum ,'', 'scrollbars=no,toolbar=no,location=0,directories=0,status=1,copyhistory=0,width=520,height=400,top=50,left=200,,');		  		
	 }	
	 
	<!--
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_swapImgRestore() { //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;
}

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_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.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];}
}
//--> 

  function Consultas()
	 {
		window.open('http://www.petroperu.com.pe/Formularios/Consultas.asp','', 'scrollbars=yes,toolbar=no,location=0,directories=0,status=0,copyhistory=0,width=617,height=500,top=50,left=200,,');		  		
	 }	
  function Trabaje()
	 {
		window.open('http://www.petroperu.com.pe/Formularios/TrabajeconNosotros.asp','', 'scrollbars=yes,toolbar=no,location=0,directories=0,status=0,copyhistory=0,width=617,height=500,top=50,left=200,,');		  		
	 }	
  function Acceso()
	 {
		window.open('http://www.petroperu.com.pe/Formularios/AccesoInformacionPublicaok.asp','', 'scrollbars=yes,toolbar=no,location=0,directories=0,status=0,copyhistory=0,width=624,height=500,top=50,left=200,,');		  		
	 }	
  function Denuncias()
	 {
		window.open('http://www.petroperu.com.pe/Formularios/Denuncias.asp','', 'scrollbars=yes,toolbar=no,location=0,directories=0,status=0,copyhistory=0,width=617,height=500,top=50,left=200,,');		  		
	 }	
  function Sugerencias()
	 {
		window.open('http://www.petroperu.com.pe/Formularios/Sugerencias.asp','', 'scrollbars=yes,toolbar=no,location=0,directories=0,status=0,copyhistory=0,width=617,height=500,top=50,left=200,,');		  		
	 }
	   function Cope()
	 {
		window.open('http://www.petroperu.com.pe/Formularios/Cope.asp','', 'scrollbars=yes,toolbar=no,location=0,directories=0,status=0,copyhistory=0,width=617,height=500,top=50,left=200,,');		  		
	 }
	 
	 function gnv()
{
	window.open('http://www.petroperu.com.pe/Animaciones/Gaseoducto/gnv.htm','', 'scrollbars=yes,toolbar=no,location=0,directories=0,status=0,copyhistory=0,width=670,height=560,top=50,left=200,,');		  		
}	

	 function gnv_en()
{
	window.open('http://www.petroperu.com.pe/Animaciones/Gaseoducto_en/gnv_en.htm','', 'scrollbars=yes,toolbar=no,location=0,directories=0,status=0,copyhistory=0,width=670,height=560,top=50,left=200,,');		  		
}	

function eeff_grafica1()
{
	window.open('http://www.petroperu.com.pe/QuienesSomos/Excel/eeff/grafica1.html','', 'scrollbars=no,toolbar=no,location=0,directories=0,status=0,copyhistory=0,width=715,height=370,top=50,left=200,,');		  		
}

function eeff_grafica2()
{
	window.open('http://www.petroperu.com.pe/QuienesSomos/Excel/eeff/grafica2.html','', 'scrollbars=no,toolbar=no,location=0,directories=0,status=0,copyhistory=0,width=715,height=370,top=50,left=200,,');		  		
}

function eeff_grafica3()
{
	window.open('http://www.petroperu.com.pe/QuienesSomos/Excel/eeff/grafica3.html','', 'scrollbars=no,toolbar=no,location=0,directories=0,status=0,copyhistory=0,width=715,height=408,top=50,left=200,,');		  		
}

function eeff_grafica4()
{
	window.open('http://www.petroperu.com.pe/QuienesSomos/Excel/eeff/grafica4.html','', 'scrollbars=no,toolbar=no,location=0,directories=0,status=0,copyhistory=0,width=715,height=380,top=50,left=200,,');		  		
}

function eeff_grafica5()
{
	window.open('http://www.petroperu.com.pe/QuienesSomos/Excel/eeff/grafica5.html','', 'scrollbars=no,toolbar=no,location=0,directories=0,status=0,copyhistory=0,width=715,height=390,top=50,left=200,,');		  		
}

function eeff_grafica6()
{
	window.open('http://www.petroperu.com.pe/QuienesSomos/Excel/eeff/grafica6.html','', 'scrollbars=no,toolbar=no,location=0,directories=0,status=0,copyhistory=0,width=715,height=380,top=50,left=200,,');		  		
}

function eeff_grafica7()
{
	window.open('http://www.petroperu.com.pe/QuienesSomos/Excel/eeff/grafica7.html','', 'scrollbars=yes,toolbar=no,location=0,directories=0,status=0,copyhistory=0,width=715,height=360,top=50,left=200,,');		  		
}

function eeff_indicadores()
{
	window.open('http://www.petroperu.com.pe/QuienesSomos/Excel/eeff/indicadores.html','', 'scrollbars=yes,resizable=no,toolbar=no,location=0,directories=0,status=0,copyhistory=0,width=830,height=520,top=50,left=200,,');		  		
}

function produccion1()
{
	window.open('http://www.petroperu.com.pe/Instalaciones/produccionimg.html','', 'scrollbars=no,toolbar=no,location=0,directories=0,status=0,copyhistory=0,width=570,height=410,top=50,left=200,,');		  		
}

function produccion2()
{
	window.open('http://www.petroperu.com.pe/Instalaciones/produccionimg2.html','', 'scrollbars=no,toolbar=no,location=0,directories=0,status=0,copyhistory=0,width=830,height=510,top=50,left=200,,');		  		
}

function produccion3()
{
	window.open('http://www.petroperu.com.pe/Instalaciones/produccionc.html','', 'scrollbars=yes,resizable=yes,toolbar=no,location=0,directories=0,status=0,copyhistory=0,width=570,height=410,top=50,left=200,,');		  		
}

function fases()
{
	window.open('http://www.petroperu.com.pe/Animaciones/Fases_Petroleo/fases.htm','', 'scrollbars=yes,toolbar=no,location=0,directories=0,status=0,copyhistory=0,width=670,height=560,top=50,left=200,,');		  		
}	

function fases_en()
{
	window.open('http://www.petroperu.com.pe/Animaciones/Fases_Petroleo_en/fases_en.htm','', 'scrollbars=yes,toolbar=no,location=0,directories=0,status=0,copyhistory=0,width=670,height=560,top=50,left=200,,');		  		
}	

function diatierra2()
{
	window.open('http://www.petroperu.com.pe/Animaciones/DiaTierra2009-2.swf','', 'scrollbars=yes,toolbar=no,location=0,directories=0,status=0,copyhistory=0,width=550,height=400,top=50,left=200,,');		  		
}	

function videosensibilizacion1()
{
	window.open('http://www.petroperu.com.pe/Animaciones/GirsSensibilización.swf','', 'scrollbars=yes,toolbar=no,location=0,directories=0,status=0,copyhistory=0,width=560,height=450,top=50,left=200,,');		  		
}	


	 function gnv2()
{
	window.open('http://www.petroperu.com.pe/Animaciones/Gaseoducto2/gnv2.htm','', 'scrollbars=yes,toolbar=no,location=0,directories=0,status=0,copyhistory=0,width=670,height=560,top=50,left=200,,');		  		
}	

	 function gnv2_en()
{
	window.open('http://www.petroperu.com.pe/Animaciones/Gaseoducto2_en/gnv2_en.htm','', 'scrollbars=yes,toolbar=no,location=0,directories=0,status=0,copyhistory=0,width=670,height=560,top=50,left=200,,');		  		
}	

function fases2()
{
	window.open('http://www.petroperu.com.pe/Animaciones/Fases_Petroleo2/fases2.htm','', 'scrollbars=yes,toolbar=no,location=0,directories=0,status=0,copyhistory=0,width=670,height=560,top=50,left=200,,');		  		
}	

function fases2_en()
{
	window.open('http://www.petroperu.com.pe/Animaciones/Fases_Petroleo2_en/fases2_en.htm','', 'scrollbars=yes,toolbar=no,location=0,directories=0,status=0,copyhistory=0,width=670,height=560,top=50,left=200,,');		  		
}	

function OpenCI_Campana()
{
	window.open('http://www.petroperu.com.pe/CaminosDelInca/CampanaCombustible.html','', 'scrollbars=yes,toolbar=no,location=0,directories=0,status=0,copyhistory=0,width=700,height=560,top=50,left=200,,');		  		
}	

function OpenCI_Ubicacion()
{
	window.open('http://www.petroperu.com.pe/CaminosDelInca/UbicacionGeografica.html','', 'scrollbars=yes,toolbar=no,location=0,directories=0,status=0,copyhistory=0,width=700,height=560,top=50,left=200,,');		  		
}	

function OpenCI_FuchsPrimerEspecial()
{
	window.open('http://www.petroperu.com.pe/CaminosDelInca/FuchsGanaPrimerEspecial.html','', 'scrollbars=yes,toolbar=no,location=0,directories=0,status=0,copyhistory=0,width=700,height=560,top=50,left=200,,');		  		
}	

function OpenCI_FuchsLider()
{
	window.open('http://www.petroperu.com.pe/CaminosDelInca/FuchsLiderCaminosInca.html','', 'scrollbars=yes,toolbar=no,location=0,directories=0,status=0,copyhistory=0,width=700,height=560,top=50,left=200,,');		  		
}	

function OpenCI_FuchsCampeon39Inca()
{
	window.open('http://www.petroperu.com.pe/CaminosDelInca/FuchsGanaCaminosInca39.html','', 'scrollbars=yes,toolbar=no,location=0,directories=0,status=0,copyhistory=0,width=700,height=560,top=50,left=200,,');		  		
}	

function OpenCI_FuchsTriCampeonNacional()
{
	window.open('http://www.petroperu.com.pe/CaminosDelInca/FuchsTricampeonNacional.html','', 'scrollbars=yes,toolbar=no,location=0,directories=0,status=0,copyhistory=0,width=700,height=560,top=50,left=200,,');		  		
}	

function OpenCI_RegresoFuchs()
{
	window.open('http://www.petroperu.com.pe/CaminosDelInca/ElRegresoFuchs.html','', 'scrollbars=yes,toolbar=no,location=0,directories=0,status=0,copyhistory=0,width=700,height=560,top=50,left=200,,');		  		
}

function OpenCI_KobashigawaHistoria()
{
	window.open('http://www.petroperu.com.pe/CaminosDelInca/KobashigawaHaceHistoria.html','', 'scrollbars=yes,toolbar=no,location=0,directories=0,status=0,copyhistory=0,width=700,height=560,top=50,left=200,,');		  		
}

function OpenCI_FuchsRallyChanka()
{
	window.open('http://www.petroperu.com.pe/CaminosDelInca/FuchsRallyChanka.html','', 'scrollbars=yes,toolbar=no,location=0,directories=0,status=0,copyhistory=0,width=700,height=560,top=50,left=200,,');		  		
}

function OpenCI_FuchsGanaAsia()
{
	window.open('http://www.petroperu.com.pe/CaminosDelInca/FuchsGanaAsia.html','', 'scrollbars=yes,toolbar=no,location=0,directories=0,status=0,copyhistory=0,width=700,height=560,top=50,left=200,,');		  		
}