// JavaScript Document
//Author: Primir
//Coded by: Harry

function Checkdata()
{
	//alert("I am here");
	if(document.contactform.Name.value < "4")
	{
		alert("Please enter your full name.");
		document.contactform.Name.focus()
	}
	
	/* else if(document.contactform.Title.value < 6)
	{
		alert("Please provide your Title");
		document.contactform.Title.focus()
	} */
	
	else if(document.contactform.Email.value < 6)
	{
		alert("Please provide an Email address");
		document.contactform.Email.focus()
	} 
	
	/*else if(document.contactform.Business_Name.value < 6)
	{
		alert("Please provide your Business Name");
		document.contactform.Business_Name.focus()
	}*/ 
	
	else if(document.contactform.Phone.value < 6)
	{
		alert("Please provide a correct phone number, including area code. e.i: (###)-###-####");
		document.contactform.Phone.focus()
	} 
	
	/*else if(document.contactform.Address.value < 6)
	{
		alert("Please provide an address");
		document.contactform.Address.focus()
	} 
	
	else if(document.contactform.City_State_Zipcode.value < 6)
	{
		alert("Please provide a City, State, and Zip Code");
		document.contactform.City_State_Zipcode.focus()
	}*/ 
	
	else 
	{
		submitForm();
	}
}

function submitForm()
{
	document.contactform.submit();
}