//agregar a favoritos
var url="http://www.escueladebackgammon.com"  
var titulo="Escuela de Backgammon" 
function fav(){ 
if (document.all) 
window.external.AddFavorite(url,titulo) 
} 

//pagina de inicio

function inicio(){  
obj_Pagina_Inicio.style.behavior='url(#default#homepage)'; 
obj_Pagina_Inicio.setHomePage("http://www.escueladebackgammon.com"); 
}  


//para validar el mail de newsleters
function news(f){
var b=/^[^@\s]+@[^@\.\s]+(\.[^@\.\s]+)+$/
var mail = f.nl_email.value;
if (f.nl_name.value=="" || f.nl_name.value=="Ingrese su nombre"){
	alert("Ingrese su nombre.")
   return false;
}else
    if (b.test(mail)==false){
		alert("Email no válido.")
   return false;
   }
   else
   return true;
}



//para validar los mails de recomendación
function recomendar(g){
var c=/^[^@\s]+@[^@\.\s]+(\.[^@\.\s]+)+$/
var mail_from = g.from_email.value;
var mail_too = g.to_email.value;
if (g.from.value=="" || g.too.value==""){
	alert("Ingresa tu Nombre y el de tu Amigo.")
   return false;
}else
    if (c.test(mail_from)==false){
		alert("tu Email no es válido.")
   return false;
   }
   else
    if (c.test(mail_too)==false){
		alert("El email de tu amigo no es válido.")
   return false;
   }
   else
   return true;
}