var cleared = 0;
function clearsearch()
{
    if (!cleared) document.getElementById('search').value="";
    cleared=1;
}

function check()
{
    if (document.getElementById('search').value=="") { alert("Введите поисковый запрос!"); return false; }
    if (document.getElementById('search').value=="Поиск по сайту") { document.getElementById('search').focus(); return false; }
    if (document.getElementById('search').value=="Search") { document.getElementById('search').focus(); return false; }
    return true;
}

function openpic(url,x,y)
{
	pw=open("", "pic","scrollbars=0,resizable=0,width="+x+",height="+y+",status=no,toolbar=no,menubar=no");
	pw.document.open();
	pw.document.write("<html><head><title>Фотография</title></head><body leftmargin=0 topmargin=0><a href='#' onclick='javascript:window.close();'><img src='");
	pw.document.write(url);
	pw.document.write("' border='0' alt=''></a></body></html>");
	pw.focus();
	pw.document.close();
	return false;
}

function show()
{
	d = document;
	d.getElementById('hid').style.display = d.getElementById('hid').style.display=='none' ? 'block' : 'none';
	return false;
}

function showbio(name)
{
	d = document;
	d.getElementById(name).style.display = d.getElementById(name).style.display == 'none' ? 'block' : 'none';
	return false;
}