Esto debería funcionar...
Código HTML:
<html>
<head>
<title>Formulario etc javascript</title>
<script language="javascript">
function Borrar(valor)
{
if(document.getElementById("texto").value==valor)
{
document.getElementById("texto").value="";
}
}
function Escribir(valor)
{
if(document.getElementById("texto").value=="")
{
document.getElementById("texto").value=valor;
}
}
</script>
</head>
<body>
<input type="text" id="texto" value="Hola" onfocus="Borrar('Hola')" onblur="Escribir('Hola')"/>
</body>
</html>