<% REM Javascript function writeCache checks "updated" flag and confirms whether changes should be saved %>
<% REM The "type" argument ("change", when moving from page to page, or "unload", when unloading frameset) determines whether to set "loadMain" flag %>
<% REM The "pg" argument will load correct main page upon reload %>
function writeCache(type,pg)
{
if (type == "<% = L_CHANGE_TEXT %>")
{
if (hform.updated.value == "<% = L_TRUE_TEXT %>")
{
hform.updated.value = "<% = L_FALSE_TEXT %>";
if (confirm("<% = L_UNSAVEDPROPERTYCHANGES_TEXT %>"))
<% REM Javascript function changeToolbar checks toolbar identifier "tlpg" against page to be loaded ("pg") to determine if a new toolbar needs to be loaded %>