
	function toggleAnswer(id) {
		var faqElem = document.getElementById(id);
		var ansElem = document.getElementById(id + "-answer");
		
		if (!faqElem) {
			return;
		}
		
		if (ansElem.style.display != 'block') {
			ansElem.style.display = 'block';
//			faqElem.class = 'faq faq-visible';
			faqElem.setAttribute('class', 'faq faq-visible');
			faqElem.setAttribute('className', 'faq faq-visible');
		} else {
			ansElem.style.display = 'none';
//			faqElem.class = 'faq';
			faqElem.setAttribute('class', 'faq');
			faqElem.setAttribute('className', 'faq');
		}
	}
	
	
	function toggleEditor(id) {
		var e = document.getElementById(id);
		
//		alert(document.designmode);
//		alert(e);		
//		alert(e.contenteditable);
		
		if (e.contenteditable) {
			e.contenteditable = false;
		} else {
			e.contenteditable = true;
		}
	}
	
	
	function launchEditor(source) {
		var url = "manage/editor.php?source=" + source;
		window.open(url, 'Editor', 'width=200,height=200');
	}
	
	function handleClientLogin(form) {
		if (form.uid.value && form.pwd.value) {
			alert('Client ID not recognized!');
		} else {
			alert('You must enter a recognized client ID and password.');
		}
		return false;
	}