<!--

function trim(mystr) 
{
  
  // Required for some broswers that return $1 when there is no input text
  if (mystr.replace(/\s /g,"") == "")
  	return "";
  new_str = mystr.replace(/^\s*([\s\S]*\S+)\s*$|^\s*$/,"$1");
  return new_str;
}

function check_form() {
	if (trim(document.contact_form.name.value)=='') {
		alert('Your name is required.');
		return false;
	}
	
	if (trim(document.contact_form.department.value)=='') {
		alert('PLease indicate which department you would like to make contact with.');
		return false;
	}

	if (trim(document.contact_form.email.value)=='') {
		alert('Please provide your email address to us.');
		return false;
	}
	
	if (trim(document.contact_form.country.value)=='') {
		alert('Please select your country from the list provided.');
		return false;
	}
	
	if (trim(document.contact_form.telephone.value)=='') {
		alert('Your telephone number is required.');
		return false;
	}
	
	if (trim(document.contact_form.question.value)=='') {
		alert('Please take a moment and provide us with a question or comment so we may better serve you.');
		return false;
	}

	return true;
}

//-->