OK, let try again,
The site did not seem to allow me to put in extra spaces between the section of code. ir after each semi colon.
var text Words =
Case( [Related status]
,13,"16"
,16,"14"
);
var text Words =
Case( [Related status]
,13,"<b><font size=+1>Update Status 'In Warehouse'"
,16,"<b><font size=+1>Update Status 'Ready For Pickup'"
);
var text Update = URLRoot()
& "db/bn6bxjm9t?a=API_EditRecord&rid=" & [Record ID#]
& "&_fid_23="& $nextStatus
& "&apptoken=dwnt9wipc3cvfcg6nvd3ba97ps4";
var text URL =
"javascript:" &
"$.get('" &
$Update &
"',function(){" &
"location.reload(true);" &
"});"
& "void(0);";
IF($NextStatus<>"",
"<a href=" & $URL & ">" & $Words & "</a>"
)