// handle the form submission

window.addEvent('domready', function(){
	if($('clientloginform')) {
		$('clientloginform').addEvent('submit', function(e) {
			//halt the submit
			new Event(e).stop();
	
			// outputs results if no errors
			var postString = this;
			var url = "/ajax/login.html";
			new Ajax(url, {method: 'post',data: postString,onComplete: showResponse}).request();
		});
	}
});