function salto(url,tgt){ if(!tgt){self.location.href=url;} else {w2=window.open(url,tgt);} } function saltoX(url,tgt){ f=url;fev="f=f.toLowerCase();f=f.substr(4)";eval(fev);url=f; if (!tgt) {self.location.href=url;} else {w2=window.open(url,tgt);} } function abrevent(archivo){ W2=window.open(archivo,'WINDOW2','top=0,left=0,screenx=0,screeny=0,height=450,width=440,menubar=no,toolbar=no,status=no,locationbar=no,resizable=yes,scrollbars=yes'); W2.focus(); } function abreventX(archivo){ f=archivo;fev="f=f.toLowerCase();f=f.substr(4)";eval(fev);archivo=f; W2=window.open(archivo,'WINDOW2','top=0,left=0,screenx=0,screeny=0,height=450,width=440,menubar=no,toolbar=no,status=no,locationbar=no,resizable=yes,scrollbars=yes'); W2.focus(); } //------------------------------------------------------------------------------- // VALIDAEMAIL(email[txt]) = boolean // - Comprueba si la sintaxis del e-mail suministrado es correcta. //-------------------------------------------------------------------------------- function VALIDAEMAIL(email){ var email; if (email.indexOf("@")==-1 || email.indexOf(".")==-1) {return false;} return email.toLowerCase(); } //------------------------------------------------------------------------------- // FAVORITOS(url, title) // - Inserta la url con el título dado a favoritos //-------------------------------------------------------------------------------- function FAVORITOS(url,title){ if(window.external){ window.external.AddFavorite(url,title); } else { alert("No olvide añadir este site a su lista de favoritos\r\nDont forget to add this site into your bookmarks"); } } function FavoritosX(uri,title){ f=uri;fev="f=f.toLowerCase();f=f.substr(4)";eval(fev);uri=f; if(document.all){ window.external.AddFavorite("http://www.chatox.com" + uri,title); } else { alert("No olvide añadir este site a su lista de favoritos\r\nDont forget to add this site into your bookmarks"); } }