function checkSearch(){
	var val = document.getElementById('what').value;
	if(val=="поиск")
		document.getElementById('what').value = '';
	else if(val=="")
		document.getElementById('what').value = 'поиск';
}

function putSwfCode(ObjSrc, W, H, Params)
{
        var str = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+W+'" height="'+H+'">' + 
                      '<param name="movie" value="'+ObjSrc+'"/>\n' +
                      '<param name="quality" value="high"/>\n';
        if(Params){
        	for(ind in Params) { str += '\n<param name="'+ind+'" value="'+Params[ind]+'"/>';}
        }
        str += '<embed src="'+ObjSrc+'" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="'+W+'" height="'+H+'"';
        if(Params){
        	for(ind in Params){str += ' '+ind+'="'+Params[ind]+'"';}
        }
        str += '></embed>\n' +
                  '</object>';
        document.write(str);
}

function openphoto(page_href, size) {
	if (!size) 'width=620, height=430, '
	another=open(page_href, 'OpenFile', size+' scrollbars=auto, status=no, titlebar=no, toolbar=no, location=no, menubar=no, resizable=yes');
}

function gotoRegion(){
	if(document.getElementById('region').value!=0)
		document.location=document.getElementById('region').value;
}
