//javascript file

function submit_url (out,ref)
{	url=ref+document.getElementById(out).value+".shtml";
	window.open(url,'_parent');}

function view_click (obj)
{	_x=document.getElementById('service').style.left;
	_y=200;
	_dx=25;
	document.getElementById(obj).style.display="block";
    _clh=document.getElementById(obj).clientHeight;
	if(_dx+_x+document.getElementById(obj).clientWidth>document.body.clientWidth)
	{
		_x=document.body.clientWidth-document.getElementById(obj).clientWidth-_dx;
		left=true;
	}
	else
	{
		_x=_x-_dx;
	}
	/*if(_y+_clh>document.body.clientHeight)
	{
		_cury=_y+_clh-document.body.clientHeight;
		_y=_y-_cury;
		right=true;
	}*/
	//если объект в нижнем правом углу, подсказка всплывает над курсором
	//if(left==true && right==true)
	//{
	//	_y=document.body.clientHeight-_clh-_dx*4;
	//}
	//помещение подсказки в найденные коородинаты

	document.getElementById(obj).style.left=_x;
	document.getElementById(obj).style.top=_y+document.body.scrollTop;}

function close_window(obj)
{	document.getElementById(obj).style.display="none";}
function view_other(obj)
{	document.getElementById(obj).style.display="block";}