//*********************************************** // Scroll en la barra de Status //*********************************************** var timerONE var timerTWO var defStatus = 'Soluciones en Comunicacion' function ShowStatus(newstat) { //kill old timers clearTimeout(timerONE) clearTimeout(timerTWO) //set the window to default status on idle if (newstat != defStatus) {var cmd1 = 'ShowStatus("' + defStatus + '")' timerONE = window.setTimeout(cmd1,6000) } scrllStatus(newstat,newstat.length) } function scrllStatus(scrllStat,i) { if (i >= 0) { if (i >= 2) i = i - 3 else if (i >= 1) i = i - 2 else --i window.status = scrllStat.substring(i,scrllStat.length) cmd2='scrllStatus("'+ scrllStat +'",'+ i +')' timerTWO = window.setTimeout(cmd2,30) } } //*********************************************** // Funci�n para determinar las fechas //*********************************************** function hasta() { var now = new Date(); var anyo = now.getYear()+1; var date = new Date("January 1, "+anyo); var description = "el "+anyo; var diff = date.getTime() - now.getTime(); var days = Math.floor(diff / (1000 * 60 * 60 * 24)); if (days > 1) { document.write(days+1 + " d�as hasta " + description);} else if (days == 1) { document.write("S�lo faltan dos d�as para " + description);} else if (days == 0) {document.write("Ma�ana es " + description);} else {document.write("Hoy es " + description + "!");} return true; } //*********************************************** // Datos t�cnicos //*********************************************** function datos() { var xy = navigator.appVersion; xz = xy.substring(0,4); document.write("" + navigator.appName + " (v" + xz +")
" + navigator.platform + "  "+screen.width + "x" + screen.height + "
"); } //************************************************************** // Galletas //************************************************************** function pongalleta(name, value) { var argv = pongalleta.arguments; var argc = pongalleta.arguments.length; var expires = (argc > 2) ? argv[2] : null; var path = (argc > 3) ? argv[3] : null; var domain = (argc > 4) ? argv[4] : null; var secure = (argc > 5) ? argv[5] : false; document.cookie = name + "=" + escape (value) + ((expires == null) ? "" : ("; expires=" + expires.toGMTString())) + ((path == null) ? "" : ("; path=" + path)) + ((domain == null) ? "" : ("; domain=" + domain)) + ((secure == true) ? "; secure" : ""); } function getCookieVal(offset) { var endstr = document.cookie.indexOf (";", offset); if (endstr == -1) endstr = document.cookie.length; return unescape(document.cookie.substring(offset, endstr)); } function recgalleta(name) { var arg = name + "="; var alen = arg.length; var clen = document.cookie.length; var i = 0; while (i < clen) { var j = i + alen; if (document.cookie.substring(i, j) == arg) return getCookieVal (j); i = document.cookie.indexOf(" ", i) + 1; if (i == 0) break; } return null;}