<!--
// This function validates the contact page and makes sure all required fields are filled in.
function validateContactPage()
{
	
	// Validate contact information
	
	// Validate first name
	if(document.contactform.realname.value.length < 1) { 
		submitFlag = false;
		alert("ERROR!\nName is a required field");
		document.contactform.realname.focus();
	// Validate last name
	} else if(document.contactform.email.value.length < 1) { 
		submitFlag = false;
		alert("ERROR!\nEmail is a required field");
		document.contactform.email.focus();
	// Validate email-signature field
	} else if(document.contactform.signature.value.length < 1) { 
		submitFlag = false;
		alert("ERROR!\nPlease enter the reason for your email.");
		document.contactform.signature.focus();
	} else {
	  //If everything validates, submit as true and allow the form to process.
	  submitFlag = true;
	  
	  }  // End if statement
	 
	  
	  // Return from the function
	  return submitFlag;

}

function thanks(){
		alert("Thank you for contacting us.  I will be contacting you soon.\n\nStan Mann");
		//this.window.close();
}

function thanksEval(){
		alert("Thank you for participating in our assessment.  I will be contacting you soon to review your results.\n\nStan Mann");
		this.window.close();
}

function recaptchaerror(){
		alert("There was a problem with the reCAPTCHA security.  Please enter the reCAPTCHA code again.");
}

function radioval(obj) {
					var flag = 0
					for (var k = 0; k < obj.length; k++) {
						if (obj[k].checked) {
							flag = k + 1
							}
						}
					return flag
					}
					function CalcTotal() {
					var vTotal = 0;
					vTotal = radioval(document.forms[0].Clarify) +
							 radioval(document.forms[0].Supervision) +
							 radioval(document.forms[0].Structure) +
							 radioval(document.forms[0].PeopleFirst) +
							 radioval(document.forms[0].SafeEnvironment) +
							 radioval(document.forms[0].Nurture) +
							 radioval(document.forms[0].Opportunities)
							 ;
					document.forms[0].Total.value = vTotal ;
}

function MM_callJS(jsStr) { //v2.0
  return eval(jsStr)
}



