function displayMessage(msg, err){
	if(msg.length>0){
		alert(msg);
	}
	if(err.length>0){
		alert('Błąd: ' + err);
	}
}
