Try adding this to the end of the line:
[code]
INSERT: "portalindex.php?loc=results&id=testresults&recordID=" . mysql_insert_id() ."";
UPDATE: "portalindex.php?loc=results&id=testresults&recordID=" . $_GET['recordID'] ."";
[code]
Dreamweaver expects those lines to end with a double quote, and when they don't it can cause DW to get confused and hang for a long time.