<!--
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_findObj(n, d) { //v4.01
var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
function  car()
{
window.location="Register_insurance.asp";
}
function callCenter(){
var form=document.forms[0];
var URL = "callCenter.asp";
window.open(URL,"","location=0,status=0,scrollbars=0,width=640,height=380");
}
function  poll()
{
var URL = "./poll.asp"
//window.open("./edit.asp?Advert_id="+Advert_id ," News","width=580,height=530"); 
myRef = window.open(URL,'poll','left=20,top=20,width=540,height=850,toolbar=0,scrollbars=0,resizable=0');
}

<!--linkweb
function shows(cat){
	       var form=document.forms[0];
    if(cat==1){
	document.all["God"].style.display="block";
	document.all["news"].style.display="none";
	document.all["linknew"].style.display="none";
	document.all["bank"].style.display="none";
    document.all["lotto"].style.display="none";

}else if(cat==2){
	document.all["God"].style.display="none";
	document.all["news"].style.display="block";
	document.all["linknew"].style.display="none";
	document.all["bank"].style.display="none";
		document.all["lotto"].style.display="none";

}else if(cat==3){
		document.all["God"].style.display="none";
	document.all["news"].style.display="none";
	document.all["linknew"].style.display="block";
	document.all["bank"].style.display="none";
		document.all["lotto"].style.display="none";
	
		}else if(cat==4){
			document.all["God"].style.display="none";
	document.all["news"].style.display="none";
	document.all["linknew"].style.display="none";
	document.all["bank"].style.display="block";
		document.all["lotto"].style.display="none";

}else if(cat==5){
			document.all["God"].style.display="none";
	document.all["news"].style.display="none";
	document.all["linknew"].style.display="none";
	document.all["bank"].style.display="none";
		document.all["lotto"].style.display="block";
}
   }
    //Start RazielBB 2550/11/17
function begin()
{
     var cat= '1';
	shows(cat);
}
//End RazielBB 2550/11/17 
//-->

<!--Downloads
function show(cata){
	       var form=document.forms[0];
    if(cata==1){
	document.all["downloadword"].style.display="block";
	document.all["downloadpro"].style.display="none";
}else if(cata==2){
	document.all["downloadword"].style.display="none";
	document.all["downloadpro"].style.display="block";
}
}
//Start RazielBB 2550/11/17
function begin()
{
var cata= '1';
	show(cata);
}
//End RazielBB 2550/11/17
//-->
<!--CreditPopular
function showecredit(Poppular){
	      var form=document.forms[0];
    if(Poppular==1){
	document.all["installmenCard"].style.display='block';
	document.all["Credit"].style.display='none';
	document.all["Reserv"].style.display='none';
	document.all["Personal"].style.display='none';

	}else if(Poppular==2){
	document.all["installmenCard"].style.display='none';
	document.all["Credit"].style.display='block';
	document.all["Reserv"].style.display='none';
	document.all["Personal"].style.display='none';
    }else if(Poppular==3){
	document.all["installmenCard"].style.display='none';
	document.all["Credit"].style.display='none';
	document.all["Reserv"].style.display='block';
	document.all["Personal"].style.display='none';

	}else if(Poppular==4){
	document.all["installmenCard"].style.display='none';
	document.all["Credit"].style.display='none';
	document.all["Reserv"].style.display='none';
	document.all["Personal"].style.display='block';
}
   }
function begin()
{
    var Poppular = '1';
	 showecredit(Poppular);
}
//Start RazielBB 2550/11/17
//-->


<!--menu
function showMenulist(catagory){
	var form=document.forms[0];
    if(catagory==1){
	document.all["menulist1"].style.display='block';
	document.all["menulist2"].style.display='none';
	document.all["menulist3"].style.display='none';
	document.all["menulist4"].style.display='none';
	document.all["menulist5"].style.display='none';
	document.all["menulist6"].style.display='none';
	}else if(catagory==2){
	document.all["menulist1"].style.display='none';
	document.all["menulist2"].style.display='block';
	document.all["menulist3"].style.display='none';
	document.all["menulist4"].style.display='none';
	document.all["menulist5"].style.display='none';
	document.all["menulist6"].style.display='none';
	}else if(catagory==3){
	document.all["menulist1"].style.display='none';
	document.all["menulist2"].style.display='none';
	document.all["menulist3"].style.display='block';
	document.all["menulist4"].style.display='none';
	document.all["menulist5"].style.display='none';
	document.all["menulist6"].style.display='none';
	}else if(catagory==4){
	document.all["menulist1"].style.display='none';
	document.all["menulist2"].style.display='none';
	document.all["menulist3"].style.display='none';
	document.all["menulist4"].style.display='block';
	document.all["menulist5"].style.display='none';
document.all["menulist6"].style.display='none';
	}else if(catagory==5){
	document.all["menulist1"].style.display='none';
	document.all["menulist2"].style.display='none';
	document.all["menulist3"].style.display='none';
	document.all["menulist4"].style.display='none';
	document.all["menulist5"].style.display='block';
	document.all["menulist6"].style.display='none';
	
		}else if(catagory==6){
	document.all["menulist1"].style.display='none';
	document.all["menulist2"].style.display='none';
	document.all["menulist3"].style.display='none';
	document.all["menulist4"].style.display='none';
	document.all["menulist5"].style.display='none';
	document.all["menulist6"].style.display='block';
	}
   }
<!--varity
   <!--
function fncSubmit(num) {
var num ;
if (num == 1) { window.open("news/newsindex.asp","frame1"); }
if (num == 2) { window.open("news/sportindex.asp","frame1"); }
if (num == 3) { window.open("news/enterindex.asp","frame1"); }
if (num == 4) { window.open("news/itindex.asp","frame1"); }
if (num == 5) { window.open("news/kansindex.asp","frame1"); }
if (num == 6) { window.open("news/gamescoppydoo.html","frame1"); }
if (num == 7) { window.open("news/jungle.html","frame1"); }
if (num == 8) { window.open("news/bucketball.html","frame1"); }
if (num == 9) { window.open("news/gamecavilpic.html","frame1"); }
if (num == 10) { window.open("news/hotclip1.html","frame1"); }
if (num == 11) { window.open("news/hotclip2.html","frame1"); }
if (num == 12) { window.open("news/hotclip3.html","frame1"); }
if (num == 13) { window.open("news/hotclip4.html","frame1"); }
}
// -->
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_findObj(n, d) { //v4.01
var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
   <!--newletter
   
   
function  insert ()
{
var form=document.forms['Newletter'];
form.action="NewletterSave.asp";
var M_Name=form.M_Name.value;
if(M_Name.length==0)
{ 
alert("กรุณากรอกชื่อผู้ต้องการรับข่าวสาร");
form.M_Name.focus();
return false;
}
var E_mail=form.E_mail.value;
if(E_mail.length==0)
{ 
alert("กรุณากรอก E_mail");
form.E_mail.focus();
return false;
}
form.submit();
}


   <!--registerwebpartner
   
   
function  insert ()
{
var form=document.forms['partner'];
form.action="partnerSave.asp";
var name=form.name.value;
if(name.length==0)
{ 
alert("กรุณากรอกชื่อนามสกุล");
form.name.focus();
return false;
}


var tel=form.tel.value;
if(tel.length==0)
{ 
alert("กรุณากรอกเบอร์โทรศัพท์");
form.tel.focus();
return false;
}
var website=form.website.value;
if(website.length==0)
{ 
alert("ที่อยู่เว็บไซต์");
form.website.focus();
return false;
}
var email=form.email.value;
if(email.length==0)
{ 
alert("กรุณากรอกอีเมล์");
form.email.focus();
return false;
}
form.submit();
}
function  giftset()
{
var URL = "./giftsetdetail.html"
//window.open("./giftsetdetail.html" News","width=580,height=530"); 
myRef = window.open(URL,'gifset','left=20,top=20,width=550,height=450,toolbar=0,scrollbars=0,resizable=0');
}
function  giftsetmanu()
{
var URL = "./giftsetmanu.html"
//window.open("./giftsetmanu.html" News","width=580,height=530"); 
myRef = window.open(URL,'gifsetmanu','left=20,top=20,width=550,height=350,toolbar=0,scrollbars=0,resizable=0');
}
function  giftsetscib()
{
var URL = "./giftsetscib.html"
//window.open("./giftsetscib.html" News","width=580,height=320"); 
myRef = window.open(URL,'gifsetscib','left=20,top=20,width=550,height=320,toolbar=0,scrollbars=0,resizable=0');
}




   
   

