
function CheckRequestDetails(theForm)
{

  if (theForm.Salut.value == "")
  {
  	alert("Please select a title");
  	theForm.Salut.focus();
  	return(false);
  }

  if (theForm.FirstName.value == "")
  {
    alert("Please enter a value for the \"First Name\" field.");
    theForm.FirstName.focus();
    return (false);
  }

  if (theForm.LastName.value == "")
  {
    alert("Please enter a value for the \"Last Name\" field.");
    theForm.LastName.focus();
    return (false);
  }

  if (theForm.Jobtitle.value == "" )
  {
    alert("Please enter a value for the \"Job title\" field.");
    theForm.Jobtitle.focus();
    return (false);
  }

  if (theForm.Organization.value == "")
  {
    alert("Please enter a value for the \"Company/Org.\" field.");
    theForm.Organization.focus();
    return (false);
  }

  if (theForm.Address.value == "")
  {
    alert("Please enter a value for the \"Address\" field.");
    theForm.Address.focus();
    return (false);
  }

  if (theForm.City.value == "")
  {
    alert("Please enter a value for the \"City\" field.");
    theForm.City.focus();
    return (false);
  }

  if (theForm.State.value == "")
  {
    alert("Please enter a value for the \"State/Province\" field.");
    theForm.State.focus();
    return (false);
  }

  if (theForm.Country.value == "")
  {
    alert("Please enter a value for the \"Country\" field.");
    theForm.Country.focus();
    return (false);
  }

  if (theForm.Zip.value == "")
  {
    alert("Please enter a value for the \"Zip Code\" field.");
    theForm.Zip.focus();
    return (false);
  }

  if (theForm.Phone.value == "")
  {
    alert("Please enter a value for the \"Phone Number\" field.");
    theForm.Phone.focus();
    return (false);
  }

  if (theForm.Email.value == "")
  {
    alert("Please enter a value for the \"Email Address\" field.");
    theForm.Email.focus();
    return (false);
  }
 
  return (true);
};


function CheckBPAForm(theForm) {

	var strErrorMessage

	strErrorMessage = ''

	//BPA Questions
	if (theForm.BPA_HowLearned.value.length == 0) {
		strErrorMessage =  strErrorMessage + "\n * Please choose an option for question 1" 
		theForm.BPA_HowLearned.focus();
	}
	
	else if (theForm.PriorityCode.value.length == 0) {
		strErrorMessage = strErrorMessage + "\n * Please enter a registration code"
		theForm.PriorityCode.focus();
	}

	else if (theForm.BPA_Function.value.length == 0) {
		strErrorMessage =  strErrorMessage + "\n * Please choose an option for question 2"
		theForm.BPA_Function.focus();
	}

	else if (theForm.BPA_Responsibility.value.length == 0) {
		strErrorMessage =  strErrorMessage + "\n * Please choose an option for question 3" 
		theForm.BPA_Responsibility.focus();
	}

	else if (theForm.BPA_Industry.value.length == 0) {
		strErrorMessage =  strErrorMessage + "\n * Please choose an option for question 4" 
		theForm.BPA_Industry.focus();
	}

	if (strErrorMessage != '') {
		alert(strErrorMessage);
		return (false);
	}

	return (true);

};


function CheckPressBPAForm(theForm) {

	var strErrorMessage

	strErrorMessage = ''

	//BPA Questions
	if (theForm.BPA_HowLearned.value.length == 0) {
		strErrorMessage =  strErrorMessage + "\n * Please choose an option for question 1" 
		theForm.BPA_HowLearned.focus();
	}
	
	else if (theForm.BPA_Responsibility.value.length == 0) {
		strErrorMessage =  strErrorMessage + "\n * Please choose an option for question 2" 
		theForm.BPA_Responsibility.focus();
	}

	else if (theForm.BPA_Industry.value.length == 0) {
		strErrorMessage =  strErrorMessage + "\n * Please choose an option for question 3" 
		theForm.BPA_Industry.focus();
	}

	if (strErrorMessage != '') {
		alert(strErrorMessage);
		return (false);
	}

	return (true);

};


