function me() {
  try {
	var name = 'info'
	var place = 'dynamicsails.com'
	var text = name + '&#' + '64;' + place
	document.write('<a title="Send em' + 'ail" href="mai' + 'lto' + ':' + name + '&#' + '64;' + place + '">' + text + '</a>')
  }
  catch(e) {
	document.write('!error!')
  }
}

//validate, submit and hide email form if user presses button
function mail_submit() {
	try {
		if (document.form_contact.name.value == '') alert('Please enter your name!')
		else if (document.form_contact.body.value == '') alert('Please enter a message!')
		else if (document.form_contact.phone.value == '' && document.form_contact.email.value == '') alert('Please enter your phone number or email!')
		else {
			document.form_contact.action = 'mai' + 'lt' + 'o:e' + 'nquirie' + 's@' + 'dynamicsails.' + 'c' + 'om?subject=Dynamic Sails - Website Enquiry'
			document.form_contact.submit()
			mail.innerHTML = '<br/><br/>&nbsp; &nbsp; &nbsp; <i>Thank you for contacting us.</i><br/><br/><br/><br/><br/><br/><br/><br/>'
		}
	}
	catch(e) {
		//do nothing
	}
}
