function fb_ask(){
	openlightbox();
	var httpObj = ajaxFunction();
	var query = "fb_ajax.php?qrnd=" + Math.random() + '&action=fb_ask';
	httpObj.open("GET",query, true);
	httpObj.send(null);
	httpObj.onreadystatechange = function(){
		if(httpObj.readyState == 4){
			document.getElementById('blackbox').innerHTML = httpObj.responseText;	
			
		}
	}
}

function fbconnect(){
	if(window.location.href.search('\\?') != -1){
		location.href = window.location.href + '&do=fbconnect';
	}else{
		location.href = window.location.href + '?do=fbconnect';
	}
}

function disconnect_fb(accountid,editlevel){
	var httpObj = ajaxFunction();
	var query = "securityajax.php?qrnd=" + Math.random() + '&action=disconnect_fb' + '&accountid=' + accountid + '&editlevel=' + editlevel;
	httpObj.open("GET",query, true);
	httpObj.send(null);
	httpObj.onreadystatechange = function(){
		if(httpObj.readyState == 4){
			document.getElementById('fiche_houder').innerHTML = httpObj.responseText;
		}
	}
}



function fb_prevent(accountid){
	
	
	var httpObj = ajaxFunction();
	var query = "fb_ajax.php?qrnd=" + Math.random() + '&action=fb_prevent' + '&accountid=' + accountid;
	httpObj.open("GET",query, true);
	httpObj.send(null);
	httpObj.onreadystatechange = function(){
		if(httpObj.readyState == 4){
			closelightbox();
		}
	}
}
