function enableDirectory(control)
   {
   	with(document.form)
		{
  			control = eval(control);
         if (control.checked == true)
	  		{
				control.value = 'true';
		  		_Home_DirectoryVolume.disabled = false;
				_Home_DirectoryVolume.style.backgroundColor = ENABLED_COLOR;

		  		_Home_DirectoryPath.disabled = false;
				_Home_DirectoryPath.style.backgroundColor = ENABLED_COLOR;
            	document.form._Home_DirectoryPath.value = document.form._CN.value;
			}
			else
			{
				control.value = 'false';
			  	_Home_DirectoryVolume.disabled = true;
				_Home_DirectoryVolume.value = "";
				_Home_DirectoryVolume.style.backgroundColor = DISABLED_COLOR;

           		_Home_DirectoryPath.disabled = true;
				_Home_DirectoryPath.value = "";
				_Home_DirectoryPath.style.backgroundColor = DISABLED_COLOR;
			}
		}
   }