
function logoff(){Cover(false,"PrintProgressBox('Trwa wylogowywanie...')");var myAjax=new Ajax.Request('web_services/authorization.php',{method:'post',parameters:{logoff:'l'},encoding:'ISO-8859-2',onSuccess:function(transport){var response=transport.responseText||'-7';if(catchError(response)===true){$('log_box').innerHTML=response;Cover(true,'progress_box');repaintBoxes();}},onFailure:function(){catchError('-7');}});}
function logon(){Cover(false,"PrintProgressBox('Trwa logowanie...')");var l=$('login').value;var p=$('password').value;var myAjax=new Ajax.Request('web_services/authorization.php',{method:'post',encoding:'ISO-8859-2',parameters:{login:l,password:p},onSuccess:function(transport){var response=transport.responseText||'-7';if(catchError(response)===true){$('log_box').innerHTML=response;Cover(true,'progress_box');repaintBoxes();}},onFailure:function(){catchError('-7');}});}
function loadLogonBox(){if($('log_box')){var myAjax=new Ajax.Request('web_services/authorization.php',{method:'post',encoding:'ISO-8859-2',asynchronous:true,parameters:{repaint:'l'},onSuccess:function(transport){var response=transport.responseText||'-7';if(catchError(response)===true){$('log_box').innerHTML=response;}},onFailure:function(){catchError('-7');}});}}
function loadAccount(){repaint=($('account_inner'))?1:0;var myAjax=new Ajax.Request('web_services/account.php',{method:'post',encoding:'ISO-8859-2',asynchronous:true,parameters:{repaint:repaint},onSuccess:function(transport){var response=transport.responseText||'-7';if(catchError(response)===true){if($('account_inner')){$('account_inner').innerHTML=response;if($('functions')){eval($('functions').innerHTML);changeProfilePanel(2);}}
Cover(true,'progress_box');}},onFailure:function(){catchError('-7');}});}
function remind(login) {
	Cover(false, "PrintProgressBox('Trwa przesyłanie danych...')");
	var myAjax = new Ajax.Request('web_services/remind.php',
	{
		method:'post',
		encoding: 'ISO-8859-2',
		asynchronous: true,
		parameters: {login: login},
		onSuccess: function(transport){
			var response = transport.responseText || '-7';
			if (catchError(response) === true) {
				$('remind_cont').innerHTML = response;
				Cover(true, 'progress_box'); 
			}
		},
		onFailure: function(){
			catchError('-7');
		}
	});
}
