function checkEnter(e) {
	var characterCode

	if (e && e.which) {
		e = e
		characterCode = e.which
	} else {
		e = event
		characterCode = e.keyCode
	}
	
	if(characterCode == 13) {
		document.forms[0].submit()
		return false
	} else {
		return true
	}

}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}


window.addEvent('domready', function() {
	$('contactForm').addEvent('submit', function(e) {
		//Prevents the default submit event from loading a new page.
		e.stop();
		//Empty the log and show the spinning indicator.
		var log = $('contactFormResult').empty().addClass('ajax-loading');
		log.setStyle('display','block');
		//Set the options of the form's Request handler. 
		//("this" refers to the $('myForm') element).
		this.set('send', {evalScripts: true, onComplete: function(response) { 
			log.removeClass('ajax-loading');
			log.set('html', response);
		}});
		//Send the form.
		this.send();
	});
});
