this.inPlaceEdit_Blur = function inPlaceEdit_Blur(){ var xval = this.value; var re = new RegExp("(^\[0-9]{1,6}$)"); if((xval == "")){ } else if(!xval.match(re)){ alert('Value must be numeric.'); return false; } this.parentNode.removeChild(this); this.parentNode.innerHTML = xval; };