var BrowserDetect = {
    init: function () {
        this.browser = this.searchString(this.dataBrowser) || "An unknown browser";
        this.version = this.searchVersion(navigator.userAgent)
            || this.searchVersion(navigator.appVersion)
            || "an unknown version";
        this.OS = this.searchString(this.dataOS) || "an unknown OS";
    },
    searchString: function (data) {
        for (var i=0;i<data.length;i++)    {
            var dataString = data[i].string;
            var dataProp = data[i].prop;
            this.versionSearchString = data[i].versionSearch || data[i].identity;
            if (dataString) {
                if (dataString.indexOf(data[i].subString) != -1)
                    return data[i].identity;
            }
            else if (dataProp)
                return data[i].identity;
        }
    },
    searchVersion: function (dataString) {
        var index = dataString.indexOf(this.versionSearchString);
        if (index == -1) return;
        return parseFloat(dataString.substring(index+this.versionSearchString.length+1));
    },
    dataBrowser: [
        {
            string: navigator.userAgent,
            subString: "Chrome",
            identity: "Chrome"
        },
        {     string: navigator.userAgent,
            subString: "OmniWeb",
            versionSearch: "OmniWeb/",
            identity: "OmniWeb"
        },
        {
            string: navigator.vendor,
            subString: "Apple",
            identity: "Safari",
            versionSearch: "Version"
        },
        {
            prop: window.opera,
            identity: "Opera"
        },
        {
            string: navigator.vendor,
            subString: "iCab",
            identity: "iCab"
        },
        {
            string: navigator.vendor,
            subString: "KDE",
            identity: "Konqueror"
        },
        {
            string: navigator.userAgent,
            subString: "Firefox",
            identity: "Firefox"
        },
        {
            string: navigator.vendor,
            subString: "Camino",
            identity: "Camino"
        },
        {        // for newer Netscapes (6+)
            string: navigator.userAgent,
            subString: "Netscape",
            identity: "Netscape"
        },
        {
            string: navigator.userAgent,
            subString: "MSIE",
            identity: "Explorer",
            versionSearch: "MSIE"
        },
        {
            string: navigator.userAgent,
            subString: "Gecko",
            identity: "Mozilla",
            versionSearch: "rv"
        },
        {         // for older Netscapes (4-)
            string: navigator.userAgent,
            subString: "Mozilla",
            identity: "Netscape",
            versionSearch: "Mozilla"
        }
    ],
    dataOS : [
        {
            string: navigator.platform,
            subString: "Win",
            identity: "Windows"
        },
        {
            string: navigator.platform,
            subString: "Mac",
            identity: "Mac"
        },
        {
            string: navigator.platform,
            subString: "Linux",
            identity: "Linux"
        }
    ]
};
BrowserDetect.init();
function browserFix(name) {
    var bodyElement = document.getElementById( name ? name :'pageBody');
    if (BrowserDetect.browser === "Explorer" && bodyElement) {
        bodyElement.className = "ie";
    } else if (BrowserDetect.browser === "Firefox" && bodyElement) {
        bodyElement.className = "ff";
    }
}
var Highlight = Class.create({
    options : {
        eventName : 'click',
        className : 'highlight',
        resetEventName : null
    },
    initialize: function(elements, options) {
        var index = 0;
        this.elements = elements;
        Object.extend(this.options,options);
        this.elements.each(function(item) {
            item.observe(this.options.eventName, this.toggleHighlight.bindAsEventListener(this));
            if (this.options.resetEventName) {
                item.observe(this.options.resetEventName, this.reset.bindAsEventListener(this));
            }
            item.index = index;
            index++;
        }.bind(this));
      },
    toggleHighlight : function(event) {
        var elementIndex = event.element().index;
        this.elements.each(function(item) {
            if (item.index == elementIndex) {
                item.addClassName(this.options.className);
            } else {
                item.removeClassName(this.options.className);
            }
        }.bind(this));                
    },
    reset : function(event) {
        var element = event.element();
        element.removeClassName(this.options.className);
    }
});
var previousSize = 0;
function changeFont(size) {
    var element = $('bodycontent');
    element.removeClassName('size' + previousSize);    
    element.addClassName('size' + size);
    previousSize = size;        
}

