﻿function configureValidation(f,alerttype)
{
//  f.client_name.isAlphaNumeric = true;
  f.email.isEmail = true;
  f.phone.isPhoneNumber = true;
  f.company.optional = true;
//  f.address.optional = true;
//  f.city.optional = true;
//  f.state.optional = true;
  f.comments.optional = true;

  f.user.errLabel = "Name";
  f.email.errLabel = "Email Address";
  f.phone.errLabel = "Phone";
  f.address.errLabel = "Address";
  f.city.errLabel = "City";
  f.state.errLabel = "State, Zip";
  //f.comments.errLabel = "Comments";

//  var preCheck = (!f.infohtml.checked && !f.infocss.checked && !f.infojs.checked) ? errormsg[0] : null;
  return validateForm(f, null, 'required', alerttype);
}

