// JavaScript Document
function validate()
{
	var accept=true;
	var form=document.web_design_contact;
	var msgstr="";
	
	if(form.fname.value=="") { 
		accept=false; 
		msgstr+="First name \n"; 
		changeColor("fname"); 
	}
	if(form.lname.value=="") { 
		accept=false; 
		msgstr+="Last name \n"; 
		changeColor("lname"); 
	}
	if(form.email.value.indexOf('@')==-1) { 
		accept=false; 
		msgstr+="Email address \n"; 
		changeColor("email"); 
	}
	
	if (accept==false) 
		{
			alert("You have not completed these required fields: \n" + msgstr);
			return false;
		}
	else 
		{
			//alert("Your form has been submitted successfully, thank you.");
			return;
		}	
}

function changeColor(el)
{
	document.getElementById(el).style.color="red";
	return;
}