var Search = "ÏüGñê";

function init() {
}


function SearchFocus(obj)
{
	obj.value = "";
}

function SearchBlur(obj)
{
	if(obj.value == "")
	{
		obj.value = Search;
	}
}

function SearchSubmit()
{
	var Q = document.getElementById('Q');
	
	if(Q.value == Search)
	{
		return false;
	}
	
	return true;
}

function DropDown(it)
{
	el1 = document.getElementById('track' + it);
	el2 = document.getElementById('img' + it);
	
	//alert(el1.style.display)
	
	if(el1.style.display == "") 
	{
		el1.style.display = "block";
		el2.src="http://www.specialist.ru/Img/minus.gif";
	}
	else
	{	
		el1.style.display = "";
		el2.src="http://www.specialist.ru/Img/plus.gif";
	}
	
	//alert(el1.style.display)
}

function WindowForImageSize(imgPath, imgTitle, width, height)
{

//	var img = new Image();
//	img.src = imgPath;

	if(width == 0 || height == 0)
	{
		return;
	}
		
	var wo = window.open("", "WKWin", "width=" + width + ",height=" + height);
	
	var str = '';
	str += '<html style="padding: 0; margin: 0;">\n';
	str += '<head>\n';
	str += '<title>' + imgTitle  + '</title>\n';
	str += '</head>\n';
	str += '<body style="padding: 0; margin: 0;">\n';
	str += '<img style="cursor: pointer" src="' + imgPath + '" width="' + width + '" height="' + height + '" alt="' + imgTitle + '" onclick="self.window.close();" />\n';
	str += '</body>\n';
	str += '</html>';
	
	//wo.document.open();
	wo.document.write(str);
	//wo.document.close();
	
	width += 7;
	height += 58;
	
	wo.resizeTo(width, height);
	wo.focus();
}