function showDivExternal(URL) { 
document.getElementById("apDivURL").innerText=URL;
if (document.getElementById) 
{     // DOM3 = IE5, NS6 
    $('apDiv4').style.display = 'block'; 
    $('apDiv4').setOpacity(.5);
    $('apDiv5').style.display = 'block'; 
    setDiv();
    scroll(0,0);
} 
else 
{ 
if (document.layers) 
    { // Netscape 4 
    document.hideShow.display = 'block'; 
    setDiv();
    scroll(0,0);
    } 
else     
    { // IE 4 
    document.all.hideShow.style.display = 'block';
    setDiv();
    scroll(0,0);
    }  
}
}
 
function redirectToEnglish(element,pageURL)
{
    var URL = pageURL.replace("/sp/", "");
    element.href= "/" + URL;
}
 
function hidediv() 
{ 
    if (document.getElementById) 
    {     // DOM3 = IE5, NS6 
        $('apDiv4').style.display = 'none'; 
        $('apDiv4').setOpacity(0);
        $('apDiv5').style.display = 'none'; 
    } 
    else 
    { 
        if (document.layers) 
        { // Netscape 4 
            document.hideShow.display = 'none'; 
        } 
        else     
        { // IE 4 
            document.all.hideShow.style.display = 'none';
        }  
    }
}
 
function showDivInternal(URL) { 
document.getElementById("apDivURL").innerText=URL;
if (document.getElementById) 
{     // DOM3 = IE5, NS6 
    $('apDiv4').style.display = 'block'; 
    $('apDiv4').setOpacity(.5);
    $('apDiv5').style.display = 'block'; 
    setDiv();
    scroll(0,0);
} 
else 
{ 
if (document.layers) 
    { // Netscape 4 
    document.hideShow.display = 'block';
    setDiv(); 
    scroll(0,0);
    } 
else     
    { // IE 4 
    document.all.hideShow.style.display = 'block';
    setDiv();
    scroll(0,0);
    }  
}
}
 
function exitPageInternalNavigation()
{
   
   window.location="http://"+location.hostname+document.getElementById("apDivURL").innerText;
   
}
function exitPageExternalNavigation()
{
    window.location=document.getElementById("apDivURL").innerText;
}
 
function exitPageInternalNavigationTopNav()
{
   
   window.location="http://"+location.hostname+document.getElementById("apDivURL1").innerText;
   
}
 
function showDivInternalTopNav(URL) { 
document.getElementById("apDivURL1").innerText=URL;
if (document.getElementById) 
{     // DOM3 = IE5, NS6 
   
    $('apDiv6').style.display = 'block'; 
    $('apDiv6').setOpacity(.5);
    $('apDiv7').style.display = 'block'; 
    setDivTopNav();
    scroll(0,0);
} 
else 
{ 
if (document.layers) 
    { // Netscape 4 
    document.hideShow.display = 'block'; 
    setDivTopNav();
    scroll(0,0);
    } 
else     
    { // IE 4 
    document.all.hideShow.style.display = 'block';
    setDivTopNav();
    scroll(0,0);
    }  
}
}
 
 function hidedivTopNav() 
{ 
    if (document.getElementById) 
    {     // DOM3 = IE5, NS6 
        $('apDiv6').style.display = 'none'; 
        $('apDiv6').setOpacity(0);
        $('apDiv7').style.display = 'none'; 
    } 
    else 
    { 
        if (document.layers) 
        { // Netscape 4 
            document.hideShow.display = 'none'; 
        } 
        else     
        { // IE 4 
            document.all.hideShow.style.display = 'none';
        }  
    }
}


/*----------- Set the exit page Height ----------- */

