function validate() {
	var NA = document.getElementById("radNA");
	var txtNAEntry = document.getElementById("txtNAEntry");
	var AFF = document.getElementById("radAFF");
	var txtAFFEntry = document.getElementById("txtAFFEntry");
	var Alumni = document.getElementById("radAlumni");
	var txtAlumniEntry = document.getElementById("txtAlumniEntry");
	var OTHER = document.getElementById("radOTHER");
	
	var chkUSA = document.getElementById("chkUSA");
	
	var txtMFCity = document.getElementById("txtMFCity");
	var cboMFState = document.getElementById("cboMFState");
	var txtMFZip = document.getElementById("txtMFZip");
	var txtMTCity = document.getElementById("txtMTCity");
	var cboMTState = document.getElementById("cboMTState");
	var txtMTZip = document.getElementById("txtMTZip");
	var txtMFCity_INTL = document.getElementById("txtMFCity_INTL");
	var txtMFState_INTL = document.getElementById("txtMFState_INTL");
	var cboMFCountry_INTL = document.getElementById("cboMFCountry_INTL");
	var txtMTCity_INTL = document.getElementById("txtMTCity_INTL");
	var txtMTState_INTL = document.getElementById("txtMTState_INTL");
	var cboMTCountry_INTL = document.getElementById("cboMTCountry_INTL");	
	var txtFirstName = document.getElementById("txtFirstName");
	var txtLastName = document.getElementById("txtLastName");
	var txtPrimaryNumber = document.getElementById("txtPrimaryNumber");
	var txtSecondaryNumber = document.getElementById("txtSecondaryNumber");
	var cboBestTime = document.getElementById("cboBestTime");
	var txtApproveDate = document.getElementById("txtApproveDate");
	var txtEmail = document.getElementById("txtEmail");
	var txtComments = document.getElementById("txtComments");
	
	//check for all 3 radio buttons unchecked, then give them a message
	//NA:1|AFF:0|OT:2

	//if (!document.frmEstimate.typeofmove[0].checked && !document.frmEstimate.typeofmove[1].checked && !document.frmEstimate.typeofmove[2].checked)
	if (!NA.checked && !AFF.checked && !Alumni.checked && !OTHER.checked)
	{
		alert("We were unable to determine your affilation, please indicate which best suits you.");
		return false;
	}
		
	//NA
	if (NA.checked)
	{
		if (txtNAEntry.value == "")
		{
			alert("You have indicated your move is being covered by your company. Please indicate what your company name is.");
			txtNAEntry.focus()
			txtNAEntry.style.backgroundColor="YELLOW";
			txtAFFEntry.style.backgroundColor="WHITE";
			txtAlumniEntry.style.backgroundColor="WHITE";
			return false;
		}
		else {txtNAEntry.style.backgroundColor="WHITE";}
	}
		
	//AFF
	if (AFF.checked) 
	{
		if (txtAFFEntry.value == "") 
		{
			alert("You have indicated that you are a member of the clergy. Please indicate who your affiliation is with.");
			txtAFFEntry.focus()
			txtAFFEntry.style.backgroundColor="YELLOW";
			txtNAEntry.style.backgroundColor="WHITE";
			txtAlumniEntry.style.backgroundColor="WHITE";
			return false;
		}
		else {txtAFFEntry.style.backgroundColor="WHITE";}
	}
	
	//alumni
	if (Alumni.checked)
	{
		if (txtAlumniEntry.value == "")
		{
			alert("You have indicated that you are a member of a University or University Alumni Association. Please indicate who your affiliation is with.");
			txtAlumniEntry.focus()
			txtAlumniEntry.style.backgroundColor="YELLOW";
			txtNAEntry.style.backgroundColor="WHITE";
			txtAFFEntry.style.backgroundColor="WHITE";
			return false;
		}
		else {txtAlumniEntry.style.backgroundColor="WHITE";}
	}
		
	if (OTHER.checked)
	{
		txtNAEntry.style.backgroundColor="WHITE";
		txtAFFEntry.style.backgroundColor="WHITE";
		txtAlumniEntry.style.backgroundColor="WHITE";
	}
	
	//moving in/out of USA
	//not required
	if (!chkUSA.checked)
	{
		//moving from city
		if (txtMFCity.value.length == 0) 
		{
			alert("Please fill in your 'Moving From : City'.");
			//txtMFCity.focus()
			txtMFCity.style.backgroundColor="YELLOW";
			return false;
		}
		else {txtMFCity.style.backgroundColor="WHITE";}
		
		//moving from state
		if (cboMFState.selectedIndex ==0) 
		{
			alert("Please select your 'Moving From : State'.");
			//cboMFState.focus()
			cboMFState.style.backgroundColor="YELLOW";
			return false;
		}
		else {cboMFState.style.backgroundColor="WHITE";}
		
		//moving from zip
		if (txtMFZip.value.length == 0) 
		{
			alert("Please fill in your 'Moving From : Zip'.");
			//txtMFZip.focus()
			txtMFZip.style.backgroundColor="YELLOW";
			return false;
		}
		else {txtMFZip.style.backgroundColor="WHITE";}
		
		//moving to city
		if (txtMTCity.value.length == 0) 
		{
			alert("Please fill in your 'Moving To : City'.");
			//txtMTCity.focus()
			txtMTCity.style.backgroundColor="YELLOW";
			return false;
		}
		else {txtMTCity.style.backgroundColor="WHITE";}
		
		//moving to state
		if (cboMTState.selectedIndex ==0) 
		{
			alert("Please select your 'Moving To : State'.");
			//cboMTState.focus()
			cboMTState.style.backgroundColor="YELLOW";

			return false;
		}
		else {cboMTState.style.backgroundColor="WHITE";}
		
		//moving to zip
		if (txtMTZip.value.length == 0) 
		{
			alert("Please fill in your 'Moving To : Zip'.");
			//txtMTZip.focus()
			txtMTZip.style.backgroundColor="YELLOW";
			return false;
		}
		else {txtMTZip.style.backgroundColor="WHITE";}
	}
	else
	{
		//intl moving from city
		if (txtMFCity_INTL.value.length == 0)
		{
			alert("Please fill in your 'Moving From : City'.");
			//txtMFCity_INTL.focus()
			txtMFCity_INTL.style.backgroundColor="YELLOW";
			return false;
		}
		else {txtMFCity_INTL.style.backgroundColor="WHITE";}
		
		//intl moving from state
		if (txtMFState_INTL.value.length == 0)
		{
			alert("Please fill in your 'Moving From : State'.");
			//txtMFState_INTL.focus()
			txtMFState_INTL.style.backgroundColor="YELLOW";
			return false;
		}
		else {txtMFState_INTL.style.backgroundColor="WHITE";}		
		
		//intl moving from country
		if (cboMFCountry_INTL.selectedIndex ==0)
		{
			alert("Please fill in your 'Moving From : Country'.");
			//cboMFCountry_INTL.focus();
			cboMFCountry_INTL.style.backgroundColor="YELLOW";
			return false;
		}
		else {cboMFCountry_INTL.style.backgroundColor="WHITE";}
		
		if (txtMTCity_INTL.value.length == 0)
		{
			alert("Please fill in your 'Moving To : City'.");
			//txtMTCity_INTL.focus()
			txtMTCity_INTL.style.backgroundColor="YELLOW";
			return false;
		}
		else {txtMTCity_INTL.style.backgroundColor="WHITE";}
		
		if (txtMTState_INTL.value.length == 0)
		{
			alert("Please fill in your 'Moving To : State'.");
			//txtMTState_INTL.focus()
			txtMTState_INTL.style.backgroundColor="YELLOW";
			return false;
		}
		else {txtMTState_INTL.style.backgroundColor="WHITE";}		
		
		if (cboMTCountry_INTL.selectedIndex ==0)
		{
			alert("Please fill in your 'Moving To : Country'.");
			//cboMTCountry_INTL.focus();
			cboMTCountry_INTL.style.backgroundColor="YELLOW";
			return false;
		}
		else {cboMTCountry_INTL.style.backgroundColor="WHITE";}		
	}


	//firstname
	if (txtFirstName.value.length == 0) 
	{
		alert("Please fill in your First Name.");
		txtFirstName.focus()
		txtFirstName.style.backgroundColor="YELLOW";
		return false;
	}
	else {txtFirstName.style.backgroundColor="WHITE";}
	
	//lastname
	if (txtLastName.value.length == 0) 
	{
		alert("Please fill in your Last Name.");
		txtLastName.focus()
		txtLastName.style.backgroundColor="YELLOW";
		return false;
	}
	else {txtLastName.style.backgroundColor="WHITE";}
		
	//primary number
	if (txtPrimaryNumber.value.length == 0) 
	{
		alert("Please fill in your 'Primary #'.");
		txtPrimaryNumber.focus()
		txtPrimaryNumber.style.backgroundColor="YELLOW";
		return false;
	}
	else {txtPrimaryNumber.style.backgroundColor="WHITE";}
		
	//BEST TIME TO CALL
	if (cboBestTime.selectedIndex ==0) 
	{
		alert("Please select your 'Best time to call'.");
		cboBestTime.focus()
		cboBestTime.style.backgroundColor="YELLOW";
		return false;
	}
	else {cboBestTime.style.backgroundColor="WHITE";}
				
	//aprox move date
	if (txtApproxDate.value.length == 0) 
	{
		alert("Please fill in your 'Approximate move date'.");
		txtApproxDate.focus()
		txtApproxDate.style.backgroundColor="YELLOW";
		return false;
	}
	else {txtApproxDate.style.backgroundColor="WHITE";}	
				
	//email address
	var regexp = /^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/; 
	if (regexp.test(txtEmail.value))
	{txtEmail.style.backgroundColor="WHITE";}
	else 
	{
		alert("Please fill in a valid 'Email Address'.");
		txtEmail.focus()
		txtEmail.style.backgroundColor="YELLOW";
		return false;			
	}	
	return true;
}
	
function checkUSA() {
	var x = document.getElementById("chkUSA");
	var a = document.getElementById("or");
	var b = document.getElementById("MF_label");
	var c = document.getElementById("MF_data");
	var d = document.getElementById("MT_label");
	var e = document.getElementById("MT_data");
	
	var f = document.getElementById("intl_mf_label");
	var g = document.getElementById("intl_mf");
	var h = document.getElementById("intl_mt_label");
	var i = document.getElementById("intl_mt");
	var j = document.getElementById("intl_survey");
			
	if (x.checked)
	{
		//a.style.display= 'none';
		b.style.display= 'none';
		c.style.display= 'none';
		d.style.display= 'none';
		e.style.display= 'none';
		f.style.display = '';
		g.style.display = '';
		h.style.display = '';
		i.style.display = '';
		j.style.display = '';
		g.focus();
		//document.frmEstimate.FirstName.focus();
	}
	else
	{
		//a.style.display= '';
		b.style.display= '';
		c.style.display= '';
		d.style.display= '';
		e.style.display= '';
		f.style.display = 'none';
		g.style.display = 'none';
		h.style.display = 'none';
		i.style.display = 'none';
		j.style.display = 'none';
		document.frmEstimate.MF_City.focus();
	}
}