﻿var minors=new Array(8);
minors[1]='Thứ hai';
minors[2]='Thứ ba';
minors[3]='Thứ tư';
minors[4]='Thứ năm';
minors[5]='Thứ sáu';
minors[6]='Thứ bảy';
minors[0]='Chủ nhật';


var time=new Date();
var lmonth=time.getMonth() + 1;
var date=time.getDate();
var year=time.getYear();
var h = time.getHours();
var m = time.getMinutes();

var lminor=minors[time.getDay()];

if (year <1000) {year = 1900 + year;}
document.write(lminor+', ngày '+ date);
//document.write('Ngày '+ date + ' ');
document.write('/'+lmonth + '/' + year);
//document.write('. '+h + ':' + m);



//var newwindow;
function poptastic(url)
	{
		var image = new Image;
		image.src = url;
		win2Open = window.open("","","toolbar=no,location=no,directories=no,status=no, menubar=no,scrollbars=no,resizable=no,copyhistory=no");
		if (!document.layers && !document.all)	return;
		win2Open.resizeTo (40 + image.width, 60 + image.height);
		win2Open.moveTo ((screen.width - image.width) / 2, (screen.height - image.height) / 2);
		win2Open.document.open();
		win2Open.document.write ('<html><head><title>Preview Image</title></head><body bgcolor="#96A59E" topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0">');
		win2Open.document.write ('<table width="100%" border="1" cellpadding="12" cellspacing="0" bordercolor="#11362B" style="border-collapse: collapse">');
		win2Open.document.write ('<tr><td bgcolor="#96A59E"><div align="center">');
		win2Open.document.write ('<table width="100%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#11362B" bgcolor="#11362B" style="border-collapse: collapse">');
		win2Open.document.write ('<tr><td align="center"><img src="' + url + '" alt="Preview Image" title="Close" border="1" style="cursor:Hand" onclick="window.close();"/></td></tr>');
		win2Open.document.write ('</table></div></td></tr></table>');
		win2Open.document.write ('</body></html>');
		win2Open.document.close();
		return;
	}
	
	
	
function openImageNews(vLink, vHeight, vWidth) {
	var sLink = (typeof(vLink.href) == 'undefined') ? vLink : vLink.href;

	if (sLink == '') {
		return false;
	}

	winDef = 'status=no,resizable=yes,scrollbars=no,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>VietNamNet</title><body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0">');
	newwin.document.writeln('<a href="" onClick="window.close(); return false;"><img src="', sLink, '" alt="', 'Dong lai', '" border=0></a>');
	newwin.document.writeln('</body>');

	if (typeof(vLink.href) != 'undefined') {
		return false;
	}
}
