match
init()
onFormInit
function ValidateAccess() { if (parent.datacapture.isDatacaptureLoaded) { var userRole = IWDatacapture.getRole(); if (userRole != "master" && userRole != "admin") { alert("You don't have sufficient permissions to edit this dcr type.\nYou must be either a master or an administrator."); IWDatacapture.close(false); } } else { setTimeout("ValidateAccess()",500); }}
IWDatacapture.close(false); // I don't think the close method takes an arg??
parent.window.close();