function folderDiv() {

} 

function ViewFC(nId) {
	try {
		document.getElementById('htxtFCAction' + nId).value = "viewhistory";
		document.Form1.submit();
	}

	catch (error) {
		
	}
}

function CheckoutFC(nId) {
	try {
		document.getElementById('htxtFCAction' + nId).value = "checkout";
		document.Form1.submit();
	}

	catch (error) {
		
	}
}

function LockFC(nId) {
	try {
		document.getElementById('htxtFCAction' + nId).value = "lock";
		document.Form1.submit();
	}

	catch (error) {
		
	}
}

function DeleteFC(nId) {
	try {
		if (confirm('Are you sure you want to delete the selected files?  This cannot be undone!')) {
			document.getElementById('htxtFCAction' + nId).value = "delete";
			document.Form1.submit();
		}
	}

	catch (error) {
		
	}
}

function MoveFC(nId) {
	try {
		document.getElementById('htxtFCAction' + nId).value = "move";
		document.Form1.submit();
	}

	catch (error) {
		
	}
}

function RenameFC(nId) {
	try {
		document.getElementById('htxtFCAction' + nId).value = "rename";
		document.Form1.submit();
	}

	catch (error) {
		
	}
}

function CopyFC(nId) {
	try {
		document.getElementById('htxtFCAction' + nId).value = "copy";
		document.Form1.submit();
	}

	catch (error) {
		
	}
}

function AddFolder(nId) {
	try {
		document.getElementById('htxtFCAction' + nId).value = "addfolder";
		document.Form1.submit();
	}

	catch (error) {
		
	}
}

function AddFile(nId) {
	try {
		document.getElementById('htxtFCAction' + nId).value = "addfile";
		document.Form1.submit();
	}

	catch (error) {
		
	}
}

function setFolder(nId) {
	if (nId != 0) {
		document.getElementById('chkFolder' + nId).checked = true;
	} else {
		document.Form1.chkRoot.checked = true;
	}
}
