Hola
Podría ser algo como esto
Código javascript
:
Ver original<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="http-equiv" content="Content-type: text/html; charset=UTF-8"/>
<script type="text/javascript">
function funcion(m,c) {
var unidad = 50;
metros = (m != "") ? m : document.getElementById("metros").value ;
cantidad = (c != "") ? c : 1;
var total = parseInt((parseFloat(metros)*unidad)*cantidad);
document.getElementById("total").value = total;
}
</script>
</head>
<body>
<form>
Metros Cuadrados <input type="text" id="metros" value="1" onkeyup="funcion(this.value,'');" /><br />
Cantidad <input type="text" id="cantidad" value="1" onkeyup="funcion('',this.value);" /><br />
Total <input type="text" id="total" value="" />
</form>
</body>
</html>
Suerte