function LogonGroup( formname, senders ) {
	this.command = "";
	
	this.login = function( ) {
		var usr, pwd;
		usr = window.document.forms[formname].user.value;
		pwd = window.document.forms[formname].pwd.value;
		this.command = "LOGIN;" + usr + "," + pwd + "";
		this.send( );
	}
				
	this.logout = function( ) {
		this.command = "LOGOUT;";
		this.send( );
	}
	
	this.visible = function( status ) {
		/* questo era il codice precedentemente attivo. In caso di problemi ripristinare
		window.document.forms[formname].command.value = "VISIBLE;" + status;
		window.document.forms[formname].submit( );
		*/
		
		this.command = "VISIBLE;" + status;
		this.send( );
	}
	
	this.autolog = function( ) {
		this.command = "AUTOLOG";
		this.send( );
	}
				
	this.send = function( ) {
		window.document.forms[formname].command.value = this.command;
		window.document.forms[formname].submit( );
	}
}


function openForgottenPasswordWindow2( ) {
	var url = _HTTP_HOST + "forgottenpassword.asp";
	var win = window.open(url,"winforgottenpassword","width=500,height=400");
	win.focus( );
	return false;
}

function openForgottenPasswordWindow( ) {
	var url = _HTTP_HOST + "profile/ForgottenPassword.asp";
	var win = window.open(url,"winremindercode","width=400,height=250,top=100,left=100");
	win.focus( );
	return false;
}

