﻿document.write('<script src="/templates/default/js/library.js" type="text/javascript" language="javascript"></script>');
document.write('<script src="/templates/default/js/avim.js" type="text/javascript" language="javascript"></script>');
document.write('<script src="/templates/default/js/ads.js" type="text/javascript" language="javascript"></script>');

function GotoSite(url2)
{	 		
	 //window.location.href=url2;
	 var w,h,uid;
	 var p = url2.split("|");
	 uid = p[0];
	 w=p[1];
	 h=p[2];

	 if (url2 != '')
	 {
		if (w == 0) 
		{
			window.open('/vn/atv/' + uid + '/index.aspx','','',''); 
		}
		else
		{
			openfile('/vn/atv/' + uid + "/index.aspx",w,h);
		}
	 }
}

function part2url22(url2)
{	 		
	 var part2=url2.split("$$$");
	 return part2[1];	 	 
}

function is_empty(object) {
	if (object.value) {
		return false;
	}
	return true;
}

function check_keywords(object) {

	if ((object.keywords.value.length<3)) {
		alert('Phải nhập ít nhất 3 ký tự');
		return false;
	}
	return true;
}

function showWindow(url, isStatus, isResizeable, isScrollbars, isToolbar, isLocation, isFullscreen, isTitlebar, isCentered, width, height, top, left)
{
	if (isCentered)
	{
		top = (screen.height - height) / 2;
		left = (screen.width - width) / 2;
	}

	open(url, '_blank', 'status=' + (isStatus ? 'yes' : 'no') + ','
	+ 'resizable=' + (isResizeable ? 'yes' : 'no') + ','
	+ 'scrollbars=' + (isScrollbars ? 'yes' : 'no') + ','
	+ 'toolbar=' + (isToolbar ? 'yes' : 'no') + ','
	+ 'location=' + (isLocation ? 'yes' : 'no') + ','
	+ 'fullscreen=' + (isFullscreen ? 'yes' : 'no') + ','
	+ 'titlebar=' + (isTitlebar ? 'yes' : 'no') + ','
	+ 'height=' + height + ',' + 'width=' + width + ','
	+ 'top=' + top + ',' + 'left=' + left);
}

function showDialog(url, width, height)
{
	return showWindow(url, false, false, false, false, false, false, true, true, width, height, 0, 0);
}