<!-- Hide from incompatible browsers
	//FRANCHISE FORM
	//Check if user wants to clear all fields.
	function confirmReset() {
		var resetForm = confirm("This will clear all fields. Are you sure you want to reset the form?");
		if (resetForm == true) 
			return true;
		return false;
	}
	
	
	//Validation
	
	function validForm(){
		if(isName()==false){
			return false;
		}
		if(isEmail()==false){
			return false;
		}					
	}
	
	function isName(){
		if(contactForm.name.value==""){
			alert("Please enter your name.");
			contactForm.name.focus();
			contactForm.name.select();
			return false;
			}
			else {return true;}
	}
	
		function isEmail(){
		if(contactForm.email.value==""){
			alert("Please enter your e-mail.");
			contactForm.email.focus();
			contactForm.email.select();
			return false;
			}
		if(contactForm.email.value != "" && contactForm.email.value.indexOf("@")== "-1" && contactForm.email.value.indexOf(".")=="-1"){
			alert("Please enter a valid e-mail address.");
			contactForm.email.focus();
			contactForm.email.select();
			return false;
			}
		else {return true;}
	}
	
	
	
// Stop hiding from incompatible browsers-->