
 function validateEDC()
 {
  
  if(document.edcform.company.value=="")
   {
    alert("Exhibiting Company must be specified.")
	return false;
	}
   if(document.edcform.booth_num.value=="")
   {
    alert("Booth Numbers must be specified.")
	return false;
	}
  if(document.edcform.contractor.value=="")
   {
    alert("Exhibitor Appointed Contractor must be specified.")
	return false;
	}	
  if(document.edcform.contact.value=="")
   {
    alert("Primary Contact must be specified.")
	return false;
	}	
if(document.edcform.address.value=="")
   {
    alert("Address must be specified.")
	return false;
	}
if(document.edcform.city.value=="")
   {
    alert("City must be specified.")
	return false;
	}
if(document.edcform.state.value=="")
   {
    alert("State must be specified.")
	return false;
	}
if(document.edcform.zip.value=="")
   {
    alert("Zip must be specified.")
	return false;
	}
if(document.edcform.phone.value=="")
   {
    alert("Phone must be specified.")
	return false;
	}
if(document.edcform.email.value=="")
   {
    alert("E-mail must be specified.")
	return false;
	} 
if(document.edcform.altphone.value=="")
   {
    alert("Phone/beeper for Emergencies must be specified.")
	return false;
	}
	
if(document.edcform.agreement.checked == false)
   {
    alert("Checkbox must be check to show that rules and regulations has been acknowledged.")
	return false;
	}
	
if(document.edcform.user_name.value=="")
   {
    alert("Your Full Name must be specified.")
	return false;
	}	
if(document.edcform.user_email.value=="")
   {
    alert("Your E-mail Address must be specified.")
	return false;
	}	
	
return true;
	
  }



 function valgiveaway()
 {
    if(document.giveawayform.company.value=="")
   {
    alert("Exhibiting Company must be specified.")
	return false;
	}
   if(document.giveawayform.booth_num.value=="")
   {
    alert("Booth Numbers must be specified.")
	return false;
	}
 
if(document.giveawayform.contactfax.value=="")
   {
    alert("Contact Fax Number must be specified.")
	return false;
	}
if(document.giveawayform.email.value=="")
   {
    alert("E-mail must be specified.")
	return false;
	} 
		
 if((document.giveawayform.giveaway[0].checked==false) && (document.giveawayform.giveaway[1].checked==false))
   {
   alert("Please specify if there will be Drawings, Giveaway Items, or Contests at this booth?")
   return false;
   }	
	
if(document.giveawayform.agreement.checked == false)
   {
    alert("Checkbox must be check to show that rules and regulations has been acknowledged.")
	return false;
	}
	
if(document.giveawayform.user_name.value=="")
   {
    alert("Your Full Name must be specified.")
	return false;
	}	
 return true;	
  }
  
  
function validateInd()
{
	
	
  //if((document.Industry.approval.checked==false) && (document.Industry.assistance.checked==false))
   //{
   // alert("Please check if assistance or approval is needed from AUA.")
	//return false;
	//}	
	
	if((document.Industry.service[0].checked == false) && (document.Industry.service[1].checked == false))
	{
	 alert("Please check if assistance or approval is needed from AUA.")
	return false;
	}
	else
	{
	
	if(document.Industry.service[0].checked == true)
	 {
	
	    if((document.Industry.Staff_Meeting.checked==false) && (document.Industry.Hospitality_Suite.checked==false)&& (document.Industry.Social_Function.checked==false)&& (document.Industry.Advisory_Board.checked==false)&& (document.Industry.Focus_Group.checked==false)&& (document.Industry.Investigator_Meeting.checked==false))
          {
          alert("Type of Function must be specified.")
	      return false;
	      }	
    	
    	
	    if((document.Industry.Conference.checked==false) && (document.Industry.Reception.checked==false)&& (document.Industry.U_Shape.checked==false)&& (document.Industry.Theater.checked==false)&& (document.Industry.Classroom.checked==false)&& (document.Industry.Hollow_Square.checked==false)&& (document.Industry.Banquet.checked==false)&& (document.Industry.Head_Table.checked==false))
         {
          alert("Room Set-Up Requirements must be specified.")
	      return false;
	     }	
	     
	     
	    if((document.Industry.pref1.value=="") && (document.Industry.pref2.value==""))
	    {
	    alert("Hotel preference must be specified.")
	      return false;
	    
	    }
	     
	     
	     
	     
	  }
	
	
	}
	
	
	
	if(document.Industry.company.value=="")
   {
    alert("Exhibiting Company Name must be specified.")
	return false;
	}	
	
	if(document.Industry.contact.value=="")
   {
    alert("Contact Person must be specified.")
	return false;
	}	
	
	
	
   if(document.Industry.phone.value=="")
   {
    alert("Phone must be specified.")
	return false;
	}
	if(document.Industry.email.value=="")
   {
    alert("E-mail must be specified.")
	return false;
	}	
	
	if(document.Industry.cell.value=="")
   {
    alert("On-Site Contact Cell Phone must be specified.")
	return false;
	}	
	
	
	
	
	if(document.Industry.functionname.value=="")
   {
    alert("Function Name must be specified.")
	return false;
	}	
	
	
	if(document.Industry.functioncount.value=="")
   {
    alert("Number of Participants must be specified.")
	return false;
	}	
	if(document.Industry.functiondt.value=="")
   {
    alert("Date of Function must be specified.")
	return false;
	}	
	
	if(document.Industry.functionstart.value=="")
   {
    alert("Function Start time must be specified.")
	return false;
	}	
	
	
	
	return true;
}



