Hola kan.
Me temo que tienes problemas porque el nombre de tu función coincide con el nombre del select.
Prueba esto:
Código PHP:
<html>
<head>
<script language='javascript'>
function fCliente(){
with (document.form1){
for (i = 0; i < cliente.length; i++){
if (cliente[i].value == codcliente.value){
cliente.options[i].selected = true;
return;
}
}
if (i > cliente.length && codcliente.value != ""){
alert("El codigo que has introducido no pertence a ningun cliente");
document.form1.codcliente.focus();
}
}
}
</script>
</head>
<body>
<form name="form1">
<select name="cliente">
<option value="513681">2 PAPEL</option>
<option value="462012">24 ENTERPRISE S.G.E.</option>
<option value="534185">ZX</option>
</select>
<input type="button" name="hcliente" value="Historico Cliente">
<input type="button" name="ncliente" value="Nuevo Cliente" >
<input type="text" name="codcliente" onblur="fCliente()">
</form>
</body>
</html>
Saludos.