Si que funciona. Lo he probado en IE y FireFox
Código:
<html>
<head>
</head>
<body>
<form name="f">
<input type="text" tabindex="1" name="pr_elemento" onblur = "this.style.color = (parseInt(this.value) < 40) ? 'red' : 'black';if(this.value.indexOf('.') == -1) this.value = this.value.split('').join('.')" />
</form>
</body>
</html>
Suerte