var showh, showv, structure, viseq, lyr, busy, doit, closingb, active; 
plat = ((navigator.platform.indexOf('Win') > -1) ? "win" : "mac"); 
browse = navigator.appName; 
docimg = "document.images."; 
showh = "'hidden'"; 
showv = "'visible'"; 
busy = 0; 
closingb = ""; 
active = null; 
var g3 = (document.getElementById);         
var ns = (document.layers);                 
var ie = (document.all);                    
if (g3) 
{ 
structure = "document.getElementById('"; 
viseq = "').style.visibility = "; 
nslyr = "" 
ns = false;                                
ie = false;                                
closingb = "')"; 
} 
if (ie) 
{ 
structure = "document.all."; 
viseq = ".style.visibility="; 
nslyr = ""; 
} 
if (ns) 
{ 
structure = "document.layers."; 
viseq = ".visibility="; 
} 
function fnPicChange(imgname,state,lyrid) 
{ 
args = fnPicChange.arguments; 
var strState = ((state == 1) ? "_on" : "_off"); 
pic = imgname + ".src=" + imgname + strState + ".src"; 
if (args.length == 3 && (ns)) {nslyr = "document.layers." + args[2] + ".";} 
else {nslyr = ""} 
eval(nslyr + docimg + pic); 
} 
function fnIconChange(imgname,state,type,lyrid) 
{ 
args = fnIconChange.arguments; 
var strState = ((state == 1) ? "_on" : "_off"); 
pic = imgname + ".src=" + type + strState + ".src"; 
if (args.length == 4 && (ns)) {nslyr = "document.layers." + args[3] + ".";} 
else {nslyr = ""} 
eval(nslyr + docimg + pic); 
} 
function testLayer(id) 
{ 
test = eval(structure +id + closingb); 
if (!test) {return false;} 
return true; 
} 
function showHideLayer(lyrid,state) 
{ 
if (!testLayer(lyrid)) {return false;} 
var strVis = showv 
if (state == 0){strVis = showh;} 
eval(structure + lyrid + viseq + strVis) 
} 
function showPolicies(strAnchor) 
{ 
PoliciesWindow = window.open(DbURL+"/frmPagePopup?ReadForm&Page=PoliciesPage#" + strAnchor,"PoliciesWindow","width=390,height=410,resizable=no,scrollbars=yes,status=no,location=no,menubar=no"); 
PoliciesWindow.opener = self; 
PoliciesWindow.focus(); 
}
