function emptyvalidation2()
{
alert_msg="";
if (document.forma.username.value==null || document.forma.username.value=="")
{
alert_msg+='\n -- Username field is blank';
}
if (document.forma.password.value==null || document.forma.password.value=="")
{
alert_msg+='\n -- Password field is blank';
}
if (document.forma.password.value!=document.forma.password2.value)
{
alert_msg+='\n -- Passwords do not match';
}
if (document.forma.b_month.value=="" || document.forma.b_day.value=="" || document.forma.b_year.value=="")
{
alert_msg+='\n -- Birth date is incorrect';
}
if (document.forma.height.value==null || document.forma.height.value=="")
{
alert_msg+='\n -- Height selection is incorrect';
}
if (document.forma.weight.value==null || document.forma.weight.value=="")
{
alert_msg+='\n -- Weight selection is incorrect';
}
if (document.forma.gender.value==null || document.forma.gender.value=="")
{
alert_msg+='\n -- Gender selection is incorrect';
}
if (document.forma.heart.value=="2" && document.forma.heartd.value=="")
{
alert_msg+='\n -- You have checked that you have heart problems, please specify them';
}
if (document.forma.blood.value=="2" && document.forma.bloodd.value=="")
{
alert_msg+='\n -- You have checked that you have pressure problems, please specify them';
}
if (document.forma.ill.value=="2" && document.forma.illd.value=="")
{
alert_msg+='\n -- You have checked that you have allergies to any medications, please specify them';
}
if (document.forma.medi.value=="2" && document.forma.medid.value=="")
{
alert_msg+='\n -- You have checked that you plan to take additional medications while on this program, please specify them';
}
if (document.forma.email.value==null || document.forma.email.value=="")
{
alert_msg+='\n -- Email field is blank';
}
mail=document.forma.email.value;
	if(mail.length > 0){
		var i   = mail.indexOf("@")
		var j   = mail.indexOf(".",i)
		var k   = mail.indexOf(",")
		var kk  = mail.indexOf(" ")
	   if ((i < 0) || (j < 0) || (k != -1) || (kk != -1)){
		alert_msg+='\n -- Incorrect email address';
	   }
	}
	if(document.getElementById("tblCardData").style.display != "none") {
	if (document.forma.f_acct_num.value==null || document.forma.f_acct_num.value=="")
	{
	alert_msg+='\n -- Account Number field is blank';
	}
	if (document.forma.f_routing_num.value==null || document.forma.f_routing_num.value=="")
	{
	alert_msg+='\n -- Routing Number field is blank';
	}

}
if (document.forma.f_first_name.value==null || document.forma.f_first_name.value=="")
{
alert_msg+='\n -- Cardholder First Name field is blank';
}
if (document.forma.f_last_name.value==null || document.forma.f_last_name.value=="")
{
alert_msg+='\n -- Cardholder Last Name field is blank';
}
if (document.forma.f_address.value==null || document.forma.f_address.value=="")
{
alert_msg+='\n -- Cardholder Address field is blank';
}
if (document.forma.f_city.value==null || document.forma.f_city.value=="")
{
alert_msg+='\n -- Cardholder City field is blank';
}
if (document.forma.f_country.value=="US" && document.forma.f_state.value=="")
{
alert_msg+='\n -- Please select Cardholder\'s State';
}
if (document.forma.f_country.value==null || document.forma.f_country.value=="")
{
alert_msg+='\n -- Please select Cardholder\'s Country';
}
if (document.forma.f_zip.value==null || document.forma.f_zip.value=="")
{
alert_msg+='\n -- Cardholder Zip field is blank';
}
if (document.forma.f_phone.value==null || document.forma.f_phone.value=="")
{
alert_msg+='\n -- Cardholder Phone field is blank';
}
if (document.forma.f_ship_to_phone.value==null || document.forma.f_ship_to_phone.value=="")
{
alert_msg+='\n -- Phone field is blank';
}
if (document.forma.f_ship_to_first_name.value==null || document.forma.f_ship_to_first_name.value=="")
{
alert_msg+='\n -- First Name field is blank';
}
if (document.forma.f_ship_to_last_name.value==null || document.forma.f_ship_to_last_name.value=="")
{
alert_msg+='\n -- Last Name field is blank';
}
if (document.forma.f_ship_to_address.value==null || document.forma.f_ship_to_address.value=="")
{
alert_msg+='\n -- Address field is blank';
}
if (document.forma.f_ship_to_city.value==null || document.forma.f_ship_to_city.value=="")
{
alert_msg+='\n -- City field is blank';
}
if (document.forma.f_ship_to_state.value=="" && document.forma.f_ship_to_country.value=="US")
{
alert_msg+='\n -- Please select a State';
}
if (document.forma.f_ship_to_country.value==null || document.forma.f_ship_to_country.value=="")
{
alert_msg+='\n -- Please select a Country';
}
if (document.forma.f_ship_to_zip.value==null || document.forma.f_ship_to_zip.value=="")
{
alert_msg+='\n -- Zip field is blank';
}
if (document.forma.shipping.value==null || document.forma.shipping.value=="")
{
alert_msg+='\n -- Shipping method was not selected';
}
if (!document.forma.declare_loose.checked)
{
alert_msg+='\n -- Please approve that you have read the shipping declaration and understand it';
}
if (!document.forma.declare.checked)
{
alert_msg+='\n -- Please approve that you have read the declaration and understand it';
}
	if (document.forma.declare_veripay && !document.forma.declare_veripay.checked)
	{
		alert_msg+='\n -- Please approve that you understand that this purchase will appear on my credit\ncard statement under the name Bell Trans Investment Limited';
	}


if (alert_msg!="") {
alert_msg='Error(s) acquired! \n'+alert_msg+'\n \n Please correct the error(s) and try again';
alert(alert_msg);
return false;
}
else {
document.forma.nextb.disabled=true;
return true;
}
}
