CENTENNIAL, Colo. -- A judge accepted James Holmes' plea of not guilty by reason of insanity Tuesday and ordered him to undergo a mental evaluation -- an examination that could be a decisive factor in whether the Aurora, Colo., theater shooting suspect is convicted and sentenced to die.

The judge also granted prosecutors access to a notebook that Holmes sent to a psychiatrist shortly before the July 20 rampage, which left 12 people dead and 70 injured in a bloody, bullet-riddled movie theater in suburban Denver.

Holmes faces more than 160 counts of murder and attempted murder, and prosecutors are seeking the death penalty.

He will now be examined by the Colorado Mental Health Institute in Pueblo, but it's not certain when the evaluation will begin or how long it will take. Judge Carlos Samour Jr. set a tentative date of Aug. 2 for the exam to be complete but said he would push that back if hospital officials request more time. Samour indicated he still hopes to begin Holmes' trial in February.-- AP

Loading video…

Under the immigration crackdown that has led to the detention of thousands from Long Island, children who lack permanent legal status, or whose parents do, face extraordinary uncertainty as they try to lead ordinary lives. NewsdayTV's Pat Dolan reports. Credit: Newsday/Drew Singh; Debbie Egan-Chin; Tatiana Ramos; File Footage; AP; Photo Credit: AP / George Walker IV

'I just want my mom to come back' Under the immigration crackdown that has led to the detention of thousands from Long Island, children who lack permanent legal status, or whose parents do, face extraordinary uncertainty as they try to lead ordinary lives. NewsdayTV's Pat Dolan reports.

Loading video…

Under the immigration crackdown that has led to the detention of thousands from Long Island, children who lack permanent legal status, or whose parents do, face extraordinary uncertainty as they try to lead ordinary lives. NewsdayTV's Pat Dolan reports. Credit: Newsday/Drew Singh; Debbie Egan-Chin; Tatiana Ramos; File Footage; AP; Photo Credit: AP / George Walker IV

'I just want my mom to come back' Under the immigration crackdown that has led to the detention of thousands from Long Island, children who lack permanent legal status, or whose parents do, face extraordinary uncertainty as they try to lead ordinary lives. NewsdayTV's Pat Dolan reports.

FLASH SALE

$1 for 1 year

Unlimited Digital Access

ACT NOWCancel anytime