function setDiv() {
    var wh=0;
    var d=0;
    var dh=0;
  var wh = document.getElementById("main");// Window Height
  var d = document.getElementById("apDiv4"); // Get div element
  d.style.height = wh.offsetHeight + 'px'; // Set div height to window height
  d.style.width= wh.offsetWidth + 'px'; // Set div width to window height
}
 
function setDivTopNav() {
    var wh=0;
    var d=0;
    var dh=0;
  var wh =$('main') ;//document.getElementById("main");// Window Height
  var d =$('apDiv6');// document.getElementById("apDiv6"); // Get div element
  d.style.height = wh.offsetHeight + 'px'; // Set div height to window height
  d.style.width= wh.offsetWidth + 'px'; // Set div width to window height
}

function others()
{
if ((document.getElementById("menu1").selectedIndex != 0) && (document.getElementById("menu1")[document.getElementById("menu1").selectedIndex].value !=""))
window.location=document.getElementById("menu1")[document.getElementById("menu1").selectedIndex].value;
}

function validatecontactus()
{
       if (document.getElementById("name").value==""){
        alert("Please enter Name field");
       return false;
       }
        else if((document.getElementById("telephone1").value=="") || (!PhoneValidation(document.getElementById("telephone1").value))){
        alert("Please enter valid Telephone field");
        return false;
       }
         else if(!checkNumber(document.getElementById("employeeNumber").value)){
           alert("Please enter number for Number of Employees Field");
           return false;
       }
        else if(document.getElementById("email").value != ""){
           if(!checkEmailFormat(document.getElementById("email").value)){
           alert("Please enter a valid email ID");
          return false;
         }
       }
       else
       {
       return true;
       }
}
function validatecontactusIRA() {
    if (document.getElementById("name").value==""){
         alert("Please enter Name field"); 
         return false; 
     } else if (document.getElementById("paternalLastName").value==""){ 
         alert("Please enter Paternal Last Name field"); 
         return false; 
     } else if (document.getElementById("maternalLastName").value==""){
          alert("Please enter Maternal Last Name field");
           return false; 
     } else if((document.getElementById("telephone1").value=="") || (!PhoneValidation(document.getElementById ("telephone1").value))){ 
             alert("Please enter valid Telephone field"); 
             return false; 
      }
        else if((document.getElementById("email").value=="") || (!checkEmailFormat(document.getElementById("email").value))){
           alert("Please enter a valid email ID");
           return false;
       }
       else
       {
        return true;
       }
}

function validateplanandlearn()
{
       if (document.getElementById("name").value==""){
        alert("Please enter Name field");
       return false;
       }
        else if((document.getElementById("telephone1").value=="") || (!PhoneValidation(document.getElementById("telephone1").value))){
        alert("Please enter valid Telephone field");
        return false;
       }
        else if(document.getElementById("email").value != ""){
           if(!checkEmailFormat(document.getElementById("email").value)){
           alert("Please enter a valid email ID");
          return false;
         }
       }
       else
       {
        
        return true;
       }
}


function validatecontactusSP()
{
       if (document.getElementById("name").value==""){
        alert("Por favor, introduzca campo Nombre");
       return false;
       }
       else if((document.getElementById("telephone1").value=="") || (!PhoneValidation(document.getElementById("telephone1").value))){
       alert("Por favor,  escriba su Teléfono");
       return false;
       }
       else if(!checkNumber(document.getElementById("employeeNumber").value)){
         alert("Por favor, introduzca el número de el número de empleados de campo");
         return false;
       }
        else if(document.getElementById("email").value!= ""){
        if(!checkEmailFormat(document.getElementById("email").value)){
        alert("Por favor, escriba su Correo Electrónico");
        return false;
       }
      }
       else
       {
       return true;
       }
}

