<!--

	function connect_form_toggle()
	{	
		var site_discover_other = document.getElementById("other").style;
	 	site_discover_other.display = (site_discover_other.display == "block") ? "none" : "block";
	}

	function clear_field(field)
	{
		field.value = '';
	}
	
	function unclear_field(field)
	{
		if (field.value == '')
		{
			switch (field.id)
			{
				case "contact_name":
					field.value = 'Name';
					break;
				case "title":
					field.value = 'Title';
					break;
				case "organization":
					field.value = 'Organization';
					break;
				case "email":
					field.value = 'Email';
					break;
				case "address":
					field.value = 'Address';
					break;
				case "city":
					field.value = 'City';
					break;
				case "state":
					field.value = 'State';
					break;
				case "zip":
					field.value = 'Zip';
					break;
				case "phone":
					field.value = 'Phone';
					break;
				case "fax":
					field.value = 'Fax';
					break;
				case "website":
					field.value = 'Website';
					break;
				case "comments":
					field.value = 'Share your questions, comments or business needs here.';
					break;
				case "other":
					field.value = '(please specify)';
					break;

			}
		}
	}

	/*
		function to check whether required fields on contact form have been filled out and, if not
		generate alert dialog box. Form will not submit until all required fields have at least been
		supplied with values.
	*/
	
	function check_required(form_results)
	{
		/* initialize alert string with first line */
		var string = "All fields are required.\n\nPlease click OK to return to the form and supply the required information.";
	
		/*
			initialize a flag to indicate when an empty value has been detected. 
			check each of the required fields for empty values, and set the flag 
			if they are found, adding the name of the required field on to the alert
			string.
		*/
		var flag = 0;
		var default_values = new Array("Name","Title","Organization","Email","Address","City","State","Zip","Phone","Fax","Website");
		
		for (var i=0; i<default_values.length; i++)
		{
			if (form_results.elements[i].value == default_values[i])
			{
				flag = 1;
			}
		}
	
		/* 
			if the flag has been set, print the alert string. 
		*/
		if (flag)
		{
			alert(string);
			return false;
		}
		else
		{
			return true;
		}
		
	}		

	
	function show_work_title(title, mode)
	{
		if (mode == 'over')
		{
			var popup_alert_obj = document.getElementById("popup_alert");
			popup_alert_obj.innerHTML = title;
		}
		else
		{
			var popup_alert_obj = document.getElementById("popup_alert");
			popup_alert_obj.innerHTML = 'Project samples appear in pop-up window';
		}
	}	
//-->