﻿function checkWholeForm(Lit) {
    var why = "";
    why += isEmpty1(Lit.FIELD1.value);
    why += isEmpty2(Lit.title.value); 
    why += isEmpty3(Lit.FIELD2.value);    
    why += isEmpty4(Lit.FIELD3.value);
    why += isEmpty5(Lit.FIELD4.value);
    why += isEmpty6(Lit.FIELD5.value);
    why += isEmpty7(Lit.FIELD6.value);
    why += isEmpty8(Lit.Country.value);
    why += isEmpty9(Lit.FIELD7.value);
    why += isEmpty10(Lit.FIELD9.value);
    if (why != "") {
       alert(why);
       return false;
    }
return true;
}

// full name check

function isEmpty1(strng) {
var error = "";
  if (strng.length == 0) {
     error = "You did not enter your Full Name.\n"
  }
return error;     
}

//  title check

function isEmpty2(strng) {
var error = "";
  if (strng.length == 0) {
     error = "You did not enter your Title.\n"
  }
return error;     
}

// company name check

function isEmpty3(strng) {
var error = "";
  if (strng.length == 0) {
     error = "You did not enter your Company Name.\n"
  }
return error;     
}

// address check

function isEmpty4(strng) {
var error = "";
  if (strng.length == 0) {
     error = "Please enter your Address.\n"
  }
return error;     
}

// city check

function isEmpty5(strng) {
var error = "";
  if (strng.length == 0) {
     error = "Please provide your City.\n"
  }
return error;     
}

// state Check

function isEmpty6(strng) {
var error = "";
  if (strng.length == 0) {
     error = "Please enter your State.\n"
  }
return error;     
}

// zip check

function isEmpty7(strng) {
var error = "";
  if (strng.length == 0) {
     error = "Please enter your Zip Code.\n"
  }
return error;     
}

// country check

function isEmpty8(strng) {
var error = "";
  if (strng.length == 0) {
     error = "Please enter your Country.\n"
  }
return error;     
}

// phone number check

function isEmpty9(strng) {
var error = "";
  if (strng.length == 0) {
     error = "Please provide your Phone Number.\n"
  }
return error;     
}

// email check

function isEmpty10(strng) {
var error = "";
  if (strng.length == 0) {
     error = "Please enter your email address.\n"
  }
return error;     
}
