public string jsFolderBrowserDialog(string path)
{
FolderBrowserDialog dialog = new System.Windows.Forms.FolderBrowserDialog();
dialog.SelectedPath = path;
if (dialog.ShowDialog() == DialogResult.OK) {
return dialog.SelectedPath;
} else {
return path;
}
}