function validate_form ( )
{
	valid = true;

       if ( document.basicform.email_spam.value !="")
        {
                alert ( "This appears to be spam.  Please contact our office 250-372-3242" );
                valid = false;
        }

        if ( document.basicform.name.value == "" )
        {
                alert ( "Please fill in your 'name'." );
                valid = false;
        }

        if ( document.basicform.business.value == "" )
        {
                alert ( "Please fill in the Business name box." );
                valid = false;
        }

        if ( document.basicform.address.value == "" )
        {
                alert ( "Please fill in the Address box." );
                valid = false;
        }

        if ( document.basicform.city.value == "" )
        {
                alert ( "Please fill in the City box." );
                valid = false;
        }

    if ( document.basicform.phone.value == "" )
        {
                alert ( "Please fill in the Phone Number box." );
                valid = false;
        }

// only allow 0-9, hyphen and comma be entered
var checkOK = "0123456789-,";
var checkStr = basicform.phone.value;
var allValid = true;
var decPoints = 0;
var allNum = "";
for (i = 0;  i < checkStr.length;  i++)
{
ch = checkStr.charAt(i);
for (j = 0;  j < checkOK.length;  j++)
if (ch == checkOK.charAt(j))
break;
if (j == checkOK.length)
{
allValid = false;
break;
}
if (ch != ",")
allNum += ch;
}
if (!allValid)
{
alert("Please enter the phone number as 123-123-1234 format.");
basicform.phone.focus();
return (false);
}

// email must have valid symbol
     if (document.basicform.email.value.indexOf("@", 0) < 0)
        {
        	alert("Please enter a valid email address.");
        	valid = false;
        }

     if (document.basicform.email.value.indexOf(".", 0) < 0)
       {
    	alert("Please enter a valid email address.");
              valid = false;
        }

        return valid;
}