var html_begin = "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=windows-1251\"></head><body topmargin=\"0\" leftmargin=\"0\">";
var html_end = "</body></html>";

function setHtml(param, height, width)
{
	var newWin = window.open("","","location=0,height=" + height + ",width=" + width + ",toolbar=0,scrollbars=0,dependent=1,titlebar=0,status=0,alwaysRaised");
	newWin.document.writeln(html_begin + "<img src=\"" + param + "\" border=\"0\" height=\"" + height + "\" width=\"" + width + "\">" + html_end);
}

function setHtmlFlash(param, height, width)
{
	var newWin = window.open("","","location=0,height=" + height + ",width=" + width + ",toolbar=0,scrollbars=0,dependent=1,titlebar=0,status=0,alwaysRaised");
	newWin.document.writeln(html_begin + "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0' id='banner' align='middle' width='" + width + "' height='" + height + "'><param name='allowScriptAccess' value='sameDomain' /><param name='movie' value='" + param + "' /><param name='quality' value='high' /><param name='bgcolor' value='#FFFFFF' /><embed src='" + param + "' quality='high' width='" + width + "' height='" + height + "' bgcolor='#FFFFFF' name='banner' align='middle' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' /></object>" + html_end);
}

function setHtmlText(param, height, width)
{
	var newWin = window.open("","","location=0,height=" + height + ",width=" + width + ",toolbar=0,scrollbars=1,dependent=1,titlebar=0,status=0,alwaysRaised");
	newWin.document.writeln(html_begin + "<div style='padding: 5px; font-size: 12px; font-family: Arial;'>" + param + "</div>" + html_end);
}

function setHtmlStatistic(param, height, width)
{
	var newWin = window.open("#","","location=0,height=" + height + ",width=" + width + ",toolbar=0,scrollbars=0,dependent=1,titlebar=0,status=0,alwaysRaised");
	newWin.document.write(param);
}

