
			function checkForm() {
			answer = true;
			if (siw && siw.selectingSomething)
			answer = false;
			return answer;
			}
			
			//this function pairs an inputField to a data source
			//based on passed inputFieldID and dataSourceName
			function changeDataSource(dataSourceName, inputFieldID) {
				//alert(customCollectionsArray[dataSourceName]);
				var listing = dataSourceName;
				
				//document.form1.Text1.value = ''; //clear textbox
				
				
				////////////////////Turn off suggestions
					var is_checked; //= document.form1.cbSuggestions.checked;
					inputField = document.getElementById(inputFieldID);
					//writeCookieJS("cbSuggestions",is_checked);
					if (is_checked == true)
					{
					//alert("Yup, it's checked!");
					inputField.className = ""; 
					return;
					} else {
					inputField.className = "wickEnabled:null:categories";
					listing = 'categories';
					//alert("No, it's not checked!");
					return;
					}
				
				////////////////////
				
				
				try
				{
				document.form1.Text1.value = ''; //clear textbox
				}
				catch ( e ) {
				//alert ( e ); 
				} 
								
				inputField = document.getElementById(inputFieldID);
				
				if (!inputField) {
					alert("did you forget to give an id attribute of value " + inputFieldID + " to your input field?");
				} else {
					if (dataSourceName && customCollectionsArray[dataSourceName]) {
						inputField.className = "wickEnabled:null:"+dataSourceName;
					} else {
						//document.getElementById("wickStatus").innerHTML = ''; //"<b>Free Text Search</b>"
						//document.getElementById("wickStatus")._innerhtml = 'Free Text'; 
						inputField.className = ""; return; 
						
						//alert("missing customCollectionsArray[\""+dataSourceName+"\"]");
					}
				}//check whether input field exists based on passed ID
			
			//alert(dataSourceName);
			
			if(listing=='categories') {
				listing = 'categories';
			}
			
			else{
				listing = 'businesses';
			}
			
			//document.getElementById("wickStatus").innerHTML = "<b class=search>" + customCollectionsArray[dataSourceName].length + ' ' + listing + ' loaded <br> As you type, you will be offered suggestions.<br> Use the arrow keys to navigate the results.</b>';
			
			/*
			var location = readCookieJS("siteid");

		if (location=="2"){
			location="Downtown Denver Area";
		}else{
			location="Denver Tech Center Area";
		}
			
			document.getElementById("wickStatus").innerHTML = "<b>Search " + customCollectionsArray[dataSourceName].length + ' ' + listing + ' in the ' + location + '.</b>';
			*/
			//document.getElementById("wickStatus").innerHTML = '<b>' + customCollectionsArray[dataSourceName].length + ' ' + listing + '</b>';

//document.getElementById("wickStatus").innerHTML = '<b>Total ' + listing + ': ' + //customCollectionsArray[dataSourceName].length + '</b>';

			}//changeDataSource
			
	function writeMessage(){
		
		/*
		var location = readCookieJS("siteid");

		if (location=="2"){
			location="Downtown Denver Area";
		}else{
			location="Denver Tech Center Area";
		}

document.getElementById("wickStatus").innerHTML = "<div align=center><b>Search " + customCollectionsArray['categories'].length + ' ' + 'categories' + ' in the ' + location + '.</b></div>';
*/

//document.getElementById("wickStatus").innerHTML = '<b>' + customCollectionsArray['categories'].length + ' ' + 'categories' + '</b>';

//document.getElementById("wickStatus").innerHTML = '<b>Total categories: ' + customCollectionsArray['categories'].length + '</b>';


        }
        
/*
CSS Menu highlight- By Marc Boussard (marc.boussard@syntegra.fr)
Modified by DD for NS4 compatibility
Visit http://www.dynamicdrive.com for this script
*/

var ns4class=''



