/* =========================================================================

JavaScript Source File -- Created with SAPIEN Technologies PrimalSCRIPT (TM)

NAME: test_account.js

AUTHOR: Rustom Rawat, Access Web Solutions
DATE  : 9/7/03
COPYRIGHT: (c) 2003 Access Web Solutions.
COMMENT: AWS grants you a royalty free license to use or modify this 
		 software provided that this copyright notice appears on all copies.
 		 This software is provided "AS IS," without a warranty of any kind.

============================================================================ */

function testaccount()
{
var form = window.document.frmTestAcc
	if (form.FName.value == "" || form.FName.value.length < 3)
	{
	alert("Please enter your first name in the \"First Name\" field.");
	form.FName.focus();
	return false;
	}
	if (form.LName.value == "" || form.LName.value.length < 3)
	{
	alert("Please enter your last name in the \"Domain Name\" field.");
	form.LName.focus();
	return false;
	}
	if (form.Address.value == "" || form.Address.value.length < 8)
	{
	alert("Please enter your address in the \"Street Address\" field.");
	form.Address.focus();
	return false;
	}
	if (form.City.value == "" || form.City.length < 5)
	{
	alert("Please enter your city in the \"City\" field.");
	form.City.focus();
	return false;
	}
	if (form.State.value == "" || form.State.value.length < 3)
	{
	alert("Please enter your state in the \"Province\/State\" field.");
	form.State.focus();
	return false;
	}
	if (form.Zip.value == "" || form.Zip.value.length < 5)
	{
	alert("Please enter your zip code in the \"Zip Code\" field.");
	form.Zip.focus();
	return false;
	}
	if (form.Phone.value == "" || form.Phone.value.length < 8)
	{
	alert("Please enter your phone in the \"Phone\" field.");
	form.Phone.focus();
	return false;
	}
	if (form.Email.value == "" || form.Email.value.length < 8)
	{
	alert("Please enter your email in the \"Email\" field.");
	form.Email.focus();
	return false;
	}
	if (form.Contract.value == "No")
	{
	alert("You must accept the contract terms for opening account with us.");
	form.Contract.focus();
	return false;
	}
return true;
}