function ajax_functions(server_url,myaction) {
	var xmlHttpReq = false;
	var self = this;
	// Mozilla/Safari
	if (window.XMLHttpRequest) {
		self.xmlHttpReq = new XMLHttpRequest();
	}
	// IE
	else if (window.ActiveXObject) {
		self.xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
	}
	self.xmlHttpReq.open('POST', server_url, true);
	self.xmlHttpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
	self.xmlHttpReq.onreadystatechange = function() {
		if (self.xmlHttpReq.readyState == 4) {
			if(self.xmlHttpReq.responseText!='')
			{	// FILL CAPTCHA IMAGE + REFRESH LINK
				document.getElementById('captchaimage').innerHTML = self.xmlHttpReq.responseText;
			}
		}
	}
	self.xmlHttpReq.send('captcha_actie='+myaction);
}

