function SubscribeNews(email) {
 advAJAX.get({
	url: base + "pl/ajax_subscribe_email/email/" + email,
	onLoading : function(obj) { 
	 $('subscribe_content').innerHTML = "Loading...";
    },
    onSuccess : function(obj) {
     $('subscribe_content').innerHTML = obj.responseText;
    },
    onError : function(obj) { 
	 $('subscribe_content').innerHTML = "Wystąpiły problemy.<br/>Spróbuj później.";
    }
  });
}

function Recommend(friend_email,email) {
 advAJAX.get({
	url: base + "pl/ajax_recommend/friendemail/" + friend_email + "/email/"+email,
	onLoading : function(obj) { 
	 $('recommend_content').innerHTML = "Loading...";
    },
    onSuccess : function(obj) {
     $('recommend_content').innerHTML = obj.responseText;
    },
    onError : function(obj) { 
	 $('recommend_content').innerHTML = "Wystąpiły problemy.<br/>Spróbuj później.";
    }
  });
}

function SelectGroup() {
	//document.users.groups_id.options[document.users.groups_id.selectedIndex].text
	var id = document.users.groups_id.options[document.users.groups_id.selectedIndex].value;
	if(id != 3 && id != 4) {
		$('select_group').innerHTML=' ';
		$('identifier').style.display='none';
	} else {
		$('identifier').className='inputText requiredInputText';
		if(id == 3) var group = 'Identyfikator - Nr albumu';
		if(id == 4) var group = 'Identyfikator - Nr biegłego';
		$('select_group').innerHTML=group;
		$('identifier').style.display='block';
	}
}

function RecallPassword(email) {
 $('recall_content').style.display='block';
 advAJAX.get({
	url: secure_base + "pl/ajax_recall_password/email/" + email,
	onLoading : function(obj) { 
	 $('recall_content').innerHTML = "Loading...";
    },
    onSuccess : function(obj) {
     $('recall_content').innerHTML = obj.responseText;
    },
    onError : function(obj) { 
	 $('recall_content').innerHTML = "Wystąpiły problemy.<br/>Spróbuj później.";
    }
  });
}

