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