	
function show(link, w, h) {
	xx = window.open("","link","menubar=no, toolbar=no, location=no, directories=no, status=no, scrollbars=no, resizable=no, width= " + w + ", height=" + h);
	out = "<html><head><title>Просмотр</title></head><body style='margin: 0 0 0 0;'><table cellpadding=0 cellspacing=0><tr><td><a href='javascript:window.close();'><img src='" + link + "' border=0 alt='закрыть'></a></td></tr></table></body></html>";
	xx.document.write(out);
	xx.focus();
	}
	

function img(link, w, h) {
	newWindow = window.open(link, "link", "top=30, left=30, menubar=no, toolbar=no, location=no, directories=no, status=no, scrollbars=no, resizable=no, width= " + w + ", height="+ h);
	newWindow.focus();
	}


	
	
	
function newW() {
	var newWindow = null  ;

	newWindow = window.open("","newW",'top=130, left=130, menubar=0, toolbar=1, location=1, directories=0, status=0, scrollbars=no, resizable=yes, width=400, height=200')
	document.form.target = "newW" ;
	
			
	if (!newWindow || newWindow.closed)
		newWindow = window.open("","newW","")
	else
		newWindow.focus()

	return;
	}

	
	
	
function run_movie(swf, w, h) { 
text = "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0\" width=\"" + w + "\" height=\"" + h + "\">\r\n";
text+= "<param name=\"allowScriptAccess\" value=\"sameDomain\">\r\n";
text+="<param name=\"movie\" value=\"" + swf + "\">\r\n";
text+="<param name=\"menu\" value=\"false\">\r\n";
text+="<param name=\"quality\" value=\"high\">\r\n";
text+="<param name=\"bgcolor\" value=\"#ffffff\">\r\n";
text+="<embed src=\"" + swf + "\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"" + w + "\" height=\"" + h + "\" menu=\"false\" bgcolor=\"#ffffff\" allowScriptAccess=\"sameDomain\">\r\n";
text+="</object>\r\n";

document.write(text);
return 1;
} 