function valactivity()
{
	
  if(document.activity.company.value=="")
   {
	 alert("Exhibiting Company must be specified.")
	 return false;
   }
	
   if(document.activity.booth_num.value=="")
   {
    alert("Booth Numbers must be specified.")
	return false;
	}
 
if(document.activity.contactfax.value=="")
   {
    alert("Contact Fax Number must be specified.")
	return false;
	}
if(document.activity.email.value=="")
   {
    alert("E-mail must be specified.")
	return false;
	} 	


if((document.activity.boothact[0].checked==false) && (document.activity.boothact[1].checked==false))
   {
   alert("Please specify if there will be a presentation at this booth?")
   return false;
   }	

	
	
  if(document.activity.boothact[0].checked== true)
	  {
  if((document.activity.Speaker.checked == false) && (document.activity.Video.checked == false) && (document.activity.Surgery.checked == false) && (document.activity.other.value=="")) 
		 {
		  alert("Please select a type of presentation.")
		  return false;
		 }
	   if(document.activity.DPresentation.value =="")
	    {
		 alert("Description of the Presentation(s) or Activities must be specified.")
		 return false;
		}
		  
	  }
	
if(document.activity.agreement.checked == false)
   {
    alert("Checkbox must be check to show that rules and regulations has been acknowledged.")
	return false;
	}
	
if(document.activity.user_name.value=="")
   {
    alert("Your Full Name must be specified.")
	return false;
	}	
return true;
 
}


function validateapprovalfrm()
{
if(document.approvalfrm.company.value=="")
   {
    alert("Company name must be specified.")
	return false;
	}	
if(document.approvalfrm.contact.value=="")
   {
    alert("Contact must be specified.")
	return false;
	}
if(document.approvalfrm.title.value=="")
   {
    alert("Title must be specified.")
	return false;
	}
if(document.approvalfrm.address1.value=="")
   {
    alert("Address 1 must be specified.")
	return false;
	}
if(document.approvalfrm.city.value=="")
   {
    alert("City must be specified.")
	return false;
	}
if(document.approvalfrm.state.value=="")
   {
    alert("State must be specified.")
	return false;
	}
if(document.approvalfrm.country.value=="")
   {
    alert("Country must be specified.")
	return false;
	}
if(document.approvalfrm.zip.value=="")
   {
    alert("ZIP/Postal code must be specified.")
	return false;
	}
if(document.approvalfrm.phone.value=="")
   {
    alert("Telephone must be specified.")
	return false;
	}
if(document.approvalfrm.fax.value=="")
   {
    alert("Fax must be specified.")
	return false;
	}
if(document.approvalfrm.email.value=="")
   {
    alert("E-mail address must be specified.")
	return false;
	}
if(document.approvalfrm.cell.value=="")
   {
    alert("On-site contact cell phone must be specified.")
	return false;
	}
if(document.approvalfrm.functionname.value=="")
   {
    alert("Function name must be specified.")
	return false;
	}
if(document.approvalfrm.attendee.value=="")
   {
    alert("Number of attendee must be specified.")
	return false;
	}
if(document.approvalfrm.day_date.value=="")
   {
    alert("Day/Date must be specified.")
	return false;
	}
if(document.approvalfrm.stime.value=="")
   {
    alert("Start time must be specified.")
	return false;
	}
if(document.approvalfrm.etime.value=="")
   {
    alert("End time must be specified.")
	return false;
	}
if(document.approvalfrm.functiontype.value=="")
   {
    alert("Type of Function must be specified.")
	return false;
	}
return true;
}


function radiocheck(obj)
{
for(var i = 0; i < obj.length; i++)
   {
	if(obj[i].checked) 
	 return false; 
   }
return true;
}


function validatespacefrm()
{

if(document.spacefrm.company.value=="")
   {
    alert("Company name must be specified.")
	return false;
	}	
if(document.spacefrm.contact.value=="")
   {
    alert("Contact must be specified.")
	return false;
	}
if(document.spacefrm.title.value=="")
   {
    alert("Title must be specified.")
	return false;
	}
if(document.spacefrm.address1.value=="")
   {
    alert("Address 1 must be specified.")
	return false;
	}
if(document.spacefrm.city.value=="")
   {
    alert("City must be specified.")
	return false;
	}
if(document.spacefrm.state.value=="")
   {
    alert("State must be specified.")
	return false;
	}
if(document.spacefrm.country.value=="")
   {
    alert("Country must be specified.")
	return false;
	}
if(document.spacefrm.zip.value=="")
   {
    alert("ZIP/Postal code must be specified.")
	return false;
	}
if(document.spacefrm.phone.value=="")
   {
    alert("Telephone must be specified.")
	return false;
	}
if(document.spacefrm.fax.value=="")
   {
    alert("Fax must be specified.")
	return false;
	}
if(document.spacefrm.email.value=="")
   {
    alert("E-mail address must be specified.")
	return false;
	}
if(document.spacefrm.cell.value=="")
   {
    alert("On-site contact cell phone must be specified.")
	return false;
	}
if(document.spacefrm.functionname.value=="")
   {
    alert("Function name must be specified.")
	return false;
	}
if(document.spacefrm.attendee.value=="")
   {
    alert("Number of attendees must be specified.")
	return false;
	}
if(document.spacefrm.day_date.value=="")
   {
    alert("Day/Date must be specified.")
	return false;
	}
if(document.spacefrm.stime.value=="")
   {
    alert("Start time must be specified.")
	return false;
	}
if(document.spacefrm.etime.value=="")
   {
    alert("End time must be specified.")
	return false;
	}
if(document.spacefrm.functiontype.value=="")
   {
    alert("Type of Function must be specified.")
	return false;
	}
	
//if(document.spacefrm.headcount.value=="")
  // {
   // alert("Head table count must be specified.")
	//return false;
	//}
	
	
	
if(document.spacefrm.estimated_FB.value=="")
   {
    alert("Estimated Food & Beverage must be specified.")
	return false;
	}

if ( ( document.spacefrm.breakfast[0].checked == false )&& ( document.spacefrm.breakfast[1].checked == false ) )
    {
        alert("Breakfast must be specified.");
        return false;
    }
if (( document.spacefrm.reception[0].checked == false )&& ( document.spacefrm.reception[1].checked == false ) )
    {
        alert("Reception must be specified.");
        return false;
    }
if (( document.spacefrm.conference[0].checked == false )&& ( document.spacefrm.conference[1].checked == false ) )
    {
        alert("Conference must be specified.");
        return false;
    }
if (( document.spacefrm.lunch[0].checked == false )&& ( document.spacefrm.lunch[1].checked == false ) )
    {
        alert("Lunch must be specified.");
        return false;
    }
if (( document.spacefrm.snacks[0].checked == false )&& ( document.spacefrm.snacks[1].checked == false ) )
    {
        alert("Snacks must be specified.");
        return false;
    }
if (( document.spacefrm.dinner[0].checked == false )&& ( document.spacefrm.dinner[1].checked == false ) )
    {
        alert("Dinner must be specified.");
        return false;
    }
if(document.spacefrm.av.value=="")
   {
    alert("A/V needs must be specified.")
	return false;
	}
if(document.spacefrm.estimated_FB.value=="")
   {
    alert("Estimated food and beverage must be specified.")
	return false;
	}



if(radiocheck(spacefrm.choice1))
  {
    alert("Please specify your 1st choice of hotel.")
    return false;
   }
   
  //if (document.spacefrm.choice1[4].checked == true )
  //  {
  //      if(document.spacefrm.other1.value == "")
  //      {
   //     alert("You have selected other on your 1st choice. Please specify the name of the hotel.");
  //      return false;
    //    }
   // } 
    
 if(radiocheck(spacefrm.choice2))
  {
    alert("Please specify your 2nd choice of hotel.")
    return false;
   }
   
// if (document.spacefrm.choice2[4].checked == true )
  //  {
   //     if(document.spacefrm.other2.value == "")
  //      {
   //     alert("You have selected other on your 2nd choice. Please specify the name of the hotel.");
   //     return false;
  //      }
  //  }   
   
   
  if(radiocheck(spacefrm.choice3))
  {
    alert("Please specify your 3rd choice of hotel.")
    return false;
   }
   
 //  if (document.spacefrm.choice3[4].checked == true )
//    {
  //      if(document.spacefrm.other3.value == "")
  //      {
  //      alert("You have selected other on your 3rd choice. Please specify the name of the hotel.");
   //     return false;
  //      }
  //  } 
   
   
  if(radiocheck(spacefrm.choice4))
  {
    alert("Please specify your 4th choice of hotel.")
    return false;
   } 

 // if (document.spacefrm.choice4[4].checked == true )
  //  {
  //      if(document.spacefrm.other4.value == "")
  //      {
  //      alert("You have selected other on your 4th choice. Please specify the name of the hotel.");
  //      return false;
 //       }
  //  } 
 
		
return true;
}



