function deleteCharacters(text) {
	if (text.value != "")
	{
		text.value = text.value.toLowerCase();
		var subject = "";
		var valor = "";
		for (var indice=0; indice<text.value.length; indice++)
		{
			valor = text.value.substring(indice,indice+1);
			if (escape(valor) == "%E1") {valor = "a";}
			if (escape(valor)== "%E9") {valor = "e";}
			if (escape(valor) == "%ED") {valor = "i";}
			if (escape(valor) == "%F3") {valor = "o";}
			if (escape(valor) == "%FA") {valor = "u";}
			subject = subject + valor;								
		}
		text.value = subject;
	}
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
// -->

<!--}
function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}

function MM_findObj(n, d) { //v4.0
  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 && document.getElementById) x=document.getElementById(n); return x;
}
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_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 MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

<!-- hide this from older browsers  
      function openPopWindow(theURL,winName,features)
      { //v2.0
          window.open(theURL,winName,features);
      }
     // end the hiding comment -->

function launchpdf(directorio,subdirectorio) {
  path = directorio + "";
  imagenes=window.open(path,'imagenes','toolbar=0,menubar=0,scrollbars=1,SCROLLING=auto,resizable=yes,width=460,height=400')
}

function emailCheck (emailStr) {
var emailPat=/^(.+)@(.+)$/
var specialChars="\\(\\)<>@,;:\\\\\\\"\\.\\[\\]"
var validChars="\[^\\s" + specialChars + "\]"
var quotedUser="(\"[^\"]*\")"
var ipDomainPat=/^\[(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\]$/
var atom=validChars + '+'
var word="(" + atom + "|" + quotedUser + ")"
var userPat=new RegExp("^" + word + "(\\." + word + ")*$")
var domainPat=new RegExp("^" + atom + "(\\." + atom +")*$")

var matchArray=emailStr.match(emailPat)
if (matchArray==null) {
	alert("La direcci\u00F3 de email que proporcion\u00F3 parece ser incorrecta.\nFavor de verificar que contenga @ y puntos.")
	return false
}
var user=matchArray[1]
var domain=matchArray[2]

if (user.match(userPat)==null) {
    alert("El usuario de correo no es v\u00E1lido")
    return false
}

var IPArray=domain.match(ipDomainPat)
if (IPArray!=null) {
	  for (var i=1;i<=4;i++) {
	    if (IPArray[i]>255) {
	        alert("El IP destino es inv\u00E1lido")
		return false
	    }
    }
    return true
}

var domainArray=domain.match(domainPat)
if (domainArray==null) {
	alert("El dominio del email es inv\u00E1lido.")
    return false
}

var atomPat=new RegExp(atom,"g")
var domArr=domain.match(atomPat)
var len=domArr.length
if (domArr[domArr.length-1].length<2 || 
    domArr[domArr.length-1].length>3) {
   alert("El dominio del email es inv\u00E1lido.")
   return false
}

if (len<2) {
   var errStr="El dominio del email es inv\u00E1lido."
   alert(errStr)
   return false
}

return true;
}

function validar()
{
	for (var i = 0; i < document.forms["email"].elements.length; i++)
	{
		if (document.forms["email"].elements[i].value == "")
			return false;
    else
    {
      var text = document.forms["email"].elements[i].value;
			var subject = "";
			var valor = "";
			for (var indice=0; indice<text.length; indice++)
			{
				valor = text.substring(indice,indice+1);
				if ((escape(valor) == "%E1") || (valor == "á")) {valor = "&aacute;";}
				if ((escape(valor) == "%E9") || (valor == "é")) {valor = "&eacute;";}
				if ((escape(valor) == "%ED") || (valor == 'í')) {valor = "&iacute;";}
				if ((escape(valor) == "%F3") || (valor == "ó")) {valor = "&oacute;";}
				if ((escape(valor) == "%FA") || (valor == "ú")) {valor = "&uacute;";}
				if ((escape(valor) == "%C1") || (valor == "Á")) {valor = "&Aacute;";}
				if ((escape(valor) == "%C9") || (valor == "É")) {valor = "&Eacute;";}
				if ((escape(valor) == "%CD") || (valor == "Í")) {valor = "&Iacute;";}
				if ((escape(valor) == "%D3") || (valor == "Ó")) {valor = "&Oacute;";}
				if ((escape(valor) == "%DA") || (valor == "Ú")) {valor = "&Uacute;";}
				if ((escape(valor) == "%F1") || (valor == "ñ")) {valor = "&ntilde;";}
				if ((escape(valor) == "%D1") || (valor == "Ñ")) {valor = "&Ntilde;";}      
				subject = subject + valor;								
			}
      if (document.forms["email"].elements[i].name == "state")
      {
        var ind = document.forms["email"].elements[i].selectedIndex;
        document.forms["email"].elements[i].options[ind].value = subject;
      }
      else
				document.forms["email"].elements[i].value = subject;
    }
	}
	return true;
}

function enviarForma()
{
	if (emailCheck(document.forms["email"].email.value))
	{
		if (validar())
			window.document.forms["email"].submit();
		else 
			alert("Todos los campos presentados son necesarios. \nSi no cuentas con la informacin que preguntamos, agrega un cero '0'");
	}
}
function addbookmark()
{
var msg = "";
var bookmarkurl="http://www.banorte.com/el_159.html"
var bookmarktitle="Banorte - Acceso a BancreNet Personal"
if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)) {
window.external.AddFavorite(bookmarkurl,bookmarktitle) }
else 
  if(navigator.appName == "Netscape") {
  	msg = "Para marcar la p\u00E1gina presiona CTRL+D despues de cerrar este aviso.";
    alert(msg); }
}