<!--
    function validateECRP(frm) { 

	var Q01A, Q02A, Q03A, Q04A, Q05A, Q51A;
	
	Q01A = trim(frm.Q01A.value);
	if (Q01A == "") {
		alert("First Name is Required");
		return false;
	}
	
	Q02A = trim(frm.Q02A.value);
	if (Q02A == "") {
		alert("Last Name is Required");
		return false;
	}
	
	Q03A = trim(frm.Q03A.value);
	if (Q03A == "") {
		alert("Email is Required");
		return false;
	}
	
	Q04A = trim(frm.Q04A.value);
	if (Q04A == "") {
		alert("Cell Phone is Required");
		return false;
	}
	
	
	Q05A = trim(frm.Q05A[frm.Q05A.selectedIndex].value);
	if (Q05A == "") {
		alert("Do you want to learn more about Fluor? is Required");
		return false;
	}
	
	Q51A = trim(frm.Q51A[frm.Q51A.selectedIndex].value);
	if (Q51A == "") {
		alert("You must Accept or Decline Privacy Terms");
		return false;
	}
	
	return true;
		  
}

function trim(source) { 
	
	var result;

	result = leftTrim(source);
	return rightTrim(result);

}

function leftTrim(source) { 

	
	var result; 
	var i;

	if (source == null) return "";
	text = source;

	if (text.length == 0) return "";

	result = "";
	for (i = 0; i < text.length && text.charAt(i) == " " ; i++);
	if (i == text.length) return "";
	return text.substring(i, text.length);
}

function rightTrim(source) { 
	
	var result; 
	var i;

	if (source == null) return "";
	text = source;

	if (text.length == 0) return "";

	result = "";
	for (i = text.length - 1; i >= 0 && text.charAt(i) == " " ; i -= 1);
	if (i < 0) return "";
	return text.substring(0, i + 1);
}
//-->
