var presets = new Object(); presets[] = { 'UnitsIndex': , 'CheckMethodIndex': , 'MinPixelThreshold': '', 'MaxPixelThreshold': '', 'FilterX': '', 'FilterY': '', 'MinAlarmPixels': '', 'MaxAlarmPixels': '', 'MinFilterPixels': '', 'MaxFilterPixels': '', 'MinBlobPixels': '', 'MaxBlobPixels': '', 'MinBlobs': '', 'MaxBlobs': '', 'OverloadFrames': '', 'ExtendAlarmFrames': '' }; var zone = { 'Name': '', 'Id': , 'MonitorId': , 'CheckMethod': '', 'AlarmRGB': '', 'NumCoords': , 'Coords': '', 'Area': }; zone['Points'] = new Array(); zone['Points'][] = { 'x': , 'y': }; var maxX = Width()-1 ?>; var maxY = Height()-1 ?>; var selfIntersecting = ; var selfIntersectingString = ''; var alarmRGBUnsetString = ''; var minPixelThresUnsetString = ''; var minPixelThresLtMaxString = ''; var filterUnsetString = ''; var minAlarmAreaUnsetString = ''; var minAlarmAreaLtMaxString = ''; var minFilterAreaUnsetString = ''; var minFilterAreaLtMaxString = ''; var minFilterLtMinAlarmString = ''; var minBlobAreaUnsetString = ''; var minBlobAreaLtMaxString = ''; var minBlobLtMinFilterString = ''; var minBlobsUnsetString = ''; var minBlobsLtMaxString = '';