function load_trash($pid)
	{
		oiframe = window.iftrash;
		//href = "index.php?load_block=_add_trash&parms[]="+$pid;
		href = "index.php?block=_add_trash&pid="+$pid;
		oDiv = window.document.getElementById("trash");
		//oDiv.innerHTML = "Загрузка";
		oiframe.location.href=href;
		//oiframe.reload;
		//oDiv.innerHTML = oiframe.document.getElementById("div_data").innerHTML;
		oSplash = window.document.getElementById("div_splash");

		offsetHeight = document.body.scrollTop;
		oSplash.style.top = offsetHeight+100;
                oSplash.innerHTML=window.document.getElementById("start_splash").innerHTML;
		oSplash.style.display="block";
	}
	function show_1()
	{
      		//oDiv = window.document.getElementById("trash");
		oDiv.innerHTML = oiframe.document.getElementById("div_data").innerHTML;
		//oSplash.style.display="none";
		oSplash.innerHTML=window.document.getElementById("end_splash").innerHTML;
		close_t=6;
		doClose();
	}  // show
        function splash_close()
	{
		document.getElementById("div_splash").style.display="none";
		clearTimeout(tid);
	}
	var close_t=6;
	var v_text = "окно будет закрыто через ";
        var tid = "";
	function doClose()
	/*****************************************************************
		close splash automatic
	*****************************************************************/
	{
		close_t = close_t-1;
		if (close_t <= 0)
		{
                        clearTimeout(tid);
			splash_close();
		}else{
			window.document.getElementById("div_timetext").innerHTML = v_text + close_t + " секунд";
                        tid=window.setTimeout("doClose()",1000);
                }

	}  // doClose()

	function show_price($if_id)
	{
		//name = "if_"+$if_id;

		if (arr_show[$if_id] != 1)
		{

			eval("oiframe = window.if_"+$if_id);
			href = "index.php?load_block=admin_table_price&parms[]="+$if_id;
			oiframe.location.href=href;
			oiframe.reload;
			oiframe.height=50;
			name="if_$vars[id]"

		}
		eval("odiv = window.div_"+$if_id);
		odiv.style.display = 'block';
		//odiv.className = "shw";
		//odiv.style.position = 'absolute';
		arr_show[$if_id] = 1;
		arr_open.push($if_id);
	}

