at line 7 you have the following if statement:
if ("".$_SESSION['Region'] ."" < "7") { // WebAssist Show If
that if statement is closed at line 180:
} // ("".$_SESSION['Region'] ."" < "7")
the code for the update record behavior is at lines 136 - 178, inside of that if statement.
the fact that the region session variable is 7 is causing the if to fail and the update to be ignored.