function Step1Validate(AMAGFree)
{
  with(ElementGet('frmStep1'))
  {
    if 
    (
//      FieldValidateEx(Input3, Input3.checked, 'You should read the terms and review the pricing information.')
//      &&
      RegistrationValidate()
      &&
      (AMAGFree || FieldValidateEx(magItemMAG, magItemMAG.checked, 'You should select product to purchase.'))
      && 
      PaymentValidate(frmStep1, ptCreditCard, 'FPayment', '', 40)
    )
    frmStep1.submit();
  }
}

function WonderPayFormValidate()
{
  with(ElementGet('frmWonderPay'))
  {
    if (
      FieldValidate(FPhoneBusiness, fvtPhone, 'PhoneBusiness', '', true)
      &&
  	FieldValidate(FNameBusiness, fvtNotEmpty , 'Business Name', '', true)
      &&
  	FieldValidate(FNameLast, fvtNotEmpty , 'Last Name', '', true)
      &&
 	FieldValidate(FNameFirst, fvtNotEmpty , 'First Name', '', true)
      &&
      FieldValidate(FEMail, fvtEMail, 'Email', '', true)  
    ) return true;
    else return false; 
  }
}

function RegistrationValidate()
{
  with(ElementGet('frmStep1'))
  {
    if (
      Address_FieldValidate(frmStep1, 'FRegistration', 'Contact', true)
      &&
      FieldValidate(FCompany, fvtNotEmpty, 'Company Name', '', true)
      &&
      FieldValidate(FPhoneWork, fvtPhoneCommon, 'Phone', '', true)
      &&
      Name_FieldValidate(frmStep1, 'F', 'Contact', true)    
      &&
      (
        (CheckEMail.checked == true)
        ||
        (FieldValidateEx(FEMailConfirm, (FEMailConfirm.value == FEMail.value) , 'Confirm Email and Email values are not equal'))
      )
    ) return true;
    else return false;  
  }
}