function openWnd(url,wnd_name,width,height,scrollbars){		
	var stScrollBar = (scrollbars ? 'yes' : 'no');
	window.open(url,'','width='+width+',height='+height+',status=yes,menubar=no,resizable=yes,scrollbars='+stScrollBar+',left='+String((screen.width-width)/2)+',top='+String((screen.height-height)/2));
}

function openFlashWnd(pict_url,title) {
	var width = 450;
	var height = 450;
	var msgWindow = window.open('','awr','width='+width+',height='+height+',status=yes,menubar=no,resizable=yes,scrollbars=no,left='+String((screen.width-width)/2)+',top='+String((screen.height-height)/2));
	msgWindow.document.open();
	msgWindow.document.write('<html><head>'
+'<meta http-equiv="Content-Type" content="text/html; charset=WINDOWS-1251">'
+'<title>'+title+'</title>'
+'<style type="text/css">'
+'body { margin: 0; padding: 0; background: #ffffff; }'
+'img { display: block; }'
+'</style></head><body>'
+'<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+width+'" height="'+height+'" id="zoom" align="middle">'
+'	<param name="allowScriptAccess" value="sameDomain">'
+'	<param name="movie" value="/upload/images/zoom.swf">'
+'	<param name="quality" value="high">'
+'	<param name="bgcolor" value="#ffffff">'
+'	<param name="FLASHVARS" value="pict_url='+pict_url+'">'
+'	<embed src="/upload/images/zoom.swf" quality="high" bgcolor="#ffffff" name="zoom" flashvars="pict_url='+pict_url+'" width="'+width+'" height="'+height+'" align="middle" allowscriptaccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">'
+'	</embed>'
+'</object>'
+'</body>'
+'</html> ');
	msgWindow.document.close();
	msgWindow.focus();
}