
function homePageRollover(key) {
	switch(key) {
		case 'workplaces':
			document.getElementById('fp_text').innerHTML = '<h1>Realizing your potential through a healthier workplace, built from within.</h1>';
		break;
		
		case 'communities':
			document.getElementById('fp_text').innerHTML = '<h1>Empowering your community to take positive steps forward into an exciting future.</h1>';
		break;
		
		case 'events':
			document.getElementById('fp_text').innerHTML = '<h1>Your vision, our passion, unforgettable results with impact.</h1>';
		break;
					
		default:
			document.getElementById('fp_text').innerHTML = '<h1>Breathing life, infusing energy and building strength into your initiative.</h1>';
		break;
		
	}
}

function checkQuoteFields(){
	if(document.quote_form.name.value == ""){
		alert("Please enter your name before submitting.");
		document.quote_form.name.focus();
		return false;
	} else if(document.quote_form.company.value == ""){
		alert('Please enter an email a company name before submitting.');
		document.quote_form.email.focus();
		return false;
	} else if(document.quote_form.email.value == ""){
		alert('Please enter an email address before submitting.');
		document.quote_form.email.focus();
		return false;
	} else if(document.quote_form.email2.value == ""){
		alert('Please enter retype your email address before submitting.');
		document.quote_form.email.focus();
		return false;
	} else if(document.quote_form.phone.value == ""){
		alert('Please enter a phone number before submitting.');
		document.quote_form.email.focus();
		return false;
	}  else if (document.quote_form.details.value == ""){
		alert('Please enter a few details about the project before submitting.');
		document.quote_form.email.focus();
		return false;
	} else if((document.quote_form.email.value) != (document.quote_form.email2.value)){
		alert('The email addresses entered do not match.');
		document.quote_form.email.focus();
		return false;
	} 	else if(document.quote_form.email.value!=""){
		index=document.quote_form.email.value.indexOf("@");
			if(index==-1){
				alert("The format of the email address entered is incorrect. Please check your email address.");
				document.quote_form.email.focus();
				return false;
			}	else	{
				lastd=document.quote_form.email.value.substring(index+1,document.quote_form.email.value.length);
				if(lastd.indexOf(".")==-1){
					alert("The format of the email address entered is incorrect. Please check your email address.");
					document.quote_form.email.focus();
					return false;
				}
			}
		
	} else if((document.quote_form.email.value) != (document.quote_form.email2.value)){
		alert('The email addresses entered do not match.');
		document.quote_form.email.focus();
		return false;
	}

	return true;	
}







