function BrowseFolder(){
try{
var Message = "Please select a folder"; //Select box prompt message
var Shell = new ActiveXObject( "Shell.Application" );
var Folder = Shell.BrowseForFolder(0,Message,0x0040,0x11);/ /The starting directory is: My Computer
//var Folder = Shell.BrowseForFolder(0,Message,0); //The starting directory is: Desktop
if(Folder != null){
Folder = Folder.items(); // Return FolderItems object
Folder = Folder.item(); // Return Folderitem object
Folder = Folder.Path; // Return path
if(Folder.charAt (Folder.length-1) != "\"){
Folder = Folder "\";
}
document.all.savePath.value=Folder;
return Folder;
}
}catch(e){
//alert(e.message);
}
}