	function checkIt()
	{
	  // Make sure they fill in the name field
	  if (document.request_training.name.value.length<1) 
	  {
		document.request_training.name.select();
		document.request_training.name.focus();
		alert('Please enter your name.');
		return false;
	  }
	  
	  // Make sure they fill in the email_from address
	  if (document.request_training.email_from.value.length<1) 
	  {
		document.request_training.email_from.select();
		document.request_training.email_from.focus();
		alert('Please enter your email address.');
		return false;
	  }
	  
	 // Make sure they fill in the Country field
	 if (document.request_training.Country.selectedIndex == 0)
	 {  
		document.request_training.Country.focus();
		alert('Please enter your state or country.');
		return false;
	 }
	 

		//Make sure they fill in a valid email address	  
	  if (emailCheck(document.request_training.email_from.value) == false)
	  
	  {
	  	document.request_training.email_from.select();
		document.request_training.email_from.focus();
		alert('The email address you entered is not valid.  Please enter a valid email address');
		return false;
	  }
	}
	//  This method checks the email address they entered to make sure it's valid.
	//  It will return true if everything works right and false if it doesn't.
	function emailCheck (emailStr) 
	{
	  var emailPat=/^(.+)@(.+)$/
	  var specialChars="\\(\\)<>@,;:\\\\\\\"\\.\\[\\]"
	  var validChars="\[^\\s" + specialChars + "\]"
	  var quotedUser="(\"[^\"]*\")"
	  var ipDomainPat=/^\[(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\]$/
	  var atom=validChars + '+'
	  var word="(" + atom + "|" + quotedUser + ")"
	  var userPat=new RegExp("^" + word + "(\\." + word + ")*$")
	  var domainPat=new RegExp("^" + atom + "(\\." + atom +")*$")
	  var matchArray=emailStr.match(emailPat)
	  if (matchArray==null) 
	  {
	    return false
  	  }
	  var user=matchArray[1]
	  var domain=matchArray[2]
	  if (user.match(userPat)==null) 
	  {
        return false
  	  }	

	  var IPArray=domain.match(ipDomainPat)
	  if (IPArray!=null) 
	  {
	    for (var i=1;i<=4;i++) 
		{
	      if (IPArray[i]>255) 
		  {
		    return false
	      }
        }
        return true
      }

	  var domainArray=domain.match(domainPat)
	  if (domainArray==null) 
	  {
        return false
      }

	  var atomPat=new RegExp(atom,"g")
	  var domArr=domain.match(atomPat)
	  var len=domArr.length
	  if (domArr[domArr.length-1].length<2 || 
        domArr[domArr.length-1].length>3) 
	  {
  	  return false
  	  }


	  if (len<2) 
	  {
        //alert(errStr)
        return false
	  }

 	// If we've gotten this far, everything's valid!
	  return true;
	}
	

