/* Nada */ // Prevent browser from showing .js errors function stopError() { return true; } window.onerror = stopError; myAd = new Banner(5,200,50,"Visite a nuestro patrocinante",0,0); myAd.Ad("http://www.sersaludables.com/pics/botones/ss_boton_b2.gif","http://www.sersaludables.com/","_blank","Visite a nuestro patrocinante"); // myAd.Ad("/pix/botones/b_tienda.gif","/tienda/",null,"Visite nuestra Tienda de Regalos"); myAd.Ad("/pix/botones/b_tienda.gif","/tienda/",null,"Visite nuestra Tienda de Regalos"); function Banner(refreshTime, width, height, altText, start, random){ this.objName = "bannerAd" + (Banner.count++); eval(this.objName + "=this"); if (!refreshTime) this.refreshTime = 5000; else this.refreshTime = refreshTime*1000; if (!width) this.width = 460; else this.width = width; if (!height) this.height = 68; else this.height = height; if (random == null) this.random = 1; else this.random = random; this.altText = altText; this.ads = []; if (start) this.currentAd = start-1; else start = null; this.mySize = 0; this.Ad = function(src, href, target, mouseover) { var tempImage = new Image(); tempImage.src = src; this.ads[this.mySize] = new Object(); var ad = this.ads[this.mySize]; ad.src = src; if (typeof(target) == "undefined" || target == null) ad.target = "_self"; else ad.target = target; ad.href = href; ad.mouseover = mouseover; this.mySize++; } this.link = function(){ var ad = this.ads[this.currentAd]; if (ad.target == "_self"){ location.href = ad.href; } else if (ad.target == "_blank" || ad.target == "_new"){ open(ad.href,this.objName + "Win"); } else top.frames[ad.target].location.href = ad.href; } this.showStatus = function(){ var ad = this.ads[this.currentAd]; if (ad.mouseover) status = ad.mouseover; else status = ad.href; } this.randomAd = function(){ var n; do { n = Math.floor(Math.random() * (this.mySize)); } while(n == this.currentAd); this.currentAd = n; } this.output = function(){ var tempCode = ""; if (this.mySize > 1){ if (this.currentAd == null) this.randomAd(); if (this.currentAd >= this.mySize) this.currentAd = this.mySize - 1; tempCode = ''; tempCode += '= this.mySize) this.currentAd = 0; } else { this.randomAd(); } this.nextAd(); } this.nextAd = function(){ document.images[this.objName+ 'Img'].src = this.ads[this.currentAd].src; setTimeout(this.objName+'.newAd()',this.refreshTime) } } Banner.count = 0; var saludo; hoy(); function hoy() { now = new Date(); var CurHour = now.getHours(); now = null; if ( (CurHour >= 6) && (CurHour < 12) ) { saludo = "Buenos días"; ampm = " A.M.";} else if ( (CurHour >= 12) && (CurHour < 18) ) { saludo = "Buenas tardes"; ampm = " P.M."; CurHour = CurHour - 12;} else if ( (CurHour >= 18) && (CurHour <= 24) ) { saludo = "Buenas noches"; ampm = " P.M."; CurHour = CurHour - 12;} else if ( CurHour < 6 ) { saludo = "Buenas noches"; ampm = " A.M.";} // saludo += ", disfrute su visita"; } /* ***** CALENDARIO ******* */ weekday = new Array("Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"); monthnames = new Array("Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"); iniciopub = new Date("December 15, 1999"); mesinglsh = new Array("January","February","March","April","May","June","July","August","September","October","November","December"); var linkcount=0; monthdays = new Array(31,28,31,30,31,30,31,31,30,31,30,31) todayDate=new Date(); thisday=todayDate.getDay(); thismonth=todayDate.getMonth(); thisdate=todayDate.getDate(); thisyear=todayDate.getYear(); thisyear = thisyear % 100; thisyear = ((thisyear < 50) ? (2000 + thisyear) : (1900 + thisyear)); if (((thisyear % 4 == 0) && !(thisyear % 100 == 0)) || (thisyear % 400 == 0)) monthdays[1]++; yearout = String(thisyear); // yearout = yearout.substr(0,1) + "." + yearout.substr(1,3); startspaces=thisdate; mostrar = true; while (startspaces > 7) startspaces-=7; startspaces = thisday - startspaces + 1; if (startspaces < 0) startspaces+=7; function ecrb_cal() { document.write(''); document.write(""); document.write(''); for (s=0;s ');} count=1; while (count <= monthdays[thismonth]) { for (b = startspaces;b<7;b++) { hoy = new Date(mesinglsh[thismonth] + " " + count + ", " + thisyear); if (count == thisdate) imprime = ""); count++;} document.write(""); if ((count < monthdays[thismonth]) && (b == 7)) document.write(''); startspaces=0;} document.write("
DLMMJVS
"; else imprime = ""; /* if ((hoy.getDay() == 3) && (count <= monthdays[thismonth]) && count != 26) { var dias_desde = Math.floor((hoy - iniciopub) / (24 * 60 * 60 * 1000)); if ( ((dias_desde / 14) - Math.floor(dias_desde / 14)) == 0 ) { if (count == thisdate) { imprime = ""; } else { imprime = ""; } } } */ if ((hoy.getDay() == 3) && (mostrar)) { // if (thismonth == 0 && count == 9 ) { mostrar = false; if (count == thisdate) { imprime = ""; } else { imprime = ""; } // } } if (count <= monthdays[thismonth]) { document.write(imprime + count);} else { document.write(imprime + " ");} document.write("
"); document.write('Edición de Mercurio
'); } /* **** HORA ***** */ var MS=navigator.appVersion.indexOf("MSIE") window.isIE4 = (MS>0) && (parseInt(navigator.appVersion) >= 4) function lead0(val) { return val<10 ? "0"+val.toString() : val } function buildTime() { var time = new Date() var ampm = " AM" var h=time.getHours() if (h > 12) {h = h - 12; ampm = " PM";} return h+":"+lead0(time.getMinutes())+":"+ lead0(time.getSeconds()) + ampm } function tick() { document.all.clock.innerText = buildTime() } window.onload = new Function("if (window.isIE4) setInterval('tick()',1000)") clckcnt = 0; function clckcntr() { // developed by willmaster.com clckcnt++; if(clckcnt > 1) { if(clckcnt > 2) { return false; } alert('Procesando...\n\n' + ' Gracias por su paciencia.'); return false;} return true;} function clearDefault(el) { if (el.defaultValue==el.value) el.value = "" } function IsItPresentSmpl(campo, explanation) { // developed by willmaster.com // modified by Helios C H s = campo.value; s = StripSpacesFromEnds(s); if(s.length) return s; alert('Por favor escriba\n' + explanation + '.'); campo.focus(); clckcnt = 0; return ''; } function IsItPresent(campo, explanation) { // developed by willmaster.com // modified by Helios C H s = campo.value; s = StripSpacesFromEnds(s); if(s.length && s != campo.defaultValue) return s; alert('Por favor escriba\n' + explanation + '.'); campo.focus(); clckcnt = 0; return ''; } function StripSpacesFromEnds(s) { // developed by willmaster.com while((s.indexOf(' ',0) == 0) && (s.length > 1)) { s = s.substring(1,s.length); } while((s.lastIndexOf(' ') == (s.length - 1)) && (s.length > 1)) { s = s.substring(0,(s.length - 1)); } if((s.indexOf(' ',0) == 0) && (s.length == 1)) s = ''; return s; } function CheckEmail(campo, descrip) { // developed by willmaster.com // modified by Helios C H if (!descrip) descrip = 'Su dirección de e-mail'; // s_email = campo.value; s_email = IsItPresent(campo, descrip); if(! s_email) { clckcnt = 0; return false;} s_email = s_email.toLowerCase(); var i = s_email.indexOf(' ',0); while(i > -1) { s_email = s_email.substring(0,i) + s_email.substring((i + 1),s_email.length); i = s_email.indexOf(' ',0); } campo.value = s_email; if((s_email.length < 6) || (s_email.indexOf('@',0) < 1) || (s_email.lastIndexOf('@') != s_email.indexOf('@',0)) || (s_email.lastIndexOf('@') > (s_email.length - 5)) || (s_email.lastIndexOf('.') > (s_email.length - 3)) || (s_email.lastIndexOf('.') < (s_email.length - 4)) || (s_email.indexOf('..',0) > -1) || (s_email.indexOf('@.',0) > -1) || (s_email.indexOf('.@',0) > -1) || (s_email.indexOf(',',0) > -1)) { alert('La dirección de e-mail\n"' + s_email + '"\nno es valida.'); clckcnt = 0; campo.focus(); return false; } var xx = s_email.substr(s_email.lastIndexOf('@'),15); if ((xx == "@helios3000.net") || (xx == "@helios3000.com")) { alert("Por favor escriba\nsu dirección de e-mail\nno la nuestra"); clckcnt = 0; // campo.value = ""; campo.focus(); return false; } return true; } function CheckName(campo, mnsj) { // developed by willmaster.com // modified by Helios C H s_name = campo.value; s_name = IsItPresent(campo, mnsj); if(! s_name) { clckcnt = 0; return false;} var i = s_name.indexOf(' ',0); while(i > -1) { s_name = s_name.substring(0,(i + 1)) + s_name.substring((i + 2),s_name.length); i = s_name.indexOf(' ',0); } s_name = s_name.toLowerCase(); var s = new String(s_name.substring(0,1)); s = s.toUpperCase(); s_name = s + s_name.substring(1,s_name.length); i = s_name.indexOf(' ',0); if(i == (s_name.length - 1)) i = -1; var ts = new String(""); var j = 0; while(i > -1) { i++; j = i + 1; s = s_name.substring(i,j); s = s.toUpperCase(); ts = ''; if(i > 0) ts = s_name.substring(0,i); s_name = ts + s + s_name.substring(j,s_name.length); i = s_name.indexOf(' ',j); if(i == (s_name.length - 1)) i = -1; } campo.value = s_name; return true; } function revSrch(qbusca) { var qps = true; var temp; temp = IsItPresent (qbusca, "lo que desea encontrar"); if (!temp) qps = false; return qps; } function wrtNum (desde, hasta) { for (var i = desde; i <= hasta; i++) { document.write('
«'); // << else document.write('«'); } else if (cual == 2 || cual == -2) { if (((este != 0 && cual == 2) || (este < hasta && cual == -2)) && este) document.write('»'); // >> else document.write('»'); } } function abrirPopUp(archivo,ventana,ancho,alto,menu,barra) { var opciones="menubar=" + menu + ",toolbar=no,location=no,directories=no,status=no,scrollbars=" + barra + ",resizable=yes,copyhistory=no,width=" + ancho + ",height=" + alto; PopUp = window.open (archivo,ventana,opciones); PopUp.document.close(); } function musica() { if ((!window.popUp) || (popUp.closed)) { if(navigator.userAgent.indexOf("MSIE") != -1){ popUp = window.open ('/misc/music.html','Musica', 'toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=yes,copyhistory=no,width=295,height=50'); popUp.document.close();} else{ popUp = window.open ('/sound/fondo.mid','Musica', 'toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=yes,copyhistory=no,width=140,height=70'); popUp.document.close();}} } function janexpl() { alert ("Esto es solo un ejemplo"); } function bm_disclaimer() { document.write('

Helios Centro Holista no se hace responsable ni garantiza la veracidad, exactitud o celeridad de las opiniones y conceptos emitidos en este foro, las mismas no pretenden sustituir el consejo profesional, son propiedad intelectual de sus respectivos autores y son publicadas aquí por ellos mismos.

powered by BoardMaster
'); } function belong_ezine() { document.write('

Este artículo fue publicado originalmente en la Ezine Mercurio. Le invitamos cordialmente a subscribirse gratis con solo introducir su dirección de e-mail al comienzo de esta página, y automáticamente recibirá esta revista electrónica por e-mail al momento de publicarse. Los artículos se colocan en esta sección un mes después de su publicación en la Ezine.

'); } // End -->