function Get_JSON_AppointmentTypes() { return jsondata = '[{ "id":"40cdc8b47e054e9e9dc5adc258b9d9d5", "name":"Algemeen"},{ "id":"efc9d6f554e547528b5b6a47cee5cffc", "name":"controle contactlenzen"},{ "id":"c6fbe531d0c44b34a18cb2961a5bed66", "name":"refraktie"}]'; } function PostCurrentAppointmentType(id,name) { jsondata = '{"type": "AppointmentType", "id": "' + id + '", "name":"' + name + '"}' parent.postMessage(jsondata,"*"); } function PostAppointment(action,id,citid, start) { jsondata = '{"type": "Appointment", "action": "' + action + '", "id": "' + id + '", "citid":"' + citid + '", "start":"' + start + '"}' parent.postMessage(jsondata,"*"); }