	// general-purpose popup
	function checkContactUs(theform)  {
		var msg="", thetitle, thefirstname, thelastname;
		thetitle = trim(theform.title.value);
		if (thetitle=="" || thetitle=="title..") msg = "Your title..\n";
		thefirstname = trim(theform.first_name.value);
		if (thefirstname=="" || thefirstname=="first name..") msg = msg + "Your first name..\n";
		thelastname = trim(theform.last_name.value);
		if (thelastname=="" || thelastname=="surname..") msg = msg + "Your surname..\n";
		emailaddress = trim(theform.email.value);
		if (emailaddress==""||((emailaddress.indexOf("@") == -1)||emailaddress.indexOf(".") == -1))  { 
			msg=msg+"Your email address is either missing or in an invalid format...\n";
			}
		//if (theform.contact_method.selectedIndex==0) msg = msg + "The preferred method of contacting you..\n";
		if (trim(theform.day_tel.value)=="") msg = msg + "Your daytime/mobile telephone no..\n";
		if (theform.wherehear.selectedIndex==0) msg = msg + "Where you heard about us..\n";
		if (msg!="")  {
			alert("Please supply this missing information: \n\n" + msg);
			return false;		
			}
		else return true;
		}



