var ii100b =
[
"\
================================================================================
\
LOG: 100A PRI: TYPE: Media CB: BEAT:
\
LOC: CS:
\
()
\
ORI: 0625 2153 DISP: FILED: X:
\
ORI ACTION: R/S: DUP: CBT: Z:Y
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
"
];
var ii100f =
[
"\
================================================================================
\
\
\
062510/0017 REF: 1 2 3 4 CAD: 0 0 0 0 CLETS: 0 0 MIS: 0 1
\
"
];
var defaultb =
[
"\
================================================================================
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
"
];
var defaultf =
[
"\
================================================================================
\
\
\
062510/0017 REF: 1 2 3 4 CAD: 0 0 0 0 CLETS: 0 0 MIS: 0 1
\
"
];
var ii187b =
[
"\
================================================================================
\
LOG: 187A PRI: TYPE: 1179 CB: BEAT: 14-14
\
LOC: SB55 AT 405 CS:
\
(SB55 AT 405)
\
ORI: 0625 2154 DISP: FILED: X:
\
ORI ACTION: R/S: DUP: CBT: Z:Y
\
------------------------------------- DETAIL -----------------------------------
\
000A176612154 1 STALLED DOT SB SR-55 AT I-405
\
000A176612156 2 CELLULAR 911 RPT DOT HT, 2ND VEH OVER THE SIDE, UNVERIFIED
\
000A176612156 3 DUPLICATE CALL
\
000A176612157 4 DUPLICATE CALL
\
000A176612158 5 DOT HIT BY VEH, VEH OVER SIDE.
\
000A176612158 6 2ND VEH LANDED NB 405 BELOW, LG COLLISION OCCUR. REQ 2 1141
\
CODE 2 UNITS ASSIST
\
000A176612158 7 DUPLICATE CALL
\
000A176612159 8 14-17 14-9 ENRT ASSIST 1183 1125
\
000A176612159 9 DUPLICATE CALL
\
000A176612200 10 DOT DRIVER UNINJURED, #2,3 LNS BLCKD SB 55.
\
000A176612200 11 14-14 MVNG TO 405 ASSESS DMG
\
000A176612205 12 14-14 1097, MULTIPLE 1144 NB 405 AT 55 OVERPASS, 6 VEH TC
\
000A176612205 13 BLOCKING 3 INSIDE LNS NB 405. DRVR AND PSSNGR IN VEH 1144, 2
\
\
",
"\
================================================================================
\
OTHER FATALS, MULT INJR, REQ CRNR AND SIGALERT
\
000A176612205 14 1039 CRNR
\
000A176612206 15 14-17 1097, PARAMEDICS 1097. 1184 SB 55 FOR DOT 1125
\
000A176612207 16 REQ MAIT, REQ 14-S UNIT, REQ TMT
\
000A176612210 17 14-9 1097, ASSIST 1184
\
000A176612211 18 TRAFFIC BACKING SB 55 REQ TMT MEDIUM DUTY 1185
\
000A176612212 19 4 1144'S, 2 1180'S, 4 1181'S
\
000A176612214 20 1039 SABLAN TOWING
\
000A176612215 21 14-S3 1097 NB 405 @ 55
\
000A176612215 22 MAIT ETA 15
\
000A176612220 23 CRNR 1097, INJURED TRANSPORTED
\
000A176612228 24 MAIT 1097 STARTING INVESTIGATION SB SR55
\
000A176612230 25 MED DUTY 1185 1097, AWAIT FINISH MAIT BEFORE TOW VEH
\
000A176612233 26 CRNR CONFIRMED FOUR FATAL, PREP TO TRANSPORT
\
000A176612240 27 MAIT FINISHED W/ INVESTIGATION SB SR-55 AT I-405, PREP DOT
\
TRCK FOR TOW
\
000A176612247 28 MAIT STARTING INVESTIGATION NB 405 TO TAKE 30 MIN
\
000A176612248 29 CLNUP NRLY FNSHD DOT RDY TO BE TWD, SB SR-55 LNS OPN IN 5
\
000A176612255 30 14-17 1097 DOT TRCK TWD, SB SR-55 OPN
\
000A176612256 31 MAIT PARTIAL CMPLT, PICS TKN, NEED MSRMNTS, INTERVIEWS
\
\
",
"\
================================================================================
\
000A176612301 32 REQ 6 ROT 1185
\
000A176612303 33 MAIT NEARLY COMPLETE, FINISHING INTERVIEWS, TOW ETA 10
\
000A176612309 34 MAIT FINISHED INVESTIGATION 1098, START CLEANUP WHEN 1185S
\
ARRIVE
\
000A176612312 35 1185 1097 PARTIAL OPENING IN 15
\
000A176612323 36 OPN #2,3 LNS, FULL OPN IN 5
\
000A176612328 37 VEH TWD, LNS OPN, 14-S, 14-9, 14-14 1098
\
-------------------------------- UNITS ASSIGNED --------------------------------
\
000A176612328 < 14-14 1098
\
000A176612328 - 14-17 1098
\
000A176612328 - 14-9 1098
\
000A176612328 - 14-S3 1098
\
------------------------------------- TOWS -------------------------------------
\
000A176612214 1 SABLAN TOWING BEAT:
\
CONF: (949)555-2468 PUB: (949)555-8899
\
\
\
\
\
\
\
"
];
var ii187f =
[
"\
================================================================================
\
\
\
062510/0021 REF: 1 2 3 4 PG DN CAD: 0 0 0 0 CLETS: 0 0 MIS: 0 1
\
",
"\
================================================================================
\
\
\
062510/0021 REF: 1 2 3 4 UP DN CAD: 0 0 0 0 CLETS: 0 0 MIS: 0 1
\
",
"\
================================================================================
\
\
\
062510/0021 REF: 1 2 3 4 PG UP CAD: 0 0 0 0 CLETS: 0 0 MIS: 0 1
\
"
];
var summaryb =
[
"\
================================================================================
\
AREA(S) 3 5 9 14 18 29 51 - INCIDENT SUMMARY ------------ STATE: I P A F
\
100 0625-2153 Media
\
187 0625-2154 1179 14-14 SB55 AT 405 14-14
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
"
];
var summaryf =
[
"\
================================================================================
\
\
\
062510/0017 REF: 1 2 3 4 CAD: 0 0 0 0 CLETS: 0 0 MIS: 0 1
\
"
];
var scrn = 0;
var page = [0, 0, 0, 0];
var msg = 0;
var bodies = [ii100b, ii187b, summaryb, defaultb];
var footers = [ii100f, ii187f, summaryf, defaultf];
/**
* Setup the CAD screen.
*/
function setupCad()
{
updateCad();
}
/**
* Go to the next CAD screen.
*/
function cadNextScreen()
{
scrn += 1;
if (scrn == 4)
{
scrn = 0;
}
updateCad();
}
/**
* Clears the current CAD screen.
*/
function cadClearScreen()
{
page[scrn] = 0;
bodies[scrn] = defaultb;
footers[scrn] = defaultf;
updateCad();
}
/**
* Refresh the current CAD screen.
*/
function cadRefreshScreen()
{
updateCad();
}
/**
* Page down the CAD screen.
*/
function cadPageDown()
{
page[scrn]++;
if (page[scrn] >= bodies[scrn].length)
page[scrn]--;
updateCad();
}
/**
* Page up the CAD screen.
*/
function cadPageUp()
{
page[scrn] = page[scrn] - (page[scrn] == 0 ? 0 : 1);
updateCad();
}
/**
* Get the incident summaries.
*/
function cadGetSummary()
{
page[scrn] = 0;
bodies[scrn] = summaryb;
footers[scrn] = summaryf;
updateCad();
}
/**
* Go to the next CAD message.
*/
function cadNextMessage()
{
msg++;
updateCad();
}
/**
* Go to the previous CAD message.
*/
function cadPrevMessage()
{
msg -= (msg == 0 ? 0 : 1);
updateCad();
}
/**
* Clears the current CAD screen of messages.
*/
function cadClearMessage()
{
msg = 0;
updateCad();
}
/**
* Get the incident information for the selected incident.
*/
function cadIncidentInfo()
{
if (document.getElementById("cadSelect").selectedIndex == 0)
{
page[scrn] = 0;
bodies[scrn] = ii100b;
footers[scrn] = ii100f;
}
else if (document.getElementById("cadSelect").selectedIndex == 1)
{
page[scrn] = 0;
bodies[scrn] = ii187b;
footers[scrn] = ii187f;
}
updateCad();
}
/**
* Updates the CAD screen.
*/
function updateCad()
{
document.getElementById("cadHeader").innerHTML = "