<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>new page</title>
<script>
function a(obj){
if(obj.value!="X385"){
document.getElementById("div1").innerHTML="<font color=red>不正确,请填写正确的值!</font>";
}else{
document.getElementById("div1").innerHTML="<font color=black>正确!</font>";
}
}
</script>
</head><body>
<input type=text onblur=a(this) /><div id=div1></div>
</body></html>