var presets = new Object(); presets[] = { 'UnitsIndex': , 'CheckMethodIndex': , 'MinPixelThreshold': '', 'MaxPixelThreshold': '', 'FilterX': '', 'FilterY': '', 'MinAlarmPixels': '', 'MaxAlarmPixels': '', 'MinFilterPixels': '', 'MaxFilterPixels': '', 'MinBlobPixels': '', 'MaxBlobPixels': '', 'MinBlobs': '', 'MaxBlobs': '', 'OverloadFrames': '' }; var zone = { 'Name': '', 'Id': , 'MonitorId': , 'CheckMethod': '', 'AlarmRGB': '', 'NumCoords': , 'Coords': '', 'Area': }; zone['Points'] = new Array(); zone['Points'][] = { 'x': , 'y': }; var maxX = ; var maxY = ; 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 = '';