rlist=new Array()

//     Escogemos nuestro delimitador
delim=","
//     Y ahora declaramos las correcciones
//     rlist[rlist.length]="email_malo,email_bueno"
rlist[rlist.length]="ho9tmail.,hotmail."
rlist[rlist.length]="hot6mail.,hotmail."
rlist[rlist.length]="hotmasil.,hotmail."
rlist[rlist.length]="hotamail.,hotmail."
rlist[rlist.length]="hptmail.,hotmail."
rlist[rlist.length]="homail.,hotmail."
rlist[rlist.length]="hotmaill.,hotmail."
rlist[rlist.length]="holmail.,hotmail."
rlist[rlist.length]="hotrmail.,hotmail."
rlist[rlist.length]="hotmauil.,hotmail."
rlist[rlist.length]="hjotmail.,hotmail."
rlist[rlist.length]="hotmial.,hotmail."
rlist[rlist.length]="hotmal.,hotmail."
rlist[rlist.length]="hotmil.,hotmail."
rlist[rlist.length]="hotmi.,hotmail."
rlist[rlist.length]="hootmaail.,hotmail."
rlist[rlist.length]="hormail.,hotmail."
rlist[rlist.length]="hootmail.,hotmail."
rlist[rlist.length]="homal.,hotmail."
rlist[rlist.length]="hottmail.,hotmail."
rlist[rlist.length]="hotemail.,hotmail."
rlist[rlist.length]="hotmeil.,hotmail."
rlist[rlist.length]="hatmail.,hotmail."
rlist[rlist.length]="hatm.,hotmail."
rlist[rlist.length]="hotymail.,hotmail."
rlist[rlist.length]="hotamil.,hotmail."
rlist[rlist.length]="hoatmail.,hotmail."
rlist[rlist.length]="homtail.,hotmail."
rlist[rlist.length]="hotmael.,hotmail."
rlist[rlist.length]="hutmail.,hotmail."
rlist[rlist.length]="humail.,hotmail."
rlist[rlist.length]="gotmail.,hotmail."
rlist[rlist.length]="jotmial.,hotmail."
rlist[rlist.length]="jotmail.,hotmail."
rlist[rlist.length]="jotmael.,hotmail."
rlist[rlist.length]="hotmaul.,hotmail."
rlist[rlist.length]="kotmail.,hotmail."
rlist[rlist.length]="ahotmail.,hotmail."
rlist[rlist.length]="yhotmail.,hotmail."
rlist[rlist.length]="@otmail.,@hotmail."
rlist[rlist.length]="hotmmail.,hotmail."
rlist[rlist.length]="hotmaiul.,hotmail."
rlist[rlist.length]="hotmkail.,hotmail."
rlist[rlist.length]="hoamil.,hotmail."
rlist[rlist.length]="homtmail.,hotmail."
rlist[rlist.length]="htomail.,hotmail."
rlist[rlist.length]="hotm.,hotmail."
rlist[rlist.length]="@tomail.,hotmail."
rlist[rlist.length]="@ive.com,@live.com"
rlist[rlist.length]="@yhoo.,@yahoo."
rlist[rlist.length]="yaho.,yahoo."
rlist[rlist.length]="yaoo.,yahoo."
rlist[rlist.length]="yahooo.,yahoo."
rlist[rlist.length]="yagoo.,yahoo."
rlist[rlist.length]="yah00.com,yahoo.com"
rlist[rlist.length]="yaju.,yahoo."
rlist[rlist.length]="yajoo.,yahoo."
rlist[rlist.length]="yajuu.,yahoo."
rlist[rlist.length]="yshoo.,yahoo."
rlist[rlist.length]="yahho.,yahoo."
rlist[rlist.length]="tahoo.,yahoo."
rlist[rlist.length]="@ahoo.,@yahoo."
rlist[rlist.length]="gemail.,gmail."
rlist[rlist.length]="@jmail.,@gmail."
rlist[rlist.length]="@gmal.,@gmail."
rlist[rlist.length]="gimail.,gmail."
rlist[rlist.length]="latinamil.,latinmail."
rlist[rlist.length]=".com.com,.com"
rlist[rlist.length]=".cm,.com"
rlist[rlist.length]=".om,.com"


//    Ahora corregimos lo que sabemos corregir:
function corregirlo(paracorregir){
for(i=0;i<rlist.length;i++){
temp=rlist[i].split(delim)
paracorregir=paracorregir.split(temp[0]).join(temp[1])
}
return paracorregir
}

//     ...Pero hay correcciones que no sabemos hacer.
//    Así que tendremos que filtrar, y avisar.
var filtrarcorreos=/^\w+[\+\.\w-]*@([\w-]+\.)*\w+[\w-]*\.([a-z]{2,4}|\d+)$/i

function formatoemail(e){
var returnval=filtrarcorreos.test(e.value)
if (returnval==false){
alert("Has puesto mal la dirección de email.")
e.select()
}
return returnval
}

// Aprovechamos para meter código de botones AddIt
var addthis_config = {
      services_custom: {
              name: "Bitacoras",
              url: "http://bitacoras.com/anotaciones/{{URL}}",
              icon: "http://static2.bitacoras.com/images/agregador/bitacorascom16x16.gif"}
}
var addthis_pub="shoshan"; var addthis_language = "es"; var addthis_options = 'facebook, favorites, email, live, Bitacoras, myspace, meneame, google, twitter, misterwong, blogger, hotmail, yahoobkm, gmail, buzz, more';