 function doSearch(ctlID) 
 {       
	var searchText = escape(document.getElementById(ctlID).value);         
    if (searchText.length > 0) 
    {        
         document.location.href = 'http://wake.mondosearch.com/cgi-bin/MsmFind.exe?QUERY_ENCODING=UTF-8&CFGNAME=MssFind.cfg&QUERY=' + searchText;
    }
 }
 
 function showTopics()
 {
	var topics = document.getElementById("topics");
	var depts = document.getElementById("depts");
	var imgtopics = document.getElementById("imgTopics");
	var imgdepts = document.getElementById("imgDepts");
	
	if (imgtopics) imgtopics.src = '/wakegov/images/topics_on.gif';
	if (imgdepts) imgdepts.src = '/wakegov/images/depts_off.gif';
	
	if (topics != null) {
		if (topics.style) {
			topics.style.display = '';
		}
	}
	
	if (depts != null) {
		if (depts.style) {
			depts.style.display = 'none';
		}
	}
}

function showDepts()
 {
	var topics = document.getElementById("topics");
	var depts = document.getElementById("depts");
	var imgtopics = document.getElementById("imgTopics");
	var imgdepts = document.getElementById("imgDepts");
	
	if (imgtopics) imgtopics.src = '/wakegov/images/topics_off.gif';
	if (imgdepts) imgdepts.src = '/wakegov/images/depts_on.gif';
	
	if (topics != null) {
		if (topics.style) {
			topics.style.display = 'none';
		}
	}
	
	if (depts != null) {
		if (depts.style) {
			depts.style.display = '';
		}
	}
}