function Is_Valid_Email( address ){
	var tempchar;
	var at;
	var period;
	var invalchar = "/:,;";
	for(i = 0; i < invalchar.length; i++){
		tempchar = invalchar.charAt(i);
		if( address.indexOf(tempchar, 0) > -1 ){ return false; }
	}
	at = address.indexOf("@", 1);
	if(at == -1){ return false; }
	if(address.indexOf("@", at + 1) > -1){ return false; }
	period = address.indexOf(".", at);
	if(period == -1){ return false; }
	if(period + 2 > address.length){ return false; }
	if(period - at < 2){ return false; }
	return true;
}

	function validateForm(){
	
	//check and see if they're empty.
	
	if (document.FAQ.email.value == "" || document.FAQ.email.value ==" "){
		alert ("You must provide your email address.");
		document.FAQ.email.focus();
		return false;
	}
	
	if (document.FAQ.question.value == "" || document.FAQ.question.value == ""){
 		alert("Please ask a question.");
		document.FAQ.question.focus();
		return false;
	
		
	}

	
	//validate email
	
	
	if (Is_Valid_Email(document.FAQ.email.value) == false){
	
		alert("Please enter a valid email address.");
		document.FAQ.email.focus();
		return false;
	}

	
	
	return true;
	}
