<input name="cdw" type="text" onpropertychange='if(/[^/-?/d*/.?/d{0,2}]/.test(this.value)) this.value=this.value.replace(/[^/-?/d*/.?/d{0,2}]/,"")'>