function check(frm)  {
	re = /([0-9a-zA-Z\.-_]+)@([0-9a-zA-Z\.-_]+)/;
	restate = /([a-zA-Z]+)/;
	rezip = /([0-9]+)/;
	rephone = /^([0-9\-\(\)\. ]+)$/;
	var Afirst_name, Alast_name, Aemail, Aaddress, Astate, Azip, Acity, homephone, dataRight = true;
	message = "";
	Afirst_name=frm.Afirst_name.value;
	Alast_name=frm.Alast_name.value;
	Aemail=frm.Aemail.value;
	Aaddress=frm.Aaddress.value;
	Astate=frm.Astate.value;
	Azip=frm.Azip.value;
	Acity=frm.Acity.value;
	homephone=frm.home_phone.value;

	if (Afirst_name.length==0)	{
		message += "\n -  First Name";
		dataRight=false;
	}

	if (Alast_name.length==0)	{
		message += "\n -  Last Name";
		dataRight=false;
	}

	if (Aemail.length==0)	   {
	   message += "\n -  E-Mail Address";
	   dataRight=false;
   }

	if (Aemail.length!=0 && Aemail.match(re)==null)	   {
	   dataRight=false;
	   message += "\n -  E-Mail is Incorrect";
   }

	if (Aaddress.length==0)	   {
	   message += "\n -  Address";
	   dataRight=false;
   }

	if (Acity.length==0)	   {
	   message += "\n -  City";
	   dataRight=false;
   }

	if (Astate.length==0 |Astate.match(restate)==null)	   {
	   message += "\n -  State";
	   dataRight=false;
   }

	if (Azip.length==0 |Azip.match(rezip)==null)	   {
	   message += "\n -  Zip";
	   dataRight=false;
   }

	if (homephone.length==0)	   {
	   message += "\n -  Home Phone";
	   dataRight=false;
   }

	if (homephone.length!=0 && homephone.match(rephone)==null)	   {
	   dataRight=false;
	   message += "\n -  Home Phone is Incorrect";
   }
	if (Astate.length!=0 && Astate.match('fl'))	   {
	   dataRight=false;
	   message += "\n -  CHW is not currently selling new service contracts in the state of Florida.";
   }
   	if (Astate.length!=0 && Astate.match('FL'))	   {
	   dataRight=false;
	   message += "\n -  CHW is not currently selling new service contracts in the state of Florida.";
   }
    if (Astate.length!=0 && Astate.match('Fl'))	   {
	   dataRight=false;
	   message += "\n -  CHW is not currently selling new service contracts in the state of Florida.";
   }
       if (Astate.length!=0 && Astate.match('fL'))	   {
	   dataRight=false;
	   message += "\n -  CHW is not currently selling new service contracts in the state of Florida.";
   }
	if (!dataRight)    {
		if (message != "")   {
			message ="\n" +   "You failed to correctly fill in the form:\n" +   message + "\n";
		}

		alert(message);

	}

	return dataRight;

}