\r\n";
code += "\r\n";
code += "\r\n";
code += "<" + "script type=\"text/javascript\"" + ">\r\n";
code += "XDoc.server = \"" + XDoc.server + "\";\r\n";
code += "XDoc.key = \"" + XDoc.key + "\";\r\n";
code += "XDoc.run(" + JSON.stringify(xdoc) + ",\r\n";
code += "\"" + format + "\",\r\n";
code += JSON.stringify(data, null, 2) + ",\r\n";
code += "\"_blank\");\r\n";
code += "<" + "/script" + ">\r\n";
code += "\r\n";
code += "