function validatecontactusIRASP() {
    if (document.getElementById("name").value==""){
         alert("Por favor, introduzca campo Nombre"); 
         return false; 
     } else if (document.getElementById("paternalLastName").value==""){ 
         alert("Por favor, introduzca campo Apellido Materno ");
         return false; 
     } else if (document.getElementById("maternalLastName").value==""){
         alert("Por favor, introduzca campo Apellido Materno ");
           return false; 
     } else if((document.getElementById("telephone1").value=="") || (!PhoneValidation(document.getElementById ("telephone1").value))){ 
             alert("Por favor,  escriba su Teléfono");
             return false; 
    }

      else if((document.getElementById("email").value=="") || (!checkEmailFormat(document.getElementById("email").value))){
           alert("Por favor, escriba su Correo Electrónico");
           return false;
       }
       else
       {
        return true;
       }
}


function validateplanandlearnSP()
{

      if (document.getElementById("name").value==""){
        alert("Por favor, introduzca campo Nombre");
       return false;
       }
       else if((document.getElementById("telephone1").value=="") || (!PhoneValidation(document.getElementById("telephone1").value))){
       alert("Por favor,  escriba su Teléfono");
       return false;
       }
        else if(document.getElementById("email").value!= ""){
        if(!checkEmailFormat(document.getElementById("email").value)){
        alert("Por favor, escriba su Correo Electrónico");
        return false;
       }
      }
       else
       {
       return true;
       }
}

 
function PhoneValidation(phonenum)
{
   var sText = phonenum;
    var ValidChars = "0123456789-";
   var IsNumber=true;
   var Char;
 
   for (i = 0; i < sText.length && IsNumber == true; i++) 
      { 
      Char = sText.charAt(i); 
      if (ValidChars.indexOf(Char) == -1) 
         {
         IsNumber = false;
       }
      }
   return IsNumber;  
   }


function checkNumber(num){
var regex = /^[0-9]*$/;
var isnum = true;
 if (!(regex.test(num))) {
   isnum = false;
 } 
return isnum;
}

function checkEmailFormat(email)
{
var emailPattern =/^[a-zA-Z][\w\.-]*[a-zA-Z0-9]@[a-zA-Z0-9][\w\.-]*[a-zA-Z0-9]\.[a-zA-Z][a-zA-Z\.]*[a-zA-Z]$/; 
var isEmail = true;
if(!(email.match(emailPattern)))
{
  isEmail= false;
 }
return isEmail;
}




