//-->
function tron(tr) { tr.style.backgroundColor = "#FFDDDD"; }
function troff(tr) { tr.style.backgroundColor = "#ffffff"; }
function close_scroll() { document.getElementById("HFloating").style.visibility="hidden"; }

function Birthday()
{
	properties = "status=0,toolbar=0,menubar=0,location=0,directories=0,scrollbars=1,resizable=0,width=600,height=600,top=100,left=220";
	win = window.open("/premier-league/birthday-player.asp","Birthday",properties); win.focus();
}

// Not click and drag //
function noclick() { document.oncontextmenu = new Function ("return false"); }
function nodrag() { document.ondragstart = new Function ("return false"); document.onselectstart = new Function ("return false"); }
function noclickdrag() { document.ondragstart = new Function ("return false"); document.onselectstart = new Function ("return false"); document.oncontextmenu = new Function ("return false"); }


// Premier-Game //
function selectpick(xteam,xkickoff)
{
	/* myleft=(screen.width)?(screen.width-350)/2:100;   
    mytop=(screen.height)?(screen.height-150)/2:100; */
	properties = "status=0,toolbar=0,menubar=0,location=0,directories=0,scrollbars=0,resizable=0,width=350,height=150,top=350,left=130";
	win = window.open("/forum/member/pick.asp?t="+xteam+"&s="+xkickoff,"PremierGame",properties); win.focus();
}

/*

function member_stats(xuid)
{
	properties = "status=0,toolbar=0,menubar=0,location=0,directories=0,scrollbars=1,resizable=0,width=350,height=250,top=200,left=150";
	win = window.open("/forum/member/stats.asp?u="+xuid,"Statistics",properties); win.focus();
}

function member_whopick(xteam)
{
	properties = "status=0,toolbar=0,menubar=0,location=0,directories=0,scrollbars=1,resizable=0,width=320,height=250,top=200,left=150";
	win = window.open("/forum/member/who_pick.asp?t="+xteam,"Who",properties); win.focus();
}

function MemberStats(url,windowWidth,windowHeight){
	
	myleft=(screen.width)?(screen.width-windowWidth)/2:100;   
    mytop=(screen.height)?(screen.height-windowHeight)/2:100; 
	
	// var myDate=new Date();
	// var setUniqe=myDate.getTime(); // ใช้สำหรับ ป้องกันการ cache กรณีกำลังทดสอบ
	
	var diaxFeature="dialogWidth:"+windowWidth+"px;"
	+"dialogHeight:"+windowHeight+"px;"
	+"dialogLeft:"+myleft+"px;"
	+"dialogTop:"+mytop+"px;"		
	+"center:yes;"
	+"edge:raised;" // sunken | raised 
	+"resizable:no;"
	+"status:no;"
	+"scroll:no;";	
	// window.showModalDialog(url+"?"+setUniqe,"", diaxFeature);
	// กรณีไม่ใช้ setUniqe
	window.showModalDialog(url,"", diaxFeature); 
}

*/
