function validate(theform)	{
	var returnval=true;
	var error_count=0;
	var error_msg="Please ensure that:\n\n";
	//var email_format_choice=false;
	//reg ex to validate email address
	re_email=/^[\w_\.\-]+@[\w\-]+\.[\w\-]+(\.[\w\-]+)?(\.[\w\-]+)?(\.[\w\-]+)?$/;
	re_url=/^http:\/\/$/;

	//if ((theform.email_format[0].checked) || (theform.email_format[1].checked))	{email_format_choice=true;}
	//if ((!theform.titler.options[theform.titler.selectedIndex].value) && (!theform.title_other.value)){error_count++; error_msg += error_count +'. You select your Title or enter an alternative\n'; returnval=false;}
	if (!theform.company.value){error_count++; error_msg += error_count +'. You enter the Name of your Company\n'; returnval=false;}
	if (!theform.contact_name.value){error_count++; error_msg += error_count +'. You enter your Contact Name\n'; returnval=false;}
	if (!re_email.test(theform.contact_email.value)){error_count++; error_msg += error_count +'. You enter a valid Contact Email Address\n'; returnval=false;}
	if (re_url.test(theform.website_url.value)){error_count++; error_msg += error_count +'. You enter the URL of your Website\n'; returnval=false;}
	if (!theform.web_type.value){error_count++; error_msg += error_count +'. You select the type of Website\n'; returnval=false;}
	//if (!email_format_choice){error_count++; error_msg += error_count +'. You choose your preferred Email Format\n'; returnval=false;}

	if (returnval == false)	{alert(error_msg);}

return returnval;
}
