// JavaScript Document
function SubmitForm1()
{
	var mName = document.Form1.name.value;
	
	var mEmail =document.Form1.email.value;
        var mCompany = document.Form1.company.value;
        var mAddress = document.Form1.address.value;
        var mCity = document.Form1.staddr.value;
	var mState = document.Form1.state.value;
	var mZip = document.Form1.zip.value;
	var mFirst=document.Form1.area.value;
	var mSecond=document.Form1.first3.value;
	var mThird=document.Form1.last4.value;


	mName = trim(mName);	
	mEmail=trim(mEmail);
	mAddress= trim(mAddress);
	mCity= trim(mCity);
	mState=trim(mState);
	mZip = trim(mZip);
	mFirst = trim(mFirst);
	mSecond = trim(mSecond);
	mThird = trim(mThird);


	if ( mName == "" )
	{
		alert ("Name can not be null");
		return false;
	}
	
	if (mEmail  == "" )
	{
		alert ("E-Mail can not be null");
		return false;
	}


	if ( mAddress == "" )
	{
		alert ("Address can not be null");
		return false;
	}
	if ( mCity == "" )
	{
		alert ("City can not be null");
		return false;
	}

	if ( mState == "" )
	{
		alert ("State can not be null");
		return false;
	}
	if ( mZip == "" )
	{
		alert ("Zip code can not be null");
		return false;
	}


	if ( mFirst == "" )
	{
		alert ("Area Code can not be null");
		return false;
	}
	if ( mSecond == "" )
	{
		alert ("Phone number can not be null");
		return false;
	}
		if ( mThird == "" )
	{
		alert ("Phone number can not be null");
		return false;
	}


	document.Form1.submit();
}