function validateancillaryfrm()
{
if(document.ancillaryfrm.company.value=="")
   {
    alert("Organization name must be specified.")
	return false;
	}	
if(document.ancillaryfrm.contact.value=="")
   {
    alert("Contact must be specified.")
	return false;
	}
if(document.ancillaryfrm.title.value=="")
   {
    alert("Title must be specified.")
	return false;
	}
if(document.ancillaryfrm.address1.value=="")
   {
    alert("Address 1 must be specified.")
	return false;
	}
if(document.ancillaryfrm.city.value=="")
   {
    alert("City must be specified.")
	return false;
	}
if(document.ancillaryfrm.state.value=="")
   {
    alert("State must be specified.")
	return false;
	}
if(document.ancillaryfrm.country.value=="")
   {
    alert("Country must be specified.")
	return false;
	}
if(document.ancillaryfrm.zip.value=="")
   {
    alert("ZIP/Postal code must be specified.")
	return false;
	}
if(document.ancillaryfrm.phone.value=="")
   {
    alert("Telephone must be specified.")
	return false;
	}
if(document.ancillaryfrm.fax.value=="")
   {
    alert("Fax must be specified.")
	return false;
	}
if(document.ancillaryfrm.email.value=="")
   {
    alert("E-mail address must be specified.")
	return false;
	}

if(document.ancillaryfrm.functionname.value=="")
   {
    alert("Function name must be specified.")
	return false;
	}
if(document.ancillaryfrm.purpose.value=="")
   {
    alert("Purpose must be specified.")
	return false;
	}

if(document.ancillaryfrm.day_date.value=="")
   {
    alert("Day/Date must be specified.")
	return false;
	}
if(document.ancillaryfrm.stime.value=="")
   {
    alert("Start time must be specified.")
	return false;
	}
if(document.ancillaryfrm.etime.value=="")
   {
    alert("End time must be specified.")
	return false;
	}
	
if(document.ancillaryfrm.setup.value=="")
   {
    alert("Set-up time must be specified.")
	return false;
	}

if(document.ancillaryfrm.strike.value=="")
   {
    alert("Strike time must be specified.")
	return false;
	}	
	
if(document.ancillaryfrm.attendee.value=="")
   {
    alert("Number of attendee must be specified.")
	return false;
	}	

	
if(document.ancillaryfrm.functiontype.value=="")
   {
    alert("Type of Function must be specified.")
	return false;
	}

	
	
if(radiocheck(ancillaryfrm.choice1))
  {
    alert("Please specify your 1st choice of hotel.")
    return false;
   }	
if(radiocheck(ancillaryfrm.choice2))
  {
    alert("Please specify your 2nd choice of hotel.")
    return false;
   }	
	
if(radiocheck(ancillaryfrm.choice3))
  {
    alert("Please specify your 3rd choice of hotel.")
    return false;
   }		
	
return true;
}

function validateamik()
{
 if(radiocheck(amikform.member))
  {
  alert("Please specify if you are a member")
  return false;
  }
  
 
   if (document.amikform.member[0].checked == true )
     {
        if(document.amikform.auaid.value == "")
        {
        alert("If you are a member. Please specify your AUA ID.");
        return false;
        }
    } 
  
 
//   if(document.amikform.auaid.value =="")
 // {
  // alert("AUA ID must be specified.")
  // return false;
 // }
  
  
  if(document.amikform.name.value =="")
  {
   alert("Name must be specified.")
   return false;
  }
  
   if(document.amikform.address.value =="")
  {
   alert("Address must be specified.")
   return false;
  }
  
   if(document.amikform.city.value =="")
  {
   alert("City must be specified.")
   return false;
  }
  
   if(document.amikform.state.value =="")
  {
   alert("State must be specified.")
   return false;
  }
  
   if(document.amikform.zip.value =="")
  {
   alert("Zip must be specified.")
   return false;
  }
  
  if(document.amikform.country.value =="")
  {
   alert("Country must be specified.")
   return false;
  }
 
 if(radiocheck(amikform.addtype))
  {
  alert("Please specify if your address is Home or Office.")
  return false;
  }
 
  if(document.amikform.phone.value =="")
  {
   alert("Phone must be specified.")
   return false;
  }
  
   if(document.amikform.email.value =="")
  {
   alert("Email must be specified.")
   return false;
  }

return true;
}








