
	function validateform()   
	{   
		// make sure a subject is entered   
		if (document.questionform.subject.value == "")  
			{    
				alert('Please enter a subject.');    
				document.questionform.subject.focus();    
				return false;   
			}   
		// make sure emailtext is entered   
		if (document.questionform.question.value == "")   
			{    	
				alert('Please enter a question.');    
				document.questionform.question.focus();    
				return false;   
			}  
		// make sure a category is selected   
		if (document.questionform.categoryid.value == "")   
			{    	
				alert('Please select a category.');    
				document.questionform.categoryid.focus();    
				return false;   
			}  
		// keyword search
		if (document.questionform.keywordSearch.value == "0")   
			{    	
				alert('Alice is checking the archive for similar questions.  If none of the responses answer your question, please close the search results page and click SUBMIT on the Ask Alice! page again.');
				document.questionform.keywordSearch.value = "1";    
				document.questionform.qt.value = document.questionform.subject.value;    
				document.questionform.submit();
				return false;
			}  
		else
			{
				document.questionform.action="http://www.goaskalice-cms.org/process_questions.cfm";
				document.questionform.target="";
				return true;
			}
	}  

