      _resetAll(dialog);
    }
  
-@@ -532,6 +586,33 @@
-     $('label[for="vcenter_disk_type"],input#vcenter_disk_type', dialog).parent().fadeIn();
+@@ -503,6 +557,33 @@
+     $('label[for="vcenter_cluster"],div#vcenter_cluster_wrapper', dialog).parent().fadeIn();
    }
  
 +  function _selectStorPool(dialog) {

+    var sp_api_http_port = $('#sp_api_http_port', dialog).val();
+    var sp_auth_token   = $('#sp_auth_token', dialog).val();
+    var sp_system       = $('#sp_system', dialog).val();
     var ds_obj = {
       "datastore" : {
         "name" : name,
@@ -353,6 +366,31 @@
     if (vcenter_disk_type)
         ds_obj.datastore.disk_type = vcenter_disk_type;
 
+    if (sp_replication)
+        ds_obj.datastore.sp_replication = sp_replication;

     Sunstone.runAction("Datastore.create", ds_obj);
     return false;
   }
@@ -383,6 +421,14 @@
 
     $(".disk_type_wrapper", dialog).hide();
 
