//esta funcion no hace nada, es para deshabilitar la anterior mientras se corrige en los lugares donde estaba.
function myoMenu(){
}

//resize del iframe de interor
function autoResize(id){
  var newheight;
  var newwidth;

  if(document.getElementById){
    newheight=document.getElementById(id).contentWindow.document.body.scrollHeight + 30;
    newwidth=document.getElementById(id).contentWindow.document.body.scrollWidth;
  }

  document.getElementById(id).height= (newheight) + "px";
  //document.getElementById(id).width= (newwidth) + "px";
  parent.location.href = "#";
}


function llamarVinculoExterno(pagina,destino)
{
	tmppag = pagina.split("@$");
	if(tmppag.length > 1)
	{
          document.vincular.open.value = tmppag[0];
	  document.vincular.sec.value = tmppag[1];
	}
        else
	{
	  document.vincular.open.value = pagina;
        }
	
	if(destino)
	{
	  document.vincular.target = destino;
	}
	
	if(pagina.substr(0,5) == "https")
	{
		document.vincular.action = pagina;
	}
        else
	   {
	   if(pagina.substr(0,5) == "http")
	    {
	     document.vincular.action = "http://www.bancoprovincia.com.ar/sgr/interior.asp";
	    }
	   }
	
	document.vincular.submit();

}


function llamarVinculoInterno(pagina,destino){
	tmppag = pagina.split("@$");
	if(tmppag.length > 1){
		document.vincular.open.value = tmppag[0];
		document.vincular.sec.value = tmppag[1];
	}else{
	  document.vincular.open.value = pagina;
  }
	if(destino){
	  document.vincular.target = destino;
	}
	
	if(pagina.substr(0,5) == "https"){
		document.vincular.action = "https://www.bancoprovincia.com.ar/sgr/interior.asp";
	}
	else{
		if(pagina.substr(0,5) == "http"){
		  document.vincular.action = "http://www.bancoprovincia.com.ar/sgr/interior.asp";
		}
	}
	
	document.vincular.submit();
}

function confirmarSalir(toUrl,sinconfirmar){
	tmppag = toUrl.split("@$");
	if(tmppag.length > 1){
		toUrl = tmppag[0] + "&" + tmppag[1];
  }
  
	if(sinconfirmar == "1"){
		window.open(toUrl,"_blank");
	}
	else{
    seguro = confirm("ATENCIÓN\nUd está abandonando la página Web de esta entidad financiera.\nEl Banco Provincia no tiene responsabilidad sobre la Página Web en la cual está por ingresar.");
	  if(seguro == true){
  	  window.open(toUrl,"_blank");
	  }
	}
}

function activateSWF(){
  if (navigator.appName == "Microsoft Internet Explorer") {	
	  var arrElements = new Array(3);
	  arrElements[0] = "object";
	  arrElements[1] = "embed";
	  arrElements[2] = "applet";

	  for (n = 0; n < arrElements.length; n++) {
		  replaceObj = document.getElementsByTagName(arrElements[n]);
		  for (i = 0; i < replaceObj.length; i++ ) {
			  parentObj = replaceObj[i].parentNode;
			  newHTML = parentObj.innerHTML;
			  parentObj.removeChild(replaceObj[i]);
			  parentObj.innerHTML = newHTML;
			}
		}
	}
}

function hboff(){
	alert("Por razones ajenas al Banco, a las 21hs y por aproximadamente 1 hora, el servicio de Home Banking se verá interrumpido. Sepan disculpar las molestias ocasionadas");
}

function beoff(){
	alert("Por razones ajenas al Banco, a las 21hs y por aproximadamente 1 hora, el servicio de BAPROEMPRES@ se verá interrumpido. Sepan disculpar las molestias ocasionadas");
}
