//Validating the Landing7min

function validate_landing7min ()
{
    valid = true;
	var emailPat=/^(.+)@(.+)\.(.+)$/;

     if ( document.landing7min.fname.value == "First Name" )
    {
        alert ( "Please enter your First Name" );
        valid = false;
    }
	else if ( document.landing7min.lname.value == "Last Name" )
    {
        alert ( "Please enter your Last Name" );
        valid = false;
    }
	else if ( document.landing7min.email.value == "Email" )
    {
        alert ( "Please enter your Email Address" );
        valid = false;
    }
	else if (document.landing7min.email.value.search(emailPat)==-1)
  	{
    alert ( "Please enter a valid Email Address" );
        valid = false;
 	}
	else if ( document.landing7min.phone.value == "Phone")
    {
        alert ( "Please enter your Phone Number");
        valid = false;
    }
	else if ( document.landing7min.address.value == "Address")
    {
        alert ( "Please enter your Address");
        valid = false;
    }
	else if ( document.landing7min.city.value == "City")
    {
        alert ( "Please Enter your City Name");
        valid = false;
    }
	else if ( document.landing7min.state.value == "State" )
    {
        alert ( "Please enter your State Name" );
        valid = false;
    }
	else if ( document.landing7min.zip.value == "Zip" )
    {
        alert ( "Please enter your Zip Code" );
        valid = false;
    }
	else if ( document.landing7min.suffering.value == "Please choose one")
    {
        alert ( "Please enter How long are you suffering from back pain");
        valid = false;
    }
	
	else{
	alert("Thank you for contacting us, We will contact you shortly.");
	}
    return valid;
   
}
//Validating the Landing Form

function validate_landing ()
{
    valid = true;
	var emailPat=/^(.+)@(.+)\.(.+)$/;

     if ( document.landing.fname.value == "" )
    {
        alert ( "Please enter your First Name" );
        valid = false;
    }
	else if ( document.landing.lname.value == "" )
    {
        alert ( "Please enter your Last Name" );
        valid = false;
    }
	else if ( document.landing.email.value == "" )
    {
        alert ( "Please enter your Email Address" );
        valid = false;
    }
	else if (document.landing.email.value.search(emailPat)==-1)
  	{
    alert ( "Please enter a valid Email Address" );
        valid = false;
 	}	
	else if ( document.landing.address.value == "")
    {
        alert ( "Please enter your Address");
        valid = false;
    }
	else if ( document.landing.city.value == "")
    {
        alert ( "Please Enter your City Name");
        valid = false;
    }
	else if ( document.landing.state.value == "" )
    {
        alert ( "Please enter your State Name" );
        valid = false;
    }
	else if ( document.landing.zip.value == "" )
    {
        alert ( "Please enter your Zip Code" );
        valid = false;
    }
	else if ( document.landing.problem.value == "Please choose one")
    {
        alert ( "Please enter Type of Problem");
        valid = false;
    }
	
	else{
	alert("Thank you for contacting us, We will contact you shortly.");
	}
    return valid;
   
}
