<!--
function Validate(theForm){

if (theForm.first_name.value == "")	{
	alert("Please enter your First Name");
	theForm.first_name.focus();
	return (false);
	}

if (theForm.last_name.value == "")	{
	alert("Please enter your Last Name");
	theForm.last_name.focus();
	return (false);
	}


 // check country
if (theForm.country.value == 0)
{
    alert("Please select a Country");
    return false;
}
if (theForm.country.value < 0)
{
    alert("Please select a Country");
    return false;
}

 // check if numbers field is blank
if (theForm.phone.value == "")	{
	alert("Please enter your Phone number.");
	theForm.phone.focus();
	return (false);
	}
	
// check the length of the phone number..
if (theForm.phone.value.length < 10)	{
	alert("Your number appear to be too short");
	theForm.phone.focus();
	return (false);
	}


// check if EMail field is blank
 if (theForm.email.value == ""){
    alert("Please enter a value for the \"EMail\" field.");
    theForm.email.focus();
    return (false);
  }

  // test if valid EMail address, must have @ and .
  var checkEMail = "@.";
  var checkStr = theForm.email.value;
  var EMailValid = false;
  var EMailAt = false;
  var EMailPeriod = false;
  for (i = 0;  i < checkStr.length;  i++){
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkEMail.length;  j++){
      if (ch == checkEMail.charAt(j) && ch == "@")
        EMailAt = true;
      if (ch == checkEMail.charAt(j) && ch == ".")
        EMailPeriod = true;
	  if (EMailAt && EMailPeriod)
		break;
	  if (j == checkEMail.length)
		break;
	}

	// if both the @ and . were in the string
    if (EMailAt && EMailPeriod){
		EMailValid = true
		break;
	}
  }
  if (!EMailValid){
    alert("The \"EMail\" field must contain an \"@\" and a \".\".");
    theForm.email.focus();
    return (false);
  }

}


//-->