 //------------------------------------------------------------------/
String.prototype.trim = function() {
a = this.replace(/^\s+/, '');
return a.replace(/\s+$/, '');
};

function m_sfcon (u) {
pre = "mail";
url = pre + "to:" + u;
document.location.href = url + "@twinpillars.net";
}

function check_email(email) {

	var regexps =new RegExp(/^[a-zA-Z0-9]+([\_\-\.]*[a-zA-Z0-9]+[\_\-]?)*@[a-zA-Z0-9]+([\_\-]?[a-zA-Z0-9]+)*\.+([\-\_]?[a-zA-Z0-9])+(\.?[a-zA-Z0-9]+)*$/)
	if (regexps.test(email) || (email == '')) {
		return 1;
	}	else {
		return 0; 
	}
}
