function goTab(tab){		window.document.getElementById("bottomtab").innerHTML = '<ifr' + 'ame frameborder="0" marginwidth="0" marginheight="0" height="251" width="770" id="otros_servicios" src="' + tab + '" scrolling="no"/>';}/*Mixmail*/function resetField() {	var f = document.forms["fbody"];	if (f.u.value == "Escribe tu mail @mixmail o @ya.com") {		f.u.value = "";	}}function completeMail() {	var f = document.forms["fbody"];	if (f.u.value.indexOf("@") == -1) {		f.u.value = f.u.value + "@mixmail.com";	}}function ValidEmail(email) {    if (window.RegExp) {    			 var re1 = new RegExp("(@.*@)|(\\.\\.)|(@\\.)|(\\.@)|(^\\.)");      var re2 = new RegExp("^.+\\@(\\[?)[a-zA-Z0-9\\-\\.]+\\.([a-zA-Z]{2,3}|[0-9]{1,3})(\\]?)$");    			 if (!re1.test(email) && re2.test(email)) return true;       return false;    } else {    			 if(str.indexOf("@") >= 0) return true;       return false;    }}function passwordKeyPress(e) {	if (window.event.keyCode == 13) {		return sendForm();	}	return true;}function sendForm() {	var f = document.fbody;	if(f.u.value == ""){		alert("El usuario no puede estar vacío");		f.u.focus();		return false;	} else if (!ValidEmail(f.u.value)) {			alert("Dirección de correo incorrecta.\nAsegúrate de poner la dirección completa.");		f.u.focus();		return false;	} else if(f.pwd.value == ""){		alert("La contraseña no puede estar vacía");		f.pwd.focus();		return;	} else {	    f.u.value = f.u.value.toLowerCase();		f.usuario.value = 				f.method = "POST";		var nick = f.u.value.substring(0, f.u.value.indexOf("@"));		var dominio = f.u.value.substring(f.u.value.indexOf("@")+1);				f.usuario.value = nick;		f.dominio.value = dominio;				if (f.u.value.indexOf('@mixmail.com') > -1) {		  //f.action = "http://mixmail.ya.com/app/login";		  f.action = "http://web.mixmail.com/LoginWanadoo";		} else {		  f.action = "http://webmail.ya.com/app/login";		}		f.submit();	}}/*End Mixmail*//* el tiempo */function selectRedirect(e) {	if (e.options[e.selectedIndex].value != "") {		window.open("http://eltiempo.ya.com/" + e.options[e.selectedIndex].value, '');	}}/*Search engine*/function doOnKeyPress(e,f){  if (e.keyCode == 13 || e.keyCode == 10){    doOnSubmit(f);    return false;  }else{    return true;  }	}function doOnSubmit(f){  /*var context = (f.context? getCheckedValue(f.context) : "");	  var query = f.q.value;	  if(query.length>1){	    if ((context=="video")){                  self.location.href = "http://www2.yatv.com/jsp/JYatvSearchResults.jsp?s=15177&mode=text&results=5&format="+context+"&query="+query;		}else if((context=="image")){    				self.location.href = "http://buscar.ya.com/fast-cgi/tsc?adtest=&mandant=toi&portallanguage=es&userlanguage=es&device=html&context=img&iocr=yes&tax_max=&tax=&language=&ocontext=&dia=tsc&hdr=1&lang=primary&q="+query;          }else if ((context=="cartelera")){              self.location.href = "http://cartelera.ya.com/Billboard/$M=filmquery$O=1$FQ="+query;    }else if ((context=="web-news")){       self.location.href = "http://buscador.noticias.ya.com/Search?M=newsresults&Q=" + query;    }else if((context=="C")){      self.location.href = "http://www.finanzas.com/Buscador.asp?SE="+context+"&TE="+query;    }else if((context=="empresas")){    	//self.location.href = "http://www.finanzas.com/empresas/buscador.asp?cadena="+query;    	f.action = "http://www.finanzas.com/empresas/buscador.asp";    	f.cadena.value=escapeChars(query);        f.submit();        }else{*/      //f.action = "http://buscar.ya.com/fast-cgi/tsc";      //f.submit();	  if(window.location.href.toLowerCase().indexOf("mixmail")>-1){	     window.location.href = 'http://busca.ya.com/search?origen=header&buscar='+f.q.value+'&destino=web';	  }else{		window.location.href = "http://busca.ya.com/search?buscar=" + f.q.value + "&origen=home";	  }    /*}  }*/}function doOnClick(url){	var f = document.getElementById("FORMGenericSearchBox1");	if(url.indexOf("noticias")!=-1 || url.indexOf("destino=news") !=-1){	      if(window.location.href.toLowerCase().indexOf("mixmail")>-1){		    window.open('http://busca.ya.com/search?origen=social&buscar='+f.q.value+'&destino=news');		  }else{		    window.open("http://busca.ya.com/search?buscar=" + f.q.value + "&destino=news&origen=home");		  }	}else if(url.indexOf("/videos") !=-1 || url.indexOf("destino=video") !=-1){		window.open("http://buscador.yatv.com/Web20?M=searchtonline&FS=true&T=" + f.q.value + "&origen=home");	}else if(url.indexOf("/directorio") !=-1){		window.open("http://resultados.ya.com/" + f.q.value.replace(/[ ]+/, "-"));	}else if(url.indexOf("/ya") !=-1){		window.open("http://busca.ya.com/search?buscar=site:ya.com+" +f.q.value + "&origen=home");	}else if(url.indexOf("/busquedas-populares") !=-1){		window.open("http://buscador.ya.com/busquedas-populares");	}else if(url.indexOf("destino=mp3") !=-1){		window.open("http://busca.ya.com/search?buscar=" + f.q.value + "&destino=mp3" + "&origen=home");	}else if(url.indexOf("destino=imagen") !=-1){	  if(window.location.href.toLowerCase().indexOf("mixmail")>-1){	    window.open('http://busca.ya.com/search?origen=social&buscar='+f.q.value+'&destino=imagen');	  }else{		window.open("http://busca.ya.com/search?buscar=" + f.q.value + "&destino=imagen" + "&origen=home");	  }	} else {		window.open(url);	}}function OnEnviaNum(){  num = document.forms.buscador.numero.value;  money = document.forms.buscador.money.value;  idpartner = document.forms.buscador.idpartner.value;	  newnum = parseInt(num,10);  if (isNaN(newnum))  {    alert('El formato del número no es correcto');    return false;  }  if (isNaN(money))  {    alert('El importe que juega no es correcto');    return false;  }  if ((newnum<0) || (newnum>84999))  {    alert('El número ha de estar comprendido entre 00000 y 84999');    return false;  }  window.open('http://208.51.204.188/11/partner/numero' + newnum + '.html?amount='+money+'&idpartner='+idpartner,"numero",'width=600,height=360,scrollbars=yes');  }