function handle_response(r) {
	eval(r.responseText)
}

function email_init() {
	if ($('contact-form')) $('send').onclick = submit_contact_form
}

function submit_contact_form() {
	Form.disable('contact-form')
	new Ajax.Request('email.php', {method:'post', onSuccess:handle_response, postBody:Form.serialize($('contact-form'))})
	return false
}

original_load = window.onload
window.onload = function() {
	if (original_load != null) original_load()
	email_init()
}
