function Get_JSON_AppointmentTypes() { return jsondata = '[{ "id":"198c360475aa41b6acaf54c6f5ebb883", "name":"oogmeting"},{ "id":"d90a7b1fd9a041e69fb6480d91ada549", "name":"lenscontrole"},{ "id":"89d95d5c82d44c74b979f006614b1325", "name":"otoplastieken"},{ "id":"a388fb3d8c8448878adcfebbf3a48313", "name":"zwemdopjes"}]'; } 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,"*"); }