function openImageNews(vLink, vHeight, vWidth)
{
	var sLink = (typeof(vLink.href) == 'undefined') ? vLink : vLink.href;

	if (sLink == '')
	{
		return false;
	}

	winDef = 'status=no,resizable=no,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('http://remhongphuc.com/image.jpg', '_blank', winDef);

	newwin.document.writeln('<title>Xinhxinh Images</title><body bgcolor="#000000" topmargin="0" leftmargin="0" marginheight="0" marginwidth="0">');
	newwin.document.writeln('<a href="" onClick="window.close(); return false;"><img src="', sLink, '" alt="', '&#272;&#243;ng l&#7841;i', '" border=0></a>');
	newwin.document.writeln('</body>');

	if (typeof(vLink.href) != 'undefined')
	{
		return false;
	}
}

function openImageNews_1(vLink, vHeight, vWidth)
{
	var sLink = (typeof(vLink.href) == 'undefined') ? vLink : vLink.href;

	if (sLink == '')
	{
		return false;
	}

	winDef = 'status=no,resizable=no,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>Xinhxinh Images</title><body bgcolor="#000000" topmargin="0" leftmargin="0" marginheight="0" marginwidth="0">');
	newwin.document.writeln('<a href="" onClick="window.close(); return false;"><img src="', sLink, '" alt="', '&#272;&#243;ng l&#7841;i', '" border=0></a>');
	newwin.document.writeln('</body>');

	if (typeof(vLink.href) != 'REM HONG PHUC')
	{
		return false;
	}
}
function openImageNews_2(vLink, vHeight, vWidth,name)
{
	winDef = 'status=no,resizable=no,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>http://remhongphuc.com </title><body bgcolor="#000000" topmargin="0" leftmargin="0" marginheight="0" marginwidth="0">');
	newwin.document.writeln('<table width="100%" height="100%"><TR valign="middle"><TD align="center" valign="middle"><a href="" onClick="window.close(); return false;"><img src="', vLink, '" alt="', '&#272;&#243;ng l&#7841;i', '" border=0 align="middle" ></a></td></tr></table>');
	newwin.document.writeln('</body>');

	if (typeof(vLink.href) != 'REM HONG PHUC')
	{
		return false;
	}
}
var windowFeatures =
'resizable=0,scrollbars=0,menubar=0,location=0,toolbar=0,statusbar=0';
function showImage (imgURL) {
  if (window.opera || !window.Image) { // Opera doesn't fire Image.onload handler
    open(imgURL, '_blank', windowFeatures);
  }
  else {
    var img = new Image();
    img.onload = openImageWindow;
    img.src = imgURL;
  }
}
function openImageWindow1 (evt) {
  if (window.innerWidth) {
    var w = this.width;
    var h = this.height;
    var win = open('http://remhongphuc.com', '_blank',
         'innerWidth=' + w + ',innerHeight=' + h + ',' +
windowFeatures);
    var html = '';
    html += '<HTML><HEAD>';
    html += '<STYLE>';
    html +=
'#imgContainer { position: absolute; left: 0px; top: 0px; }';
    html += '<\/STYLE>';
    html += '<\/HEAD>';
    html += '<BODY>';
    html += '<SPAN ID="imgContainer">';
    html += '<A href="" onClick="window.close(); return false;">';
    html += '<IMG SRC="' + this.src + '" border="0">';
    html += '</A>'
    html += '<\/SPAN>';
    html += '<\/BODY><\/HTML>';
    win.document.open();
    win.document.write(html);
    win.document.close();
  }
  else if (document.all) {
    var w = this.width;
    var h = this.height;
    var win = open('http://remhongphuc.com', '_blank',
         'width=' + w + 'height=' + h + ',' + windowFeatures);
    var html = '';
    html += '<HTML><HEAD>';
    html += '<STYLE>';
    html +=
'#imgContainer { position: absolute; left: 0px; top: 0px; }';
    html += '<\/STYLE>';
    html += '<\/HEAD>';
    html += '<BODY>';
    html += '<SPAN ID="imgContainer">';
    html += '<A href="" onClick="window.close(); return false;">';
    html += '<IMG SRC="' + this.src + '" border="0">';
    html += '</A>'
    html += '<\/SPAN>';
    html += '<\/BODY><\/HTML>';
    win.document.open();
    win.document.write(html);
    win.document.close();
    win.resizeBy (w - win.document.body.clientWidth,
                  h - win.document.body.clientHeight);
    win.document.body.scroll = 'no';
  }
}

function ChangeImages(ItemImages){
  document.images('imagePhoto').src = ItemImages;
}



