	
	function submit_login_form(form_element) { 
		$.ajax({
			type : "POST",
			url : rootUrl+"index.php?module=account&action=login&lang="+lang_alias, 
			data : $(form_element).serialize(), 
			success : function(res){
                res = jQuery.trim(res);
				if(res.length > 0){
                    
					$("div#popup").remove();
					$("<div id='popup'></div>")
						.prependTo("body")
						.css({
								width:"100%",
								height:$(document).height(), 
								position:"absolute",
								left: "0",
								top: "0",
								opacity: "0",
								background: "#000000",
								zIndex: "1000"
							})
						.fadeTo("slow",0.5);
					$("body").prepend("<div id='login_msg'></div>");
					
					$("#login_msg")
						.css({
								position:"absolute",
								width:"300px",
								minHeight:"47px",
								zIndex:"1001",
								fontSize:"12px",
								border:"1px solid #eee",
								opacity:"1",
								padding: "10px",
                                background:"#000000",
                                color:"red"
							})
						.html(res)
                    $("#login_msg").css({
                        top: ($(window).height()/2 - $("#login_msg").height()/2),
                        left: ($(window).width()/2 - $("#login_msg").width()/2)
                    })
					$("#login_msg").prepend("<div align='right'><a href='javascript:void(0)'>X</a></div>");
					$("#login_msg > div > a")
						.css( {color:"#ffffff", padding:"5px" } )
						.click(function(){
							$("#login_msg").fadeOut(200,function(){
								$("div#popup").fadeTo(500,0,function(){
                                    $("div#popup").remove();
									$("#login_msg").remove();
								})
							})
							
						});
				}else{
					window.location.href=window.location.href;
				}
			}			
		});
		return false;
	}