// ActionScript Document
function checkform(contact)
{
	var found=0;
	
	 if (contact.name.value=='')
  {
    alert("Please enter your Name.");
    contact.name.focus();
    return (false);
  }  
     
	  if (contact.company.value == "")
  {
    alert("Please enter your your Company Name.");
    contact.company.focus();
    return (false);
  }
  
   if (contact.email.value == "")
  {
    alert("Please enter your Email Id.");
    contact.email.focus();
    return (false);
  }
  
  if (contact.email.value.indexOf ('@',0) == -1 || contact.email.value.indexOf ('.',0) == -1)
   {
    alert("Please enter valid Email Id.");
    contact.email.focus();
    return (false);
  }
      
   if (contact.phone.value=='')
  {
    alert("Please enter your phone number.");
    contact.phone.focus();
    return (false);
  }  
 if (contact.confrence.checked)
 {
	found=1; 
 }
   if (contact.seminar.checked)
 {
	found=1; 
 }
  if (contact.exibition.checked)
 {
	found=1; 
 }
  if (contact.dinner.checked)
 {
	found=1; 
 }
  if (contact.dinnerdance.checked)
 {
	found=1; 
 }
  /*if (contact.breakfast.checked)
 {
	found=1; 
 }
  if (contact.buffet.checked)
 {
	found=1; 
 }
  if (contact.canape.checked)
 {
	found=1; 
 }*/
  if (contact.other.checked)
 {
	found=1; 
 }
 if(!found)
 {
alert('Please  check at least one option from Event style list.' );
contact.confrence.focus();
return(false);
 }
   return (true);
}