	function setProperty(action) {

		document.pageForm.pageProperty.value = action;
		document.pageForm.submit();

	}

	function resetSection() {

		document.sectionForm.sectionAction.value = "resetSection";
		document.sectionForm.submit();

	}

	function hideSection(section) {

		document.sectionForm.sectionId.value = section;
		document.sectionForm.sectionAction.value = "hideSection";
		document.sectionForm.submit();
	
	}


	function moveComponent(section,direction,id) {

		document.pageForm.componentId.value = id;	
		document.pageForm.sectionId.value = section;
		document.pageForm.componentAction.value = "componentMove";
		document.pageForm.componentDir.value = direction;
		document.pageForm.target = "_self";
		document.pageForm.submit();

	}

	function moveOrder(section,direction,id) {

		document.pageForm.componentId.value = id;	
		document.pageForm.sectionId.value = section;
		document.pageForm.componentAction.value = "componentOrder";
		document.pageForm.componentDir.value = direction;
		document.pageForm.target = "_self";
		document.pageForm.submit();

	}

	function deleteComponent(id) {

		document.pageForm.componentId.value = id;	

		message = "Are you sure you want to delete this component?  This will remove the associated page, and any child pages of this page, as well!"

		if (!confirm(message)) return false;
		else {
			document.pageForm.componentAction.value = "componentDelete";
			document.pageForm.target = "_self";
			document.pageForm.submit();
		}

	}


	function deleteThisComponent(id) {

		message = "Are you sure you want to delete this page?  This will remove the associated page, and any child pages of this page, as well!"

		if (!confirm(message)) return false;
		else {
			document.pageForm.componentId.value = id;
			document.pageForm.componentAction.value = "componentDelete";
			document.pageForm.target = "_self";
			document.pageForm.submit();
		}

	}


	function openPicWindow(path) {

        	path = "../" + path;
        	parms = "scrollbars=yes";
        	window.open('files/popup.php?'+path,'_new',parms);

	}


