function Linkto(url) {
	location.href = url;
}

var jsSrchDefault="กรุณากรอกอีเมล์ของท่าน";
var setName="Name";
var setBirthDate="Birth Date";
var setEmail="Email Address";

/*Horo Tab*/
function fun_SelectTabNews(numReq_Tab)
{
	var num_LINode = 0
	for(var i=0; i<document.getElementById('TabNews').childNodes.length; i++)
	{
		if(document.getElementById('TabNews').childNodes[i].nodeName == 'LI')
		{
			if(numReq_Tab==num_LINode)
			{
				document.getElementById('TabNews').childNodes[i].style.backgroundImage="url('../images/icon/btn-tab-select.gif')";
				document.getElementById("sblck"+(num_LINode+1)).style.display='';
			}
			else
			{
				document.getElementById('TabNews').childNodes[i].style.backgroundImage="url('../images/icon/btn-tab-link.gif')";
				document.getElementById("sblck"+(num_LINode+1)).style.display='none';
			}
			num_LINode++;
		}
	}
}

var message="No allow";
///////////////////////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if 
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers) 
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}

document.oncontextmenu=new Function("return false")


<!--
function newXmlHttp(){
	var xmlhttp = false;
	try{
		xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
	}catch(e){
		try{
			xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
		}catch(e){
			xmlhttp = false;
		}
	}
	
	if(!xmlhttp && document.createElement){
		xmlhttp = new XMLHttpRequest();
	}
	
	return xmlhttp;
}
//-->

function AjaxFunction(url){
	var returnvalue = '';
	var xmlhttp = '';
	xmlhttp = newXmlHttp();
	xmlhttp.open("GET", url, false);
	xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded; Charset=utf-8"); 
	xmlhttp.send(null);
	

	returnvalue = xmlhttp.responseText;
	
	return returnvalue;
}

function MM_openBrWindow(theURL,winName,features)
{ window.open(theURL,winName,features); }


<!-- Begin 01
function copyit01(theField) {
var tempval=eval('document.getElementById("txt_link01")');
tempval.focus();
tempval.select();
therange=tempval.createTextRange();
therange.execCommand("copy01");
}

function noblock01(){
	xdsp01=(document.getElementById("sblck01").style.display=='none')?'':'none';
	xsg01=(document.getElementById("sblck01").style.display=='none')?'&#x71;':'&#x75;';
	document.getElementById("sblck01").style.display=xdsp01;
	xsgn01.innerHTML=xsg01;
}
//  End -->

<!-- Begin 02
function copyit02(theField) {
var tempval=eval('document.getElementById("txt_link02")');
tempval.focus();
tempval.select();
therange=tempval.createTextRange();
therange.execCommand("copy02");
}

function noblock02(){
	xdsp02=(document.getElementById("sblck02").style.display=='none')?'':'none';
	xsg02=(document.getElementById("sblck02").style.display=='none')?'&#x71;':'&#x75;';
	document.getElementById("sblck02").style.display=xdsp02;
	xsgn02.innerHTML=xsg02;
}
//  End -->

<!-- Begin 03
function copyit03(theField) {
var tempval=eval('document.getElementById("txt_link03")');
tempval.focus();
tempval.select();
therange=tempval.createTextRange();
therange.execCommand("copy03");
}

function noblock03(){
	xdsp03=(document.getElementById("sblck03").style.display=='none')?'':'none';
	xsg03=(document.getElementById("sblck03").style.display=='none')?'&#x71;':'&#x75;';
	document.getElementById("sblck03").style.display=xdsp03;
	xsgn03.innerHTML=xsg03;
}
//  End -->

/*lm_free-horoscrope*/
int_TempTabIndex = 1;
function func_ClickFreeHoroScope(int_TabIndex)
{
	document.getElementById('tab_FreeHoroScope_'+int_TempTabIndex).style.display = 'none';
	document.getElementById('tab_FreeHoroScope_'+int_TabIndex).style.display = '';
	int_TempTabIndex  = int_TabIndex;
}


/*lm_clip-online.php*/
int_TempTabIndex = 1;
function func_ClickTVClip(int_TabIndex)
{
	document.getElementById('tab_TVClip_'+int_TempTabIndex).style.display = 'none';
	document.getElementById('tab_TVClip_'+int_TabIndex).style.display = '';
	int_TempTabIndex  = int_TabIndex;
}



function noblock(){
	xdsp=(document.getElementById("sblck").style.display=='none')?'':'none';
	document.getElementById("sblck").style.display=xdsp;
}




