function T3funHandler()
{
	PortalHandler.call(this, "http://login.t3fun.com", "http://login.t3fun.com/Login.asmx");	
};
T3funHandler.prototype = new PortalHandler();
T3funHandler.prototype.getLoginUser = function(res, userId, status) {
	return {	
		key:	xmlHttpRequest.getNode(res, 'Key'),
		id:		userId,
		email:	xmlHttpRequest.getNode(res, 'Email'),
		token:	xmlHttpRequest.getNode(res, 'Token'),
		birthDate:	xmlHttpRequest.getNode(res, 'BirthDate'),
		status:	status
	}
};

var handler = new T3funHandler();

function RequestLogin(id, password, onValid, onLeave, onInvalidId, onInvaliedPassword, onError)
{
	handler.requestLogin(id, password, onValid, onLeave, onInvalidId, onInvaliedPassword, onError);
};
function RequestLogout(onload)
{
	if (confirm("Are you sure you want to log-out from the T3fun website?")) {
		handler.requestLogout(onload);
	}	
};