// JavaScript Document

function roller(imgName, imgSrc){
	window.document.images[imgName].src = imgSrc;
}

function validateContact(){
	var error_string="";
	if(window.document.fmContact.name.value==""){
		error_string+="You must type your first name.\n";
	}
			
	if(window.document.fmContact.email.value==""){
		error_string+="You must type your email address.\n";
	}
	
	if(window.document.fmContact.message.value==""){
		error_string+="You must type a message. \n";
	}else{
		var the_at3=window.document.fmContact.email.value.indexOf("@");
		var the_dot3=window.document.fmContact.email.value.indexOf(".");
		var a_space3=window.document.fmContact.email.value.indexOf(" ");
		if((the_at3!=-1)&&
			(the_at3!=0)&&
			(the_dot3!=-1)&&
			(the_dot3<window.document.fmContact.email.value.length-1)&&
			(a_space3==-1)){
		}else{
			error_string+="Invalid email address. \n";
		}
	}
		
		
	if(error_string==""){
		return true;
	} else {
		error_string="Your request could not be processed: \n" + error_string;
		alert(error_string);
		return false;
	}
}