function validate(f)
{
	if (f.cname.value == "")
	{
		alert("Please fill the contact name!");
		return false;
	}

	if (f.addr.value == "")
	{
		alert("Please fill in the address!");
		return false;
	}

	if (f.city.value == "")
	{
		alert("Please fill in the city!");
		return false;
	}

	if (f.state.value == "")
	{
		alert("Please fill in the state!");
		return false;
	}

	if (f.zip.value == "")
	{
		alert("Please fill in the zip code!");
		return false;
	}

	if (f.phone.value == "")
	{
		alert("Please fill in the phone number!");
		return false;
	}

	if (f.email.value == "")
	{
		alert("Please fill in the email!");
		return false;
	}

	return true;

}

function validatePhoto(f)
{
	if (f.cname.value == "")
	{
		alert("Please fill the contact name!");
		return false;
	}

	if (f.addr.value == "")
	{
		alert("Please fill in the address!");
		return false;
	}

	if (f.city.value == "")
	{
		alert("Please fill in the city!");
		return false;
	}

	if (f.state.value == "")
	{
		alert("Please fill in the state!");
		return false;
	}

	if (f.zip.value == "")
	{
		alert("Please fill in the zip code!");
		return false;
	}

	if (f.phone.value == "")
	{
		alert("Please fill in the phone number!");
		return false;
	}

	if (f.email.value == "")
	{
		alert("Please fill in the email!");
		return false;
	}
	if (!f.lit.checked)
	{
		alert("Please read the terms & conditions!");
		return false;
	}


	return true;

}
