function OpenLink(link) {
	if (link) window.location = link;
}
function logout(link) {
	if (link) parent.document.getElementById("iframe_hayso1").src=link;

}
function ChangeClass(ClassName, thisObject) {
	thisObject.className = ClassName;
}

function OpenPopup(URL,sWidth,sHeight){
	height 		= window.screen.availHeight;
	width 		= window.screen.availWidth;
	leftpoint 	= parseInt(width/2) - parseInt(sWidth/2);
	toppoint 	= parseInt(height/2) - parseInt(sHeight/2);	
	var view 	= window.open(URL,null,'height='+sHeight+',width='+sWidth+',status=yes,toolbar=no,menubar=no,location=no,top='+toppoint+',left='+leftpoint);
}

function PrintLyric() {
	OpenPopup(MediaURL+'Lyric'+MediaParam+MediaID+MediaReType, 500, 600);
}
function UploadWeb() {
	OpenPopup('http://thegioivietrap.com', 400, 250);
}

function CheckLogout(URL) {
	if (confirm('Bạn thật sự muốn thoát khỏi hệ thống ?'))	{
		window.location = URL;
	}
}
