<!--
//-------------------------------
// Global Vars
//-------------------------------
var BLOCKING = false;

//-------------------------------
// VOID deleteObject()
//--
// Submits the form to delete the current folder/document
//-------------------------------
function deleteObject(type) {

	// Blocking
	if(BLOCKING) return false;
	BLOCKING = true;

	// Confirm
	var msg = type=='folder' ? "folder and all it's contents\nfrom the system?" : "document from the system?";
	if(!confirm("Are you sure you want to remove\nthis "+msg)) {
		BLOCKING = false;
		return false;
	}

	// Vars
	var form = getHTMLElement('form_interface');
	var oper = form['oper'];

	// Setup and submit
	oper.value = 'delete';
	form.submit();
}
//-->