		var sections = new Array('use', 'interest2');
		function init() {

		    if(eval(document.forms['contactform'])){
			for (var i = 0; i < sections.length; i++) {
				//henry fix for none existing
				if(document.getElementById(sections[i]))
				document.getElementById(sections[i]).style.display = 'none';
			}
			if(document.forms['contactform'].elements['name'])
			document.forms['contactform'].elements['name'].focus();
		    }

		}
		function AW_act(stimuli) {

			switch(stimuli){

				case 'item1':
					if(!AW_getvis('interest2')) GetE('interest2').style.display = '';
					if(AW_getvis('use')) GetE('use').style.display = 'none';
					if(!AW_getvis('submit')) GetE('submit').style.display = '';
					break;

                                case 'item2':
                                        if(AW_getvis('interest2')) GetE('interest2').style.display = 'none';
                                        if(AW_getvis('use')) GetE('use').style.display = 'none';
                                        if(!AW_getvis('submit')) GetE('submit').style.display = '';
                                        break;

				case 'item3':
					if(AW_getvis('interest2')) GetE('interest2').style.display = 'none';
					if(!AW_getvis('use')) GetE('use').style.display = '';
					if(!AW_getvis('submit')) GetE('submit').style.display = '';
					break;

			}
		}

		function AW_getvis(section){
			if(GetE(section).style.display == 'none') return false;
			  else
			    return true;
		}

		function checkradios(){
			if (!document.contactform.buildinglength[0].checked &&
			!document.contactform.buildinglength[1].checked &&
			!document.contactform.buildinglength[2].checked) {
				// no radio button is selected
				alert('I need a building for, is a required field.');
				return false;
			} else {
				return true;
			}
		}
		function checkbox_checker(){
		if(document.contactform)
		{
			if (document.contactform.buildinglength[1].checked || document.contactform.buildinglength[2].checked) {
			//check to see if at least one uses checkbox is checked
			var ischecked = false;
			for (var i=0; i < document.contactform["uses[]"].length; i++) {
				if (document.contactform["uses[]"][i].checked==true) {
					ischecked = true;
					break; //at least one of the boxes is checked
				}
			}
			if (ischecked) {
				return true;
			} else {
					if(!document.contactform.usesother.value.length){
						alert('Please choose what use you want to make of your building');
						return false;
					} else {
						return true;
					} 
			}
			} 
			else 
			{
			return true;
				}
			}
		}	
