//-------------------- PALABRITAS ----------------------------

var deposito, quoteNum, numQuote;
numQuote = 33;
deposito = new Array();

function frases() {
deposito[0] = "Porque han visto mis ojos tu salvación<br /><span style=color:#846800>Lc 2:30</style>";
deposito[1] = "Lo que el justo desea, eso recibe<br /><span style=color:#846800>Pr 10:34</style>";
deposito[2] = "La oración del justo, tiene poder<br /><span style=color:#846800>Stg 5:16</style>";
deposito[3] = "El Señor hace todo lo que quiere<br /><span style=color:#846800>Sal 135:6</style>";
deposito[4] = "Él os bautizará en Espíritu Santo y fuego<br /><span style=color:#846800>Lc 3:16</style>";
deposito[5] = "Si fuéramos infieles, Él permanece fiel<br /><span style=color:#846800>2Ti 2:13</style>";
deposito[6] = "El que me halle, hallará la vida<br /><span style=color:#846800>Pr 8:35</style>";
deposito[7] = "El que confía en el Señor, prospera<br /><span style=color:#846800>Pr 28:25</style>";
deposito[8] = "El que guarda mi palabra, no morirá<br /><span style=color:#846800>Jn 8:51</style>";
deposito[9] = "Muertos con Él, viviremos con Él<br /><span style=color:#846800>2Ti 2:11</style>";
deposito[10] = "Deja al Señor tu carga y te sostendrá<br /><span style=color:#846800>Sal 55:22</style>";
deposito[11] = "Sobre ti fijaré mis ojos<br /><span style=color:#846800>Sal 32:8</style>";
deposito[12] = "Clama a mi y yo te responderé<br /><span style=color:#846800>Jer 33:3</style>";
deposito[13] = "El que en mi cree, no volverá a tener sed<br /><span style=color:#846800>Jn 6:32</style>";
deposito[14] = "Si el hijo os libertáres, seréis libres<br /><span style=color:#846800>Jn 8:36</style>";
deposito[15] = "Cuida tu mente porque es fuente de vida<br /><span style=color:#846800>Pr 4:23</style>";
deposito[16] = "Has el bien, y vivirás para siempre<br /><span style=color:#846800>Sal 37:27</style>";
deposito[17] = "Mi Dios suplirá todo lo que os falta<br /><span style=color:#846800>Flp 4:19</style>";
deposito[18] = "Ninguna arma contra ti, prosperará<br /><span style=color:#846800>Is 54:17</style>";
deposito[19] = "El hombre propone y Dios dispone<br /><span style=color:#846800>Pr 16:1</style>";
deposito[20] = "Feliz el hombre que confía en el Señor<br /><span style=color:#846800>Sal 40:4</style>";
deposito[21] = "El pobre suplica, el rico insulta<br /><span style=color:#846800>Pr 18:23</style>";
deposito[22] = "Más el justo vivirá por fé<br /><span style=color:#846800>Heb 10:38</style>";
deposito[23] = "Si le negamos, Él nos negará<br /><span style=color:#846800>2Ti 2:12</style>";
deposito[24] = "El que perdona la ofensa cultiva el amor<br /><span style=color:#846800>Pr 17:9</style>";
deposito[25] = "Ninguna dificultad nos alejará de Cristo<br /><span style=color:#846800>Ro 8:35</style>";
deposito[26] = "La mujer bondadosa se gana el respeto<br /><span style=color:#846800>Pr 11:16</style>";
deposito[27] = "Daré a cada uno, según lo que haya hecho<br /><span style=color:#846800>Ap 22:12</style>";
deposito[28] = "El malvado será castigado<br /><span style=color:#846800>Pr 11:21</style>";
deposito[29] = "El que cree en el hijo, tiene vida eterna<br /><span style=color:#846800>Jn 3:36</style>";
deposito[30] = "El que me sigue no andará en oscuridad<br /><span style=color:#846800>Jn 8:12</style>";
deposito[31] = "Mi Dios suplirá todo lo que os falta<br /><span style=color:#846800>Flp 4:19</style>";
deposito[32] = "Mi siervo triunfará y será puesto en alto<br /><span style=color:#846800>Is 52:13</style>";

quoteNum = Math.floor(Math.random() * numQuote);
document.write (deposito[quoteNum]);
}

function showBox(id) {
document.getElementById(id).style.visibility='visible';
}

function hideBox(id) {
document.getElementById(id).style.visibility='hidden';
}

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_validateForm() { //v4.0
  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
    if (val) { nm=val.name; if ((val=val.value)!="") {
      if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
        if (p<1 || p==(val.length-1)) errors+='- '+nm+' debe ser una direccion de email valida.\n';
      } else if (test!='R') { num = parseFloat(val);
        if (isNaN(val)) errors+='- '+nm+' debe contener un numero.\n';
        if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
          min=test.substring(8,p); max=test.substring(p+1);
          if (num<min || max<num) errors+='- '+nm+' debe ser un numero entre '+min+' y '+max+'.\n';
    } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' es requerido.\n'; }
  } if (errors) alert('Disculpe, debe llenar correctamente la planilla\n'+errors);
  document.MM_returnValue = (errors == '');
}

function MM_showHideLayers() { //v6.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; }
}
// MM_showHideLayers('menu','','show')

function MM_openBrWindow(theURL,winName,w,h) { //v2.0
var winl = (screen.width-w)/2;
var wint = (screen.height-h)/2;
features = 'height='+h+',width='+w+',top='+wint+',left='+winl+',toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no';
window.open(theURL,winName,features);
//if(parseInt(navigator.appVersion) >= 4){win.window.focus();}
}

function ismaxlength(obj){
var mlength=obj.getAttribute? parseInt(obj.getAttribute("maxlength")) : ""
if (obj.getAttribute && obj.value.length>mlength)
obj.value=obj.value.substring(0,mlength)
}

/* function checklength() {
var max = 90;
var txt;
txt = document.getElementById('sumario');
var n = txt.value.length;
if (n>max) { //i is the maxlength of textarea which we have set to 80
txt.value = txt.value.substring(0, max); 
return false; }
} */

//-------------------- Agregar a Favoritos ----------------------------

function agregar() {
if (window.sidebar&&window.sidebar.addPanel)
{window.sidebar.addPanel("Articulos Cristianos - Mayor y Detal","http://www.articuloscristianos.com.ve","");}
else {
if ((navigator.appName == "Netscape") || (navigator.appName == "Safari")) {
alert ("Presione Crtl+D para agregar este sitio en sus Favoritos"); }
else {
window.external.AddFavorite("http://www.articuloscristianos.com.ve","Articulos Cristianos - Mayor y Detal") }
  }
}


//-------------------- Pagina de Inicio ----------------------------

function paginaInicio() {
if (window.sidebar&&window.sidebar.addPanel) {
	window.sidebar.addPanel("Articulos Cristianos - Mayor y Detal","http://www.articuloscristianos.com.ve",""); }
else {
if ((navigator.appName == "Netscape") || (navigator.appName == "Safari")) {
	alert ("Presione Crtl+D para agregar este sitio en sus Favoritos"); }
	}
}
