document.write('<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">');
document.write('<link rel="stylesheet" type="text/css" media="all" href="http://gocnhin.com/css/widget.css" />');
gocnhin_width = typeof gocnhin_width == 'string' ? gocnhin_width : '250px';
gocnhin_height  = typeof gocnhin_height  == 'string' ? gocnhin_height  : '300px';
gocnhin_border  = typeof gocnhin_border  == 'number' ? 0 : 1;
gocnhin_target  = typeof gocnhin_target  == 'number' ? '_blank' : '';
gocnhin_theme = typeof gocnhin_theme  == 'string' ? gocnhin_theme  : 'widgetDisplayThemeBlue';
gocnhin_id = typeof gocnhin_id  == 'string' ? ''+gocnhin_id+''  : 'gocnhin-widget-container';
document.write('<div class="widgetPageContentDisplay" style="width: '+gocnhin_width+';">\r\n');
document.write('<div class="'+gocnhin_theme+'" style="border-width: ' + gocnhin_border + 'px;">\r\n');
document.write('<div class="widgetLogo"></div>\r\n');
document.write('<div class="widgetDisplayBox">\r\n');
document.write('<div id="'+gocnhin_id+'" class="widgetDisplayBack" style="height: '+gocnhin_height+';">\r\n');
document.write('</div>\r\n');
document.write('<table width="100%" border="0" cellspacing="0" cellpadding="0" class="widgetBoxFoo">\r\n');
document.write('<tr><td>Tổng hợp bởi <a href="http://www.gocnhin.com" target="_blank">GocNhin.com</a></td></tr>\r\n');
document.write('</table></div></div></div>');
function outputWidget(strHtml)
{
    document.getElementById(gocnhin_id).innerHTML = strHtml;
}