// Login JS - read and send the login data via AJAX
window.addEvent('domready',function(){
	if($('loginbox') != null){
		$('loginform').addEvent('submit',function(e){
			$('loginanswer').innerHTML ='';
			$('loginanswer').setStyle('height','0px');
			e = new Event(e).stop();
			new Ajax('checkUserLogin.php',{ method:'post', data:this, update:$('loginanswer'),
					 onSuccess:function(){
						 	$('loginanswer').effect('height',{ duration: 200, wait:true, transition:Fx.Transitions.linear }).start(0,50);
					 }}).request();
		})
	 }
})