function loadclass(classname,functionname,dop, target) {
	mesto=target;
	myDiv=document.getElementById(mesto);
	myDiv.innerHTML='<img src=\"/tmp/img/time.gif\" width=15 height=15 alt=\"Загрузка\" align=center>';
	if (xmlHttp.readyState==4 || xmlHttp.readyState==0) {
		url='/ajax/class.php';
		if (dop.length>0) {
			url+='?'+dop;
		}
		xmlHttp.open('POST',url,true);
		xmlHttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=utf-8;');
		xmlHttp.onreadystatechange=function serverResponse() {
			if (xmlHttp.readyState==4) {
				if (xmlHttp.status==200) {
					response=xmlHttp.responseText;
					myDiv.innerHTML=response;
				}
			}
		};
		xmlHttp.send('class=' + classname + '&function=' + functionname);
	} else {
		setTimeout('loadclass(\''+classname+'\',\''+functionname+'\',\''+dop+'\',\''+target+'\')',100);
	}
	return false;
}
function senddataclass(classname,functionname,dop,text, target) {
	mesto=target;
	myDiv=document.getElementById(mesto);
	myDiv.innerHTML='<img src=\"/tmp/img/time.gif\" width=15 height=15 alt=\"Загрузка\" align=center>';
	if (xmlHttp.readyState==4 || xmlHttp.readyState==0) {
		url='/ajax/class.php';
		if (dop.length>0) {
			url+='?'+dop;
		}
		xmlHttp.open('POST',url,true);
		xmlHttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=utf-8;');
		xmlHttp.onreadystatechange=function serverResponse() {
			if (xmlHttp.readyState==4) {
				if (xmlHttp.status==200) {
					response=xmlHttp.responseText;
					myDiv.innerHTML=response;
				}
			}
		};
		xmlHttp.send('class=' + classname + '&function=' + functionname + '&text='+text);
	} else {
		setTimeout('loadclass(\''+classname+'\',\''+functionname+'\',\''+dop+'\',\''+text+'\',\''+target+'\')',100);
	}
	return false;
}
