$(document).ready(function(){		$("#login").click(function () {		var str = $("#box_login").serialize();			str = str+"&rnd"+Math.random();		var nextUrl = $(this).attr('url-to-load');		$.ajax({ 	    	   type: "POST", 	    	   url: "http://www.ggi.brescia.it/adm/login/utente/loginfrontend.do",  	    	   data: str, 	    	   complete: function(val){ 					var res = val.responseText.split("|");					if('KO'==res[0])						$("#responselogin").html(res[1]);					else {						window.location = nextUrl;					}	 		   } 	     });			});});
