Подскажите пожалуйста где тут проблема?
<%
statistics[2] -= diss_count;
for( elem in intership_enents ){
cur_event = OpenDoc(UrlFromDocID(elem.id)).TopElem;
col_group_start = new Array();
col_group_active = new Array();
col_group_exam = new Array();
col_group_second_exam = new Array();
statistics = [ArrayCount(cur_event.collaborators), ArrayCount(cur_event.collaborators), ArrayCount(cur_event.collaborators), 0, 0, 0];
diss_count = 0;
for(col in cur_event.collaborators){
collaborator = OpenDoc(UrlFromDocID(col.collaborator_id)).TopElem;
if(DateNewTime(DateOffset(Date(cur_event.start_date), 86400*3)) >= DateNewTime(Date())){
col_group_start.push(col.collaborator_id);
if(collaborator.custom_elems.ObtainChildByKey("cc_exam_result").value == "1"){
statistics[1] --;
diss_count++;
}
}
else if(DateNewTime(Date(collaborator.custom_elems.ObtainChildByKey("cc_date_end").value)) >= DateNewTime(Date())){
col_group_active.push(col.collaborator_id); //этот часть выдает ошибку
}
else if(OptInt(Trim(collaborator.custom_elems.ObtainChildByKey("cc_tut_comment_3").value).split("-||-")[0]) == undefined){
col_group_exam.push(col.collaborator_id);
if(collaborator.custom_elems.ObtainChildByKey("cc_exam_result").value == "1"){
statistics[3] ++;
}
if(collaborator.custom_elems.ObtainChildByKey("cc_exam_result").value == "2"){
statistics[5] ++;
}
}
else{
col_group_second_exam.push(col.collaborator_id);
statistics[4] ++;
if(collaborator.custom_elems.ObtainChildByKey("cc_exam_result").value == "2"){
statistics[5] ++;
}
}
}
%>
Код ошибки:
Invalid format (Date(), x-local://wt/web/academy/call_center/intership/intership.html, line 192) (x-local://wt/web/academy/call_center/intership/intership.html, line 192)

