var style = document.createElement('style'); document.getElementsByTagName('head')[0].appendChild(style); if (!window.createPopup) { style.appendChild(document.createTextNode('')); style.setAttribute("type", "text/css"); } var sheet = document.styleSheets[document.styleSheets.length - 1]; if (!window.createPopup) { var node = document.createTextNode(mibewInviteStyle); style.appendChild(node); } else { sheet.cssText = mibewInviteStyle; } function mibewInviteOnResponse(response) { var message = response.invitation.message; var operator = response.invitation.operator; var avatar = response.invitation.avatar; var popuptext = '
' + message + '
'; popuptext += '