function submitMe(source) {
	switch(source) {
		case "propertySearch":
			document.forms[0].action = "http://www.paganproperty.co.uk/solicitors/propertysearch.cfm?action=results&SL=S";
			document.forms[0].submit();
			break;

		case "lettingSearchCri":
			document.getElementById("tValue").value = "1"; 
			document.forms[0].action = "http://www.paganproperty.co.uk/solicitors/propertysearch.cfm?action=results&SL=L";
			document.forms[0].submit();
			break;

		case "lettingSearchAdd":
			document.getElementById("tValue").value = "2"; 
			document.forms[0].action = "http://www.paganproperty.co.uk/solicitors/propertysearch.cfm?action=results&SL=L";
			document.forms[0].submit();
			break;

		case "summerSearchCri":
			document.getElementById("tValue").value = "1"; 
			document.forms[0].action = "http://www.paganproperty.co.uk/solicitors/propertysearch.cfm?action=results&SL=H";
			document.forms[0].submit();
			break;

		case "summerSearchAdd":
			document.getElementById("tValue").value = "2"; 
			document.forms[0].action = "http://www.paganproperty.co.uk/solicitors/propertysearch.cfm?action=results&SL=H";
			document.forms[0].submit();
			break;

		case "propertySearchCri":
			document.getElementById("tValue").value = "1"; 
			document.forms[0].action = "http://www.paganproperty.co.uk/solicitors/propertysearch.cfm?action=results&SL=S";
			document.forms[0].submit();
			break;

		case "propertySearchAdd":
			document.getElementById("tValue").value = "2"; 
			document.forms[0].action = "http://www.paganproperty.co.uk/solicitors/propertysearch.cfm?action=results&SL=S";
			document.forms[0].submit();
			break;
		default:
			document.forms[0].submit();
	}
}

function targetSection() {
	var sectionChoice = document.getElementById("filter-servicearea1").value;
	window.location.href="?udt_1297_param_section=" + sectionChoice;
}

function targetSubSection() {
	var sectionChoice = document.getElementById("filter-servicearea2").value;
	window.location.href="?udt_1297_param_subsection=" + sectionChoice;
}

function targetAccreditedSpecialists() {
	var sectionChoice = document.getElementById("filter-partners").value;
	window.location.href="?udt_1297_param_accredspecial=" + sectionChoice;
}

function sectionJumper() {
	if(document.getElementById("sectionJump")){
		if(document.getElementById("sectionJump").value) {
			var sectionJumpChoice = document.getElementById("sectionJump").value;
			var strSectionJump = sectionJumpChoice.substring(1);
			strSectionJump = "people-" + strSectionJump;

			document.getElementById("people-Management").style.display = "none";
			document.getElementById("people-Legal").style.display = "none";
			document.getElementById("people-Financial").style.display = "none";
			document.getElementById("people-Property").style.display = "none";
			document.getElementById("people-Business-Development").style.display = "none";
			document.getElementById("people-Human-Resources").style.display = "none";
			
			document.getElementById(strSectionJump).style.display = "block";
		}
		else {
			document.getElementById("people-Management").style.display = "block"; 
			document.getElementById("people-Legal").style.display = "block";
			document.getElementById("people-Financial").style.display = "block";
			document.getElementById("people-Property").style.display = "block";
			document.getElementById("people-Business-Development").style.display = "block";
			document.getElementById("people-Human-Resources").style.display = "block";
		}
	}
}



/*Added by C Milne*/

DoFilter = function(el){
	//alert(el.value)
	window.location.href="?udt_1297_param_other=" + el.value;

}