function isNumberKey(evt)
      {
         var charCode = (evt.which) ? evt.which : event.keyCode
         if (charCode > 31 && (charCode < 48 || charCode > 57))
            return false;
         return true;
      }
 
  /*----------- Newly Added ----------- */
  
  function exitexternaleng(URL) { 
  exitPageExternalMessageEng();    
  document.getElementById("apDivExitURL").innerText=URL;
  if (document.getElementById) 
  {     // DOM3 = IE5, NS6 
      $('apDivExit1').style.display = 'block'; 
      $('apDivExit1').setOpacity(.5);
      $('apDivExit2').style.display = 'block'; 
      setDivExit();
      scroll(0,0);
  } 
  else 
  { 
  if (document.layers) 
      { // Netscape 4 
      document.hideShow.display = 'block'; 
      setDivExit();
      scroll(0,0);
  
      } 
  else     
      { // IE 4 
      document.all.hideShow.style.display = 'block';
      setDivExit();
      scroll(0,0);
  
      }  
  }
}
function exitinternaleng(URL) { 
  exitPageInternalMessageEng(); 
  document.getElementById("apDivExitURL").innerText=URL;
  if (document.getElementById) 
  {     // DOM3 = IE5, NS6 
      $('apDivExit1').style.display = 'block'; 
      $('apDivExit1').setOpacity(.5);
      $('apDivExit2').style.display = 'block'; 
      setDivExit();
      scroll(0,0);
  } 
  else 
  { 
  if (document.layers) 
      { // Netscape 4 
      document.hideShow.display = 'block'; 
      setDivExit();
      scroll(0,0);
  
      } 
  else     
      { // IE 4 
      document.all.hideShow.style.display = 'block';
      setDivExit();
      scroll(0,0);
  
      }  
  }
}
function exitexternalsp(URL) { 
  exitPageExternalMessageSP(); 
  document.getElementById("apDivExitURL").innerText=URL;
  if (document.getElementById) 
  {     // DOM3 = IE5, NS6 
      $('apDivExit1').style.display = 'block'; 
      $('apDivExit1').setOpacity(.5);
      $('apDivExit2').style.display = 'block'; 
      setDivExit();
      scroll(0,0);
  } 
  else 
  { 
  if (document.layers) 
      { // Netscape 4 
      document.hideShow.display = 'block'; 
      setDivExit();
      scroll(0,0);
  
      } 
  else     
      { // IE 4 
      document.all.hideShow.style.display = 'block';
      setDivExit();
      scroll(0,0);
  
      }  
  }
}
function exitinternalsp(URL) { 
  exitPageInternalMessageSP(); 
  document.getElementById("apDivExitURL").innerText=URL;
  if (document.getElementById) 
  {     // DOM3 = IE5, NS6 
      $('apDivExit1').style.display = 'block'; 
      $('apDivExit1').setOpacity(.5);
      $('apDivExit2').style.display = 'block'; 
      setDivExit();
      scroll(0,0);
  } 
  else 
  { 
  if (document.layers) 
      { // Netscape 4 
      document.hideShow.display = 'block'; 
      setDivExit();
      scroll(0,0);
  
      } 
  else     
      { // IE 4 
      document.all.hideShow.style.display = 'block';
      setDivExit();
      scroll(0,0);
  
      }  
  }
}
function hidedivExit() 
{ 
    if (document.getElementById) 
    {     // DOM3 = IE5, NS6 
        $('apDivExit1').style.display = 'none'; 
        $('apDivExit1').setOpacity(0);
        $('apDivExit2').style.display = 'none'; 
      
    } 
    else 
    { 
        if (document.layers) 
        { // Netscape 4 
            document.hideShow.display = 'none'; 
    
        } 
        else     
        { // IE 4 
            document.all.hideShow.style.display = 'none';
    
        }  
    }
}
 
 function setDivExit() {
     var wh=0;
     var d=0;
     var dh=0;
 
   var wh = document.getElementById("main");// Window Height
   var d = document.getElementById("apDivExit1"); // Get div element
   d.style.height = wh.offsetHeight + 'px'; // Set div height to window height
   d.style.width= wh.offsetWidth + 'px'; // Set div width to window height
    document.getElementById('apDivExitURL').style.display='none';    
}
function exitPageExternalNavigationNew()
{
   window.location=document.getElementById("apDivExitURL").innerText;
}
function exitPageInternalNavigationNew()
{
   window.location=document.getElementById("apDivExitURL").innerText;
}
function exitPageExternalMessageEng(){
        var m=document.getElementById('main');
        if(document.getElementById('apDivExitURL')!=null){
        var d=document.getElementById('apDivExitURL');
        m.removeChild(d);
        }
        if(document.getElementById('apDivExit1')!=null){
        var d1=document.getElementById('apDivExit1');
        m.removeChild(d1);
        }
        if(document.getElementById('apDivExit2')!=null){
        var d2=document.getElementById('apDivExit2');
        m.removeChild(d2);
        }
        var newdiv1 = document.createElement('div');
        newdiv1.setAttribute("id", "apDivExitURL"); 
        newdiv1.setAttribute("style", "Display: none");
        document.getElementById('main').appendChild(newdiv1); 
        var newdiv2 = document.createElement('div');
        newdiv2.setAttribute("id", "apDivExit2"); 
        newdiv2.setAttribute("style", "Display: none");
        newdiv2.innerHTML="<DIV class='center' style='BORDER-RIGHT: #f78f1e 1px solid; PADDING-RIGHT: 10px; BORDER-TOP: #f78f1e 1px solid; PADDING-LEFT: 10px; PADDING-BOTTOM: 10px; BORDER-LEFT: #f78f1e 1px solid; WIDTH: auto; PADDING-TOP: 10px; BORDER-BOTTOM: #f78f1e 1px solid; BACKGROUND-COLOR: #f6ead4'><DIV class='message'><P>You are leaving the Oriental Online website.</P><P>We are referring you to this new site, Oriental Group does not provide the products or services of this site.</P><P>We recommend that you read the privacy policy and terms and conditions of the site you are visiting.</P></DIV><DIV style='PADDING-LEFT: 100px'><DIV class='button_left'><INPUT class='button' onclick=javascript:exitPageExternalNavigationNew(); type=submit value=Continue&nbsp;&nbsp; name=submit></DIV><DIV class='button_left'><INPUT class='button' onclick=javascript:hidedivExit(); type=submit value=Go&nbsp;back&nbsp;&nbsp; name=submit></DIV></DIV></DIV></DIV>";
        document.getElementById('main').appendChild(newdiv2);
        var newdiv3 = document.createElement('div');
        newdiv3.setAttribute("id", "apDivExit1"); 
        newdiv3.setAttribute("style", "Display: none");
        document.getElementById('main').appendChild(newdiv3);  
} 

