prueba si te sirve así
<html>
<head>
<title> CONVERSOR </title>
<script LANGUAGE="JavaScript">
var euro=166.386;
function eur(cual){
cual.value=Math.round(parseInt(cual.value/euro));
}
function pelas(cual){
cual.value=Math.round(parseInt(cual.value*euro));
}
</script>
</head>
<body BGCOLOR="#FFBE9F">
<br><br>
<form NAME="conversor">
<table width="43%" border="0" align="center">
<tr>
<td colspan="2">Conversor Euros / Pesetas</td>
</tr>
<tr>
<td>Pesetas</td>
<td>Euros</td>
</tr>
<tr>
<td><input type="TEXT" name="pts" value="0" size="10">
<input type="BUTTON" name="a_euros" value="->" onClick="eur(this.form.pts)"></td>
<td><input type="TEXT" name="euros" value="0,00" size="10">
<input type="BUTTON" name="a_pts" value="<-" onClick="pelas(this.form.euros)"> </td>
</tr>
</table>
</form>
<p> </p>
</body>
</html>