function ValidateForm(){
  FixThis = "";
  myOption = -1;
  myOptionB = -1;

  for (i=document.enter.q1.length-1; i > -1; i--) {
    if (document.enter.q1[i].checked) {
      myOption = i; i = -1;
    }
  }

  for (i=document.enter.q2.length-1; i > -1; i--) {
    if (document.enter.q2[i].checked) {
      myOptionB = i; i = -1;
    }
  }

  if (myOption == -1) {
    FixThis = FixThis + "* Question #1   \n"; }

  if (myOptionB == -1) {
    FixThis = FixThis + "* Question #2   \n"; }

  if (document.enter.gender.value == "") {
    FixThis = FixThis + "* Gender   \n"; }

  if (document.enter.age.value == "") {
    FixThis = FixThis + "* Age   \n"; }

  if (document.enter.paid.value == "") {
    FixThis = FixThis + "* Paid history   \n"; }

  if (document.enter.length.value == "") {
    FixThis = FixThis + "* Years modeling   \n"; }

  if (document.enter.site.value == "") {
    FixThis = FixThis + "* Web site   \n"; }

  if (document.enter.photos.value == "") {
    FixThis = FixThis + "* # of photos   \n"; }

  if (document.enter.cover.value == "") {
    FixThis = FixThis + "* Cover preference   \n"; }

  if ((document.enter.cover.value == "other") && (document.enter.coverother.value == "")) {
    FixThis = FixThis + "* Name of your cover preference   \n"; }

  if (document.enter.color.value == "") {
    FixThis = FixThis + "* Color preference   \n"; }

  if ((document.enter.color.value == "other") && (document.enter.colorother.value == "")) {
    FixThis = FixThis + "* Name of your favorite color   \n"; }

  if (document.enter.name.value.length < 5) {
    FixThis = FixThis + "* Full Name   \n"; }

  if (document.enter.address.value.length < 2) {
    FixThis = FixThis + "* Address   \n"; }

  if (document.enter.city.value.length < 2) {
    FixThis = FixThis + "* City   \n"; }

  if (document.enter.state.value.length < 2) {
    FixThis = FixThis + "* State / Province  \n"; }

  if (document.enter.zip.value == "") {
    FixThis = FixThis + "* Zip / Postal code   \n"; }

  if (document.enter.country.value == "") {
    FixThis = FixThis + "* Country   \n"; }

  if (document.enter.email.value == "") {
    FixThis = FixThis + "* Email   \n"; }

  if (document.enter.email.value.length > 0) {
    i = document.enter.email.value.indexOf("@");
    j = document.enter.email.value.indexOf(".",i);
    k = document.enter.email.value.indexOf(",");
    kk = document.enter.email.value.indexOf(" ");
    jj = document.enter.email.value.lastIndexOf(".") + 1;
    len = document.enter.email.value.length;

    if ((i > 0) && (j > (i+ 1)) && (k == -1) && (kk == -1) && (len - jj >= 2) && (len - jj <= 3)) {
    } else {
      FixThis = FixThis + "* [" + document.enter.email.value + "] is an invalid e-mail address\n";
    }
  }

  if ((document.enter.phonea.value.length < 3) || (document.enter.phoneb.value.length < 3) || (document.enter.phonec.value.length < 4)) {
    FixThis = FixThis + "* Phone number   \n"; }

  if (FixThis > "") {
    alert("You did not enter:\n\n" + FixThis)
    return false }
}