function exitPageInternalMessageEng(){
        var m=document.getElementById('main');
        if(document.getElementById('apDivExitURL')!=null){
        var d=document.getElementById('apDivExitURL');
        m.removeChild(d);
        }
        if(document.getElementById('apDivExit1')!=null){
        var d1=document.getElementById('apDivExit1');
        m.removeChild(d1);
        }
        if(document.getElementById('apDivExit2')!=null){
        var d2=document.getElementById('apDivExit2');
        m.removeChild(d2);
        }
        var newdiv1 = document.createElement('div');
        newdiv1.setAttribute("id", "apDivExitURL"); 
        newdiv1.setAttribute("style", "Display: none");
        document.getElementById('main').appendChild(newdiv1); 
        var newdiv2 = document.createElement('div');
        newdiv2.setAttribute("id", "apDivExit2"); 
        newdiv2.setAttribute("style", "Display: none");
        newdiv2.innerHTML="<DIV class='center' style='BORDER-RIGHT: #f78f1e 1px solid; PADDING-RIGHT: 10px; BORDER-TOP: #f78f1e 1px solid; PADDING-LEFT: 10px; PADDING-BOTTOM: 10px; BORDER-LEFT: #f78f1e 1px solid; WIDTH: auto; PADDING-TOP: 10px; BORDER-BOTTOM: #f78f1e 1px solid; BACKGROUND-COLOR: #f6ead4'><DIV class='message'><P>You are accessing the website of an Oriental Bank &amp; Trust affiliate.</P></DIV><DIV style='PADDING-LEFT: 100px'><DIV class='button_left'><INPUT class='button' onclick=javascript:exitPageInternalNavigationNew(); type=submit value=Continue&nbsp;&nbsp; name=submit></DIV><DIV class='button_left'><INPUT class='button' onclick=javascript:hidedivExit(); type=submit value=Go&nbsp;back&nbsp;&nbsp; name=submit></DIV></DIV></DIV></DIV>";
        document.getElementById('main').appendChild(newdiv2);
        var newdiv3 = document.createElement('div');
        newdiv3.setAttribute("id", "apDivExit1"); 
        newdiv3.setAttribute("style", "Display: none");
        document.getElementById('main').appendChild(newdiv3);  
} 

