added validation function (called when any editable field in diameter entry goes out of focus). currently the function jsut figures out which field went out of focus, no validation is in this code yet.