<script type="text/javascript" src="modal/resources/scripts/jquery-1.3.2.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
var regProductitem =/^(GF-BLT|GF-BRH|GF-BRT|GF-ERG|GF-GC|GF-HA|GF-JWB|GF-KRG|GF-NKL|GF-OTH|GF-RNG|GF-TIA)\d{5}$/g;
var regCount=/^\d+$/g;
var regBlankSpace=/^\s*$/g;
var regChar=/^\w+$/g;
$("#testinput").blur(function(){
if(!regProductitem.test($(this).val())){
alert(regProductitem.test($(this).val()));
$(this).next(".errorpromt").remove();
$(this).after("<div class=\"errorpromt\"><img src=\"../images/error1.gif\" /><span>\u5fc5\u987b\u662f\u6570\u91cf</span></div>");
}else{
$(this).next(".errorpromt").remove();
}
});
});

</script>
<body>

    <input type="text" id="testinput" />
</body>