function exitPageExternalMessageSP(){
        var m=document.getElementById('main');
        if(document.getElementById('apDivExitURL')!=null){
        var d=document.getElementById('apDivExitURL');
        m.removeChild(d);
        }
        if(document.getElementById('apDivExit1')!=null){
        var d1=document.getElementById('apDivExit1');
        m.removeChild(d1);
        }
        if(document.getElementById('apDivExit2')!=null){
        var d2=document.getElementById('apDivExit2');
        m.removeChild(d2);
        }
        var newdiv1 = document.createElement('div');
        newdiv1.setAttribute("id", "apDivExitURL"); 
        newdiv1.setAttribute("style", "Display: none");
        document.getElementById('main').appendChild(newdiv1); 
        var newdiv2 = document.createElement('div');
        newdiv2.setAttribute("id", "apDivExit2"); 
        newdiv2.setAttribute("style", "Display: none");
        newdiv2.innerHTML="<DIV class='center' style='BORDER-RIGHT: #f78f1e 1px solid; PADDING-RIGHT: 10px; BORDER-TOP: #f78f1e 1px solid; PADDING-LEFT: 10px; PADDING-BOTTOM: 10px; BORDER-LEFT: #f78f1e 1px solid; WIDTH: auto; PADDING-TOP: 10px; BORDER-BOTTOM: #f78f1e 1px solid; BACKGROUND-COLOR: #f6ead4'><DIV class='message'><P>Estas saliendo de la p&aacute;gina de Oriental Online.</P><P>Aunque estamos refiri&eacute;ndolo a un sitio de internet nuevo, Oriental Group no provee los productos y servicios de este sitio.</P><P>Recomendamos que lea la pol&iacute;tica de privacidad y las divulgaciones para el sitio que visita.</P></DIV><DIV style='PADDING-LEFT: 100px'><DIV class='button_left'><INPUT class='button' onclick=javascript:exitPageExternalNavigationNew(); type=submit value=Continuar&nbsp;&nbsp; name=submit></DIV><DIV class='button_left'><INPUT class='button' onclick=javascript:hidedivExit(); type=submit value=Regresar&nbsp;&nbsp; name=submit></DIV></DIV></DIV></DIV>";
        document.getElementById('main').appendChild(newdiv2);
        var newdiv3 = document.createElement('div');
        newdiv3.setAttribute("id", "apDivExit1"); 
        newdiv3.setAttribute("style", "Display: none");
        document.getElementById('main').appendChild(newdiv3);  
} 

function exitPageInternalMessageSP(){
        var m=document.getElementById('main');
        if(document.getElementById('apDivExitURL')!=null){
        var d=document.getElementById('apDivExitURL');
        m.removeChild(d);
        }
        if(document.getElementById('apDivExit1')!=null){
        var d1=document.getElementById('apDivExit1');
        m.removeChild(d1);
        }
        if(document.getElementById('apDivExit2')!=null){
        var d2=document.getElementById('apDivExit2');
        m.removeChild(d2);
        }
        var newdiv1 = document.createElement('div');
        newdiv1.setAttribute("id", "apDivExitURL"); 
        newdiv1.setAttribute("style", "Display: none");
        document.getElementById('main').appendChild(newdiv1); 
        var newdiv2 = document.createElement('div');
        newdiv2.setAttribute("id", "apDivExit2"); 
        newdiv2.setAttribute("style", "Display: none");
        newdiv2.innerHTML="<DIV class='center' style='BORDER-RIGHT: #f78f1e 1px solid; PADDING-RIGHT: 10px; BORDER-TOP: #f78f1e 1px solid; PADDING-LEFT: 10px; PADDING-BOTTOM: 10px; BORDER-LEFT: #f78f1e 1px solid; WIDTH: auto; PADDING-TOP: 10px; BORDER-BOTTOM: #f78f1e 1px solid; BACKGROUND-COLOR: #f6ead4'><DIV class='message'><P>Estas accediendo la p&aacute;gina de una afiliada de Oriental Bank &amp; Trust.</P></DIV><DIV style='PADDING-LEFT: 100px'><DIV class='button_left'><INPUT class='button' onclick=javascript:exitPageInternalNavigationNew(); type=submit value=Continuar&nbsp;&nbsp; name=submit></DIV><DIV class='button_left'><INPUT class='button' onclick=javascript:hidedivExit(); type=submit value=Regresar&nbsp;&nbsp; name=submit></DIV></DIV></DIV></DIV>";
        document.getElementById('main').appendChild(newdiv2);
        var newdiv3 = document.createElement('div');
        newdiv3.setAttribute("id", "apDivExit1"); 
        newdiv3.setAttribute("style", "Display: none");
        document.getElementById('main').appendChild(newdiv3);  
}