	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('header/popup.html?'+path,'_new',parms);

	}


                function manageComponent(section,action,id) {

                        if (action=="add") {
                                document.pageForm.componentId.value = "";
                        } else {
                                document.pageForm.componentId.value = id;
                        }

                        parms = centerParms('300','300') + ",width=300,height=300,status=yes";

                        document.pageForm.sectionId.value = section;
                        document.pageForm.module.value = "69";
                        window.open('','_component',parms);
                        document.pageForm.componentAction.value=action;
                        document.pageForm.target = "_component";
                        document.pageForm.submit();
                        document.pageForm.target = "_self";

                }

