/* <!-- compression status: 1 --> (this is for http compression) */

var fBrw=(navigator.userAgent.indexOf('MSIE')!= -1 && navigator.userAgent.indexOf('Windows')!= -1);
function showdateVN() {
    // variables declaration
    var dt=new Date();
    var strMonth = new Array("tháng 1","tháng 2","tháng 3","tháng 4","tháng 5","tháng 6","tháng 7","tháng 8","tháng 9","tháng 10","tháng 11","tháng 12");
    var strDay = new Array("Chủ Nhật","Thứ Hai","Thứ Ba","Thứ Tư","Thứ Năm","Thứ Sáu","Thứ Bảy");
    var date=strDay[dt.getDay()] + ", ";
    var years= dt.getYear();
    if (years<1900) years+= 1900;
    return (date += dt.getDate()+" "+strMonth[dt.getMonth()] + ", "+years);
}

function showdateEN() {
    // variables declaration
    var dt=new Date();
    var strMonth = new Array("January","February","March","April","May","June","July","August","September","Octorber","November","December");
    var strDay = new Array("Sun","Mon","Tue","Wed","Thu","Fri","Sat");
    var date=strDay[dt.getDay()] + ", ";
    var years= dt.getYear();
    if (years<1900) years+= 1900;
    return (date += dt.getDate()+" "+strMonth[dt.getMonth()] + ", "+years);
}

function openLink(url) {
    window.open(url,'mywindow','width=600,height=400,toolbar=1,resizable=1,menubar=1,location=1,scrollbars=1');
}
function openImage(url, vHeight, vWidth)
{
	if (url == '')
	{
		return;
	}
vWidth+=20;
	winDef = 'status=no,resizable=yes,scrollbars=yes,toolbar=no,location=no,fullscreen=no,titlebar=yes,height='.concat(vHeight).concat(',').concat('width=').concat(vWidth).concat(',');
	winDef = winDef.concat('top=').concat((screen.height - vHeight)/2).concat(',');
	winDef = winDef.concat('left=').concat((screen.width - vWidth)/2);
	newwin = open('', '_blank', winDef);

	newwin.document.writeln('<title>Hội đồng nhân dân tỉnh Đồng Nai</title><body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0">');
	newwin.document.writeln('<a href="JavaScript:window.close()"><img src="', url, '" alt="', (fBrw) ? 'Close' : 'Dong lai', '" border=0></a>');
	newwin.document.writeln('</body>');
}
function openNewWin(url) {
    window.open(url,'NewWin','width=320,height=325,addressbar=no,scrollbars=no,toolbar=no,resizable=no,menubar=no');
}
