function check()
{

	//alert(document.FrontPage_Form2.phone.value.indexOf("graftek.com"));
	var place = document.FrontPage_Form2.phone.value.indexOf("graftek.com");	
 	//alert(place);
 
	if(place > -1)
	{
		//check for email address longer than 8 characters
		alert("Poor information");
		return false;
	}
	 
	 
	
	//NAME field validation
	var space=true;
	//check all of the values in the name field to see if they aren't whitespace
	for(i=0;i<document.FrontPage_Form2.name.value.length;i++)
	{
		if(document.FrontPage_Form2.name.value.charAt(i)!=' ')
		{
			space = false;
		}	
	}
	if(document.FrontPage_Form2.name.value.length < 4)
	{
		//if name is less than 4 characters throw error
		alert("Please enter your full name.");
		return false;
	}
	if(space == true){ 
		//if all data in name field is whitespace don't submit form
		alert("Please enter your name.");
		return false;	
	}
	
	//CITY field validation
	var space=true;
	//check all of the values in the name field to see if they aren't whitespace
	for(i=0;i<document.FrontPage_Form2.city.value.length;i++)
	{
		if(document.FrontPage_Form2.city.value.charAt(i)!=' ')
		{
			space = false;
		}	
	}

	if(space == true){ 
		//if all data in name field is whitespace don't submit form
		alert("Please enter your location to help with pricing information.");
		return false;	
	}
	
	//EMAIL address validation
	if(document.FrontPage_Form2.email.value.length < 8)
	{
		//check for email address longer than 8 characters
		alert("You need to enter a valid e-mail address so we can get back to you.");
		return false;
	}
	if(document.FrontPage_Form2.email.value.indexOf('.') == -1)
	{
		alert("Please enter a valid email address.");
		return false;
	}
	if(document.FrontPage_Form2.email.value.indexOf('@') == -1)
	{
		alert("Please enter a valid email address.");
		return false;
	}
	
/*		if(document.FrontPage_Form2.phone.value.indexOf("graftek.com")) > -1)
	{
		//check for email address longer than 8 characters
		alert("Wrong");
		return false;
	}
*/

		


	return true;
}