function checkvendorscript()
	{
		// Check for valid input
		if (!document.packageform.name.value){
			alert('Please enter your name.');
			document.packageform.name.focus();
			return false;
		}
        
		var testresults;
		var str=document.packageform.email.value;
		var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i;
		if (filter.test(str))
			testresults=true;
			else{
			alert('Please type in a valid email.');
			document.packageform.email.focus();
			testresults=false;
			return (testresults);
		}
		if (document.packageform.confirmemail.value != document.packageform.email.value){
			alert('The emails do not match.');
			document.packageform.confirmemail.focus();
            
			return false;
        
		}
        
        
		if (!document.packageform.phone.value){
			alert('Please enter your phone number.');
			
			document.packageform.phone.focus();
			
			return false;
		
		}
        
        
		if (!document.packageform.event_type.value){
			
			alert('Please enter the event type.');
			
			document.packageform.event_type.focus();
			
			return false;
		
		}
        
        
		//date checker if the Undecided checkbox isn't checked
		
		if(!document.packageform.undecided.checked){
			
			if (document.packageform.month.value=="Select"){
				
				alert('Please select the month for the event.');
				
				document.packageform.month.focus();
				
				return false;
			
			}


			
			if (document.packageform.day.value=="Select"){
				
				alert('Please select the day for the event.');
				
				document.packageform.day.focus();
				
				return false;
			
			}


			
			if (document.packageform.year.value=="Select"){
				
				alert('Please select the year for the event.');
				
				document.packageform.year.focus();
				
				return false;
	
			
			}
		
		}

        
		if (!document.packageform.package_type[0].checked){
            
			if (document.packageform.vendor1.value=="-Select-"){
                
				alert('You must select 5 vendors for this package');
                
				document.packageform.vendor1.focus();
				
				return false;
            
			}
                
            
			if (document.packageform.vendor2.value=="-Select-"){
                
				alert('You must select 5 vendors for this package');
                
				document.packageform.vendor2.focus();
  				
				return false;
            
			}

            
			if (document.packageform.vendor3.value=="-Select-"){
                
				alert('You must select 5 vendors for this package');
                
				document.packageform.vendor3.focus();
				
				return false;
            
			}                    

            
			if (document.packageform.vendor4.value=="-Select-"){
                
				alert('You must select 5 vendors for this package');
                
				document.packageform.vendor4.focus();
				
				return false;
            
			}

            
			if (document.packageform.vendor5.value=="-Select-"){
                
				alert('You must select 5 vendors for this package');
                
				document.packageform.vendor5.focus();
				
				return false;
            
			}
        
		}
        
		// looks like everything is good
		return applyCustomPackages2();
	}

	function showVendors()
{

		document.getElementById('vendors').style.display = 'block';

	}


	function hideVendors()
{

		document.getElementById('vendors').style.display = 'none';

	}

