window.addEvent('domready' , function(){
	
	$('login_form').addEvent('submit', function(e){
		e.stop();
		
		this.set('send', {onComplete: function(response) {
			if(response == 'FALSE'){
				alert('Invalid Login. Try Again.');
			} else {
				window.location = '/ucp/index.php?pid=501';
			}
		}});
		this.send();
	});
	
});