Email templates not loading

Ok, checked browser for any errors and did get this:

Line 50
Object Missing

and then this is the code - line 50 is the after the result data line.


else{fill_array_contents(the_key,field_to_name_array[the_key]);}}}
var popupConfirm=confirmDialog(array_contents,form_name);var name_to_value_array=JSON.parse('{'+array_contents.join(",")+'}')
closePopup();var result_data={"form_name":form_name,"name_to_value_array":name_to_value_array,"passthru_data":passthru_data,"popupConfirm":popupConfirm};call_back_function(result_data);}
function send_back_teams(module,form,field,error_message,request_data,form_team_id){var array_contents=Array();if(form_team_id){array_contents.push(form_team_id);}else{var j=0;for(i=0;i<form.elements.length;i++){if(form.elements[i].name==field){if(form.elements[i].checked==true){array_contents.push(form.elements[i].value);}}}}
if(array_contents.length==0){window.alert(error_message);return;}

I think it has something to do with this since this is the code for the templates and reference popup and data passthru.

ES