function doLogout(){
	WebForm_DoSyncCallback('Form1','logout',logoutCB,null, null);
	}
	
function doLogin(username,pwd){
	WebForm_DoSyncCallback('Form1','login|'+username+'|'+pwd,loginCB,null, null);
	}
	
function loginCB(response,context){
	if (response==1) window.document.all['Form1'].submit();
	if (response==2) alert('Inserire il nome utente.');
	if (response==3) alert('Inserire la password.');
	if (response==4) alert('Password errata.')
	if (response==5) alert('Nome utente errato.')
	}
	
function logoutCB(response,context){
	window.document.location=response;
	}
	
function doChangeLanguage(Lingua){
	WebForm_DoSyncCallback('Form1','language|'+Lingua,ChangeLanguageCB,null, null);
	}
	
function ChangeLanguageCB(response,context){
	window.document.location=response;
	}