openDoc function should return the XMLHTTPRequest