function test(opt_msg) {
  if (!opt_msg) {
    opt_msg = 'Poop!';
  }
  alert(opt_msg);
}

String.prototype.trim = function() {
	return this.replace(/^\s+|\s+$/g,"");
}
String.prototype.ltrim = function() {
	return this.replace(/^\s+/,"");
}
String.prototype.rtrim = function() {
	return this.replace(/\s+$/,"");
}

function validateTellMeMore() {
	var fm = document.getElementById('tell-me-more-form');
	var nf = document.getElementById('tell-me-more-name');
	var ef = document.getElementById('tell-me-more-email');
	//var tf = document.getElementById('tell-me-more-topic');
	var er_msg = '';
	var er = 0;
	// Name Validation
	if (nf.value.trim() == '') {
		er = 1;
		er_msg += 'Please fill in your name\n\r';
		//alert('Please fill in your name');
	}
	// Email Validation
	if (ef.value.trim() == '') {
		er = 1;
		//alert('Please fill in your email address');
		er_msg += 'Please fill in your email address\n\r';
	} else if (ef.value.indexOf('@') < 0 || ef.value.indexOf('.') < 0 || ef.value.length < 5) {
		er = 1;
		//alert('Please enter a valid email address');
		er_msg += 'Please enter a valid email address\n\r';
	}
	// Topic Selection
	//if (tf.options[tf.selectedIndex].value == '') {
	//	er = 1;
	//	alert('Please select a topic');
	//}
	// If no errors, submit the form!
	if (er == 0) {
		fm.submit();
	}
	else {
	  alert(er_msg);
	}
}