function doLoad(value) {
	// Create new JsHttpRequest object.
	//var req = new JsHttpRequest();
	// Code automatically called on load finishing.
	//req.onreadystatechange = function() 
	{
	//	if (value == 0) 
		{
			// Write result to page element ($_RESULT become responseJS).
			document.getElementById('other').innerHTML = value;
			// Write debug information too (output become responseText).
			// document.getElementById('debug').innerHTML = req.responseText;
		}
	}
	// Prepare request object (automatically choose GET or POST).
	//req.open(null, 't_simple_loader2.php', true);
	// Send data to backend.
	//req.send( { q: value } );
}

function open_l2(name) {


 		//elem = eval("document.all."+name);
		
		{
 		elem0 = document.getElementById('0');
		elem1 = document.getElementById('1');
elem0.style.display = "none";
elem1.style.display = "none";
		if (name==0) {
			elem0.style.display = "block";
		} else {
			elem1.style.display = "block";
		}
		}
	}
function open_l(name) {


 		//elem = eval("document.all."+name);
		if (document.getElementById(name)!=null)
		{
 		elem = document.getElementById(name);
		if (elem.style.display == "none" || !elem.style.display) {
			elem.style.display = "block";
		} else {
			elem.style.display = "none";
		}
		}
	}

	var winH;
	var winW;
	var winUrl;
	var winProp;
	var scrol;

function popUpOpen (winUrl, winW, winH)
{
//функция открывает заданный файл в заданных размерах окна
		scrol = 1;
		winProp = "toolbar=0,resizable=0,fullscreen=0,scrollbars="+scrol+",left=50,top=50,height="+winH+",width="+winW;
		window.open(winUrl,'',winProp);
}

function popUpOpenNS (winUrl, winW, winH)
{
//функция открывает заданный файл в заданных размерах окна без скроллинга
		scrol = 0;
		winProp = "toolbar=0,resizable=0,fullscreen=0,scrollbars="+scrol+",left=50,top=50,height="+winH+",width="+winW;
		window.open(winUrl,'',winProp);
}

function popUpOpenARS (winUrl)
{
//функция открывает заданный файл в окне с возможностью ресайза.
		winProp = "width=300,height=200,scrollbars=no,left=50,top=50, toolbar=no,location=no,status=no,resizable=yes,screenX=50,screenY=50";
		window.open(winUrl,'',winProp);
}

