      _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) {

         case 'custom':
           _selectCustom(dialog);
           break;
@@ -266,6 +271,14 @@
     vcenter_adapter_type      = vcenter_adapter_type == "custom" ? $('input[name="custom_vcenter_adapter_type"]', dialog).val() : vcenter_adapter_type;
     var vcenter_disk_type     = $('#vcenter_disk_type', dialog).val();
     vcenter_disk_type         = vcenter_disk_type == "custom" ? $('input[name="custom_vcenter_disk_type"]', dialog).val() : vcenter_disk_type;
+    var sp_replication  = $('#sp_replication', dialog).val();
+    var sp_placeall     = $('#sp_placeall', dialog).val();
+    var sp_placetail    = $('#sp_placetail', dialog).val();

+    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" : {
@@ -330,6 +343,31 @@
     if (vcenter_cluster)
         ds_obj.datastore.vcenter_cluster = vcenter_cluster;
 
+    if (sp_replication)
+        ds_obj.datastore.sp_replication = sp_replication;
