function addler(index){
	/*создает необходимые HTML элементы.*/
	$('body').prepend('<div id="code_block" style="left:10px; position:fixed; top:10px; color:#AAAAAA; padding: 5px; background-color:#804030;z-index:990;"></div>');
	if (window.cd)if(cd.remove)cd.remove();
	cd = $('#code_block');
	cd.toggle();
}
function getrpc(strRPCto, url){
	//strRPCto = strRPCto.replace(/\+/g, "%2B");
	if(window.tr1)clearTimeout(tr1);
	if(window.tr2)clearTimeout(tr2);
	if(window.tr3)clearTimeout(tr3);
	if (cd.css('display')=='none'){cd.show(300);}
	cd.html('starting RPC...');
	if(document.all){
		cd.append('all')
		var xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
		}
	else{
		cd.append('xml')
		var xmlhttp = new XMLHttpRequest();
		}
	if(xmlhttp){
		xmlhttp.open("POST", 'http://'+document.domain+'/'+url,false);
		xmlhttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
		tr4=setTimeout("cd.html('else working...'); tr4=0;",5000);
		tr5=setTimeout("cd.html('may be will return ...').hide('slow'); tr5=0;",10000);
		xmlhttp.send(strRPCto);
		tr1=setTimeout("cd.html('all done!');clearTimeout(tr4);clearTimeout(tr5); tr4=tr5=null; tr1=0;",1000);
		tr2=setTimeout("cd.hide('slow'); tr2=null;",3000);
		tr3=setTimeout("cd.empty(); tr3=null;",4000);
		return xmlhttp.responseText;
		}
		else return "none RPC;";
}
$(document).ready(function(){
	var params= new Array();
	params['runned'] = 0;
	addler();
});