function replace(){var re=/[(ãÃáÁàÀâÂéÉèÈêÊíÍóÓõÕúÚçÇ€ßñÑüÜäÄöÖ]/g
for(i=0;i<arguments.length;i++)
arguments[i].value=arguments[i].value.replace(re,function(m){return replacechar(m)})}
function replacechar(match){if(match=="ã")
return"&atilde;"
else if(match=="Ã")
return"&Atilde;"
else if(match=="á")
return"&aacute;"
else if(match=="Á")
return"&Aacute;"
else if(match=="à")
return"&agrave;"
else if(match=="À")
return"&Agrave;"
else if(match=="â")
return"&acirc;"
else if(match=="Â")
return"&Acirc;"
else if(match=="é")
return"&eacute;"
else if(match=="É")
return"&Eacute;"
else if(match=="è")
return"&egrave;"
else if(match=="È")
return"&Egrave;"
else if(match=="ê")
return"&ecirc;"
else if(match=="Ê")
return"&Ecirc;"
else if(match=="í")
return"&iacute;"
else if(match=="Í")
return"&Iacute;"
else if(match=="ó")
return"&oacute;"
else if(match=="Ó")
return"&Oacute;"
else if(match=="õ")
return"&otilde;"
else if(match=="Õ")
return"&Otilde;"
else if(match=="ú")
return"&uacute;"
else if(match=="Ú")
return"&Uacute;"
else if(match=="ç")
return"&ccedil;"
else if(match=="Ç")
return"&Ccedil;"
else if(match=="€")
return"Euro"
else if(match=="ß")
return"&szlig;"
else if(match=="ñ")
return"&ntilde;"
else if(match=="Ñ")
return"&Ntilde;"
else if(match=="ü")
return"&uuml;"
else if(match=="Ü")
return"&Uuml;"
else if(match=="ä")
return"&auml;"
else if(match=="Ä")
return"&Auml;"
else if(match=="ö")
return"&ouml;"
else if(match=="Ö")
return"&Ouml;"}