function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function enq_validator(theForm)
{
	// check name
	if (theForm.name.value == "")
	{
	alert("Please tell us your name.");
	theForm.name.focus();
	return (false);
	}
	
	// check company
	if (theForm.company.value == "")
	{
	alert("Please state your company name.");
	theForm.company.focus();
	return (false);
	}
	
	// check company
	if (theForm.company.value == "")
	{
	alert("Please state your company name.");
	theForm.company.focus();
	return (false);
	}
	
	// check if email field is blank
	if (theForm.email.value == "")
	{
	alert("Please enter your email address.");
	theForm.email.focus();
	return (false);
	}
	
	
	// test if valid email address, must have @ and .
	var checkEmail = "@.";
	var checkStr = theForm.email.value;
	var EmailValid = false;
	var EmailAt = false;
	var EmailPeriod = false;
	for (i = 0;  i < checkStr.length;  i++)
	{
	ch = checkStr.charAt(i);
	for (j = 0;  j < checkEmail.length;  j++)
	{
	if (ch == checkEmail.charAt(j) && ch == "@")
	EmailAt = true;
	if (ch == checkEmail.charAt(j) && ch == ".")
	EmailPeriod = true;
		  if (EmailAt && EmailPeriod)
			break;
		  if (j == checkEmail.length)
			break;
		}
		// if both the @ and . were in the string
	if (EmailAt && EmailPeriod)
	{
			EmailValid = true
			break;
		}
	}
	if (!EmailValid)
	{
	alert("Please enter a valid email address.");
	theForm.email.focus();
	return (false);
	}
	
	// check tel
	if (theForm.tel.value == "")
	{
	alert("Please leave your phone number.");
	theForm.tel.focus();
	return (false);
	}
	
	// check comments
	if (theForm.comments.value == "")
	{
	alert("Please leave a comment.");
	theForm.comments.focus();
	return (false);
	}
	
	// check if email field is blank
	if (theForm.email.value == "")
	{
	alert("Please enter your email address.");
	theForm.email.focus();
	return (false);
	}
	
	// require that at least one checkbox be checked
	var checkSelected = false;
	for (i = 0;  i < theForm.checkbox.length;  i++)
	{
	if (theForm.checkbox[i].checked)
	checkSelected = true;
	}
	if (!checkSelected)
	{
	alert("Please select at least one of the \"Interest\" options.");
	return (false);
	}
}