Index: couch.js
===================================================================
--- couch.js	(revision 160)
+++ couch.js	(working copy)
@@ -8,8 +8,8 @@
   
   // Creates the database on the server
   this.createDb = function() {
-    this.req.open("PUT", this.dbUrl);
-    this.req.send();
+    this.req.open("PUT", this.dbUrl, false);
+    this.req.send(null);
     if (this.req.status != 201)
       throw this.req.responseText.parseJSON();
     return this.req.responseText.parseJSON();
@@ -17,8 +17,8 @@
   
   // Deletes the database on the server
   this.deleteDb = function() {
-    this.req.open("DELETE", this.dbUrl);
-    this.req.send();
+    this.req.open("DELETE", this.dbUrl, false);
+    this.req.send(null);
     if (this.req.status == 404)
       return false;
     if (this.req.status != 202)
@@ -29,9 +29,9 @@
   // Save a document to the database
   this.save = function(doc, options) {
     if (doc._id == undefined) 
-      this.req.open("POST", this.dbUrl + this.options_to_str(options));
+      this.req.open("POST", this.dbUrl + this.options_to_str(options), false);
     else
-      this.req.open("PUT", this.dbUrl  + doc._id + this.options_to_str(options));
+      this.req.open("PUT", this.dbUrl  + doc._id + this.options_to_str(options), false);
     this.req.send(doc.toJSONString());
     if (this.req.status != 201)
       throw this.req.responseText.parseJSON();
@@ -44,8 +44,8 @@
   
   // Open a document from the database
   this.open = function(docid) {
-    this.req.open("GET", this.dbUrl + docid);
-    this.req.send();
+    this.req.open("GET", this.dbUrl + docid, false);
+    this.req.send(null);
     if (this.req.status == 404)
       return null;
     if (this.req.status != 200)
@@ -55,8 +55,8 @@
   
   // Deletes a document from the database.
   this.deleteDoc = function(doc) {
-    this.req.open("DELETE", this.dbUrl + doc._id + "?rev=" + doc._rev);
-    this.req.send();
+    this.req.open("DELETE", this.dbUrl + doc._id + "?rev=" + doc._rev, false);
+    this.req.send(null);
     if (this.req.status != 202)
       throw this.req.responseText.parseJSON();
     var result = this.req.responseText.parseJSON();
@@ -67,7 +67,7 @@
   
   // Applies the map function to the contents of database and returns the results.
   this.query = function(mapFun, options) {
-    this.req.open("POST", this.dbUrl + "_temp_view" + this.options_to_str(options));
+    this.req.open("POST", this.dbUrl + "_temp_view" + this.options_to_str(options), false);
     this.req.send(mapFun.toSource());
     if (this.req.status != 200)
       throw this.req.responseText.parseJSON();
@@ -76,16 +76,16 @@
   
   // gets information about the database
   this.info = function() {
-    this.req.open("GET", this.dbUrl);
-    this.req.send();
+    this.req.open("GET", this.dbUrl, false);
+    this.req.send(null);
     if (this.req.status != 200)
       throw this.req.responseText.parseJSON();
     return this.req.responseText.parseJSON();
   }
   
   this.all_docs = function(options) {
-    this.req.open("GET", this.dbUrl + "_all_docs" + this.options_to_str(options));
-    this.req.send();
+    this.req.open("GET", this.dbUrl + "_all_docs" + this.options_to_str(options), false);
+    this.req.send(null);
     if (this.req.status != 200)
       throw this.req.responseText.parseJSON();
     return this.req.responseText.parseJSON();