function ValidateSignUp(){
  FixThis = "";
  myOption = -1;
  myOptionB = -1;

  for (i=document.enter.q1.length-1; i > -1; i--) {
    if (document.enter.q1[i].checked) {
      myOption = i; i = -1;
    }
  }

  for (i=document.enter.q2.length-1; i > -1; i--) {
    if (document.enter.q2[i].checked) {
      myOptionB = i; i = -1;
    }
  }

  if (myOption == -1) {
    FixThis = FixThis + "* Question #1   \n"; }

  if (myOptionB == -1) {
    FixThis = FixThis + "* Question #2   \n"; }

  if (document.enter.length.value == "") {
    FixThis = FixThis + "* Years modeling   \n"; }

  if (document.enter.photos.value == "") {
    FixThis = FixThis + "* # of photos   \n"; }

  if (document.enter.cover.value == "") {
    FixThis = FixThis + "* Cover preference   \n"; }

  if ((document.enter.cover.value == "other") && (document.enter.coverother.value == "")) {
    FixThis = FixThis + "* Name of your cover preference   \n"; }

  if (document.enter.color.value == "") {
    FixThis = FixThis + "* Color preference   \n"; }

  if ((document.enter.color.value == "other") && (document.enter.colorother.value == "")) {
    FixThis = FixThis + "* Name of your favorite color   \n"; }

  if (document.enter.gender.value == "") {
    FixThis = FixThis + "* Gender   \n"; }

  if (document.enter.bmonth.value == "") {
    FixThis = FixThis + "* The month you were born   \n"; }

  if (document.enter.bday.value == "") {
    FixThis = FixThis + "* The day you were born   \n"; }

  if (document.enter.byear.value == "") {
    FixThis = FixThis + "* The year you were born   \n"; }

  if (document.enter.ethnicity.value == "") {
    FixThis = FixThis + "* Ethnicity   \n"; }

  if ((document.enter.ethnicity.value == "other") && (document.enter.ethnicityother.value == "")) {
    FixThis = FixThis + "* Your specific ethnicity   \n"; }

  if (document.enter.eyes.value.length < 3) {
    FixThis = FixThis + "* Eye Color   \n"; }

  if (document.enter.hair.value.length < 3) {
    FixThis = FixThis + "* Hair Color   \n"; }

  if (document.enter.name.value.length < 5) {
    FixThis = FixThis + "* Full Name   \n"; }

  if (document.enter.address.value.length < 2) {
    FixThis = FixThis + "* Address   \n"; }

  if (document.enter.city.value.length < 2) {
    FixThis = FixThis + "* City   \n"; }

  if (document.enter.state.value.length < 2) {
    FixThis = FixThis + "* State / Province  \n"; }

  if (document.enter.zip.value == "") {
    FixThis = FixThis + "* Zip / Postal code   \n"; }

  if (document.enter.country.value == "") {
    FixThis = FixThis + "* Country   \n"; }

  if (document.enter.email.value == "") {
    FixThis = FixThis + "* Email   \n"; }

  if (document.enter.email.value.length > 0) {
    i = document.enter.email.value.indexOf("@");
    j = document.enter.email.value.indexOf(".",i);
    k = document.enter.email.value.indexOf(",");
    kk = document.enter.email.value.indexOf(" ");
    jj = document.enter.email.value.lastIndexOf(".") + 1;
    len = document.enter.email.value.length;

    if ((i > 0) && (j > (i+ 1)) && (k == -1) && (kk == -1) && (len - jj >= 2) && (len - jj <= 3)) {
    } else {
      FixThis = FixThis + "* [" + document.enter.email.value + "] is an invalid e-mail address\n";
    }
  }

  if ((document.enter.phonea.value.length < 3) || (document.enter.phoneb.value.length < 3) || (document.enter.phonec.value.length < 4)) {
    FixThis = FixThis + "* Phone number   \n"; }

  if (FixThis > "") {
    alert("You did not enter:\n\n" + FixThis)
    return false }
}

function ValidateBilling(){
  FixThis = "";

  if (document.enter.cardtype.value == "") {
    FixThis = FixThis + "* Type of credit card   \n"; }

  if ((document.enter.cardnumber.value.length < 15) || (document.enter.cardnumber.value.length > 16)) {
    FixThis = FixThis + "* Credit card number   \n"; }

  if (document.enter.cardmonth.value == "") {
    FixThis = FixThis + "* Expiration month   \n"; }

  if (document.enter.cardyear.value == "") {
    FixThis = FixThis + "* Expiration year   \n"; }

  if ((document.enter.cardcode.value.length < 3) || (document.enter.cardcode.value.length > 4)) {
    FixThis = FixThis + "* 3 or 4 digit credit card security code   \n"; }

  if (document.enter.cardname.value.length < 5) {
    FixThis = FixThis + "* Name on Card   \n"; }

  if (document.enter.cardaddress.value.length < 2) {
    FixThis = FixThis + "* Billing Address   \n"; }

  if (document.enter.cardcity.value.length < 2) {
    FixThis = FixThis + "* Billing City   \n"; }

  if (document.enter.cardstate.value.length < 2) {
    FixThis = FixThis + "* Billing State / Province  \n"; }

  if (document.enter.cardzip.value == "") {
    FixThis = FixThis + "* Billing Zip / Postal code   \n"; }

  if (document.enter.cardcountry.value == "") {
    FixThis = FixThis + "* Billing country   \n"; }

  if (document.enter.cardemail.value == "") {
    FixThis = FixThis + "* Billing email   \n"; }

  if (document.enter.cardemail.value.length > 0) {
    i = document.enter.cardemail.value.indexOf("@");
    j = document.enter.cardemail.value.indexOf(".",i);
    k = document.enter.cardemail.value.indexOf(",");
    kk = document.enter.cardemail.value.indexOf(" ");
    jj = document.enter.cardemail.value.lastIndexOf(".") + 1;
    len = document.enter.cardemail.value.length;

    if ((i > 0) && (j > (i+ 1)) && (k == -1) && (kk == -1) && (len - jj >= 2) && (len - jj <= 3)) {
    } else {
      FixThis = FixThis + "* [" + document.enter.cardemail.value + "] is an invalid e-mail address\n";
    }
  }

  if ((document.enter.cardphonea.value.length < 3) || (document.enter.cardphoneb.value.length < 3) || (document.enter.cardphonec.value.length < 4)) {
    FixThis = FixThis + "* Billing phone number   \n"; }

  if (FixThis > "") {
    alert("You did not enter:\n\n" + FixThis)
    return false }
}
