function converte_moeda(moeda)
{
	cambio=200.482;
	if (moeda=="escudos")
	{
		conversor_euro.euros.value=conversor_euro.escudos.value/cambio;
	}
	else
	{
		conversor_euro.escudos.value=conversor_euro.euros.value*cambio;
	}
}

document.write("<table width=165 border=1 cellspacing=0 bordercolordark=#FFFFFF bordercolorlight=#000000>");
document.write("<tr>");
document.write("<td align=center bgcolor=#276BB1>");
document.write("<table border=0 width=155>");
document.write("	<tr>");
document.write("		<td align=left>");
document.write("		<font face=Verdana size=1 color=#FFFF00>");
document.write("		<a href='http://www.tecmania.com'><img border=0 src='http://www.tecmania.com/images/logo_p.gif' width=145 height=47></a><br>");
document.write("		<font size=1><b>Conversor de Euros</b></font><br>");
document.write("		<form name='conversor_euro'>");
document.write("		<b>escudos:</b><br>");
document.write("		<input type=Text name=escudos style='background-color: #FFFF99; color: #0000FF; font-weight: bold; font-size: xx-small; font-family: Verdana;' onKeyUp='converte_moeda(&quot;escudos&quot;)'>");
document.write("		<br>");
document.write("		<b>euros:</b><br>");
document.write("		<input type=Text name=euros style='background-color: #FFFF99; color: #0000FF; font-weight: bold; font-size: xx-small; font-family: Verdana;' onKeyUp='converte_moeda(&quot;euros&quot;)'>");
document.write("		</form>");

nova_data=new Date();
ano=nova_data.getYear();
mes=nova_data.getMonth();
dia=nova_data.getDate();
var mes_max= new Array(31,28,31,30,31,30,31,31,30,31,30,31);
dias_faltam=0-dia;
for(var m=mes;m<12;m++)
{
	dias_faltam=dias_faltam+mes_max[m];
}
if(ano==2001)
{
	document.write("		Faltam <b>");
	document.write(dias_faltam);
	document.write("</b> dias<br>");
	document.write("		para a moeda única!");
}
document.write("		</td>");
document.write("	</tr>");
document.write("</table>");
document.write("</td>");
document.write("</tr>");
document.write("</table>");