function verifyRegForm()
{
  if (document.TheForm.salutation.value.length == 0) {
	alert("Please select the title.");
	document.TheForm.salutation.focus();
	return false;
  }

  if (document.TheForm.firstname.value.length == 0) {
	alert("Please enter your first name.");
	document.TheForm.firstname.focus();
	return false;
  }

  if (document.TheForm.lastname.value.length == 0) {
	alert("Please enter your Family name.");
	document.TheForm.lastname.focus();
	return false;
  }

	/*
  if (document.TheForm.company.value.length == 0) {
	alert("Please enter your company name.");
	document.TheForm.company.focus();
	return false;
  }

  if (document.TheForm.designation.value.length == 0) {
	alert("Please enter your designation.");
	document.TheForm.designation.focus();
	return false;
  }
	*/

  if (document.TheForm.address.value.length == 0) {
	alert("Please enter your mailing address.");
	document.TheForm.address.focus();
	return false;
  }

  if (document.TheForm.city.value.length == 0) {
	alert("Please enter the city name.");
	document.TheForm.city.focus();
	return false;
  }

  if (document.TheForm.zip.value.length == 0) {
	alert("Please enter the zip code.");
	document.TheForm.zip.focus();
	return false;
  }

  if (document.TheForm.country.value.length == 0) {
	alert("Please select your country.");
	document.TheForm.country.focus();
	return false;
  }

  if (document.TheForm.tel_cc.value.length == 0) {
	alert("Please select your telephone number country code.");
	document.TheForm.tel_cc.focus();
	return false;
  }
  fldValue = TheForm.tel_cc.value
  if ( fldValue != parseInt(fldValue) ) 
  {
	alert('Please enter the country code in numeric values only.')
	document.TheForm.tel_cc.focus();
	return false;
  }

  if (document.TheForm.tel_ac.value.length != 0) {
  fldValue = TheForm.tel_ac.value
  if ( fldValue != parseInt(fldValue) ) 
  {
	alert('Please enter the area code in numeric values only.')
	document.TheForm.tel_ac.focus();
	return false;
  }
  }

  if (document.TheForm.tel_no.value.length == 0) {
	alert("Please enter your telephone number.");
	document.TheForm.tel_no.focus();
	return false;
  }
  fldValue = TheForm.tel_no.value
  if ( fldValue != parseInt(fldValue) ) 
  {
	alert('Please enter the telephone number in numeric values only.');
	document.TheForm.tel_no.focus();
	return false;
  }
  
  if (document.TheForm.email.value.length == 0) {
	alert("Please enter your email address.");
	document.TheForm.email.focus();
	return false;
  } else
  	{
  		if (document.TheForm.email.value.charAt(0) == " ")
  		{
  		  alert("The first character of Email field cannot be space.");
		  document.TheForm.email.focus();
   		  return false;
   		} else
   		    {
   		     	var email_v = document.TheForm.email.value;
		    	if (email_v.search('@') == -1) {
		     	   alert("Invalid Email Address without '@'.");
		           document.TheForm.email.focus();
		           return false;
			}
   		}
  	}

  if (!document.TheForm.Topic[0].checked && !document.TheForm.Topic[1].checked 
  && !document.TheForm.Topic[2].checked && !document.TheForm.Topic[3].checked 
  && !document.TheForm.Topic[4].checked && !document.TheForm.Topic[5].checked
  && !document.TheForm.Topic[6].checked)
  {
	alert("Please select one of the Abstract topic.");
	document.TheForm.Topic[0].focus();
	return false;
  }


//  if (document.TheForm.Topic[10].checked && document.TheForm.TopicOthers.value.length == 0)
//  {
//  	alert("Please enter the Topic name specified under 'Others'.");
//	document.TheForm.TopicOthers.focus();
//	return false;  
//  }

  //if (!document.TheForm.PresentType[0].checked && !document.TheForm.PresentType[1].checked
  //&& !document.TheForm.PresentType[2].checked && !document.TheForm.PresentType[3].checked ) 

  if (!document.TheForm.PresentType[0].checked && !document.TheForm.PresentType[1].checked && !document.TheForm.PresentType[2].checked)
  {
	alert("Please select the presentation preference.");
	document.TheForm.PresentType[0].focus();
	return false;
  }

  if (document.TheForm.AbstractTitle.value.length == 0) {
	alert("Please enter the Abstract title.");
	document.TheForm.AbstractTitle.focus();
	return false;
  }

  if (document.TheForm.PresentingAuthor.value.length == 0) {
	alert("Please enter the presenting Author.");
	document.TheForm.PresentingAuthor.focus();
	return false;
  }

  if (document.TheForm.Authors.value.length == 0) {
	alert("Please enter Authors's name");
	document.TheForm.Authors.focus();
	return false;
  }

  if (document.TheForm.Institution.value.length == 0) {
	alert("Please enter the name of your Institution.");
	document.TheForm.Institution.focus();
	return false;
  }
  
  
  if (document.TheForm.InstitutionCity.value.length == 0) {
	alert("Please enter the city name where your Institution is located.");
	document.TheForm.InstitutionCity.focus();
	return false;
  }

  if (document.TheForm.InstitutionCountry.value.length == 0) {
	alert("Please select the country where your Institution is located.");
	document.TheForm.InstitutionCountry.focus();
	return false;
  }

  if (document.TheForm.AbstractBody.value.length == 0) {
	alert("Please enter the Abstract information.");
	document.TheForm.AbstractBody.focus();
	return false;
  }

  if (CountWords(document.TheForm.AbstractBody, false, false) == 0)
  {
  	alert("Please enter the Abstract information.");
	document.TheForm.AbstractBody.focus();
	return false; 
  }
  
  if (CountWords(document.TheForm.AbstractBody, false, false) > 300)
  {
  	alert("Please limit to a maximum of 300 words for abstract submission.");
	document.TheForm.AbstractBody.focus();
	return false; 
  }

  return true;
}
