<!--
function isChecked(object) {
    if (object.checked) return true;
    else return false;
}
// Begin - validate the form fields
function Validate(theForm)
{
  if (theForm.Name.value == "")
  {
    alert("Please enter your \"Name\".");
    theForm.Name.focus();
    return (false);
  }
  if (theForm.Address.value == "")
  {
    alert("Please enter your \"Address\".");
    theForm.Address.focus();
    return (false);
  }
  if (theForm.City.value == "")
  {
    alert("Please enter your \"City\".");
    theForm.City.focus();
    return (false);
  }
/*  if (theForm.Province_State.value == "")
  {
    alert("Please enter your \"State/Province\".");
    theForm.Province_State.focus();
    return (false);
  }
*/
  if (theForm.Country.value == "")
  {
    alert("Please enter your \"Country\".");
    theForm.Country.focus();
    return (false);
  }
/*  if (theForm.Email.value == "")
  {
    alert("Please enter your \"Email\".");
    theForm.Email.focus();
    return (false);
  }
*/
  // start - count the number of travel guide checkboxes that are checked ----------------
	var GuideTotal = 0;
	var max = theForm.Guide.length;
	//start incrementing after the operatorType hidden field
	for (var idx = 0; idx < max; idx++) {
		if (eval("theForm.Guide.Guide[" + idx + "].checked") == true) {
		    GuideTotal += 1;
		   }
	}
  if (GuideTotal == 0)
  {
    alert("Please select at least one \"Travel Guide\" checkbox");
    theForm.Guide[0].focus();
	return (false);
  }
  else if (theForm.Guide[1].checked && theForm.Guide[2].checked) {
  	alert("Please select only ONE of either the \"Accommodation\" or \"Campground\" Guide checkboxes.");
    theForm.Guide[1].focus();
	return (false);
  }
  // end - travel guide checkbox count ----------------------------------------------------
  
  if (isChecked(theForm.Add_To_Mailing_List[0]) != true && isChecked(theForm.Add_To_Mailing_List[1]) != true)
  {
    alert("Please indicate whether you would like to be added to Travel Alberta's mailing list to receive more information in the future about tourism in Alberta.");
    theForm.Add_To_Mailing_List[0].focus();
	return (false);
  }
  if (isChecked(theForm.Contact_For_Survey[0]) != true && isChecked(theForm.Contact_For_Survey[1]) != true)
  {
    alert("Please indicate whether you would be willing to participate in a survey to help Alberta market itself as a tourism destination.");
    theForm.Contact_For_Survey[0].focus();
	return (false);
  }
}
// End - validate the form fields
//-->