function Get_JSON_AppointmentTypes() { return jsondata = '[{ "id":"dc674efec73b4affb74e68dea0fa3d1c", "name":"Refraktie"},{ "id":"91ae633f757744b88c78553472676339", "name":"Contactlens controle"},{ "id":"509d482e58ed4c08bc355fe86dc80cf5", "name":"Contact lenzen afleveren"},{ "id":"9c21afc70241440b92b670ed2a72a744", "name":"Glazen inslijpen"}]'; } 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,"*"); }