function switchlang(lang)
{
	var ourl=window.location.href;
	var url=window.location.href.split("/");
	var file=url[url.length-1];
	
	
	/*Find Current Lang*/
	var isCurrentEng = ourl.indexOf("/EN/")>=0;
	var isSelEng = lang.indexOf("EN")>=0;
	var fC=0;
	var fS=0;
	if(isCurrentEng)fC=1;
	if(isSelEng)fS=1;
	
	/*BASE ON ENG*/
	switch(fC.toString()+fS.toString()){
	case "00":
		/*CurretnThai,Select Thai*/
		break;
	case "01":
		/*Curent thai,Select Eng*/
		if(ourl.toLocaleLowerCase().indexOf(".jsp")>=0){
		window.location.href=ourl.replace(file,"EN/"+file);
		}else{
			
			window.location.href=ourl+"EN/";
		}
		break;
	case "10":
		/*Curent Eng,Select Thai*/
		if(ourl.toLocaleLowerCase().indexOf(".jsp")>=0){
		window.location.href=ourl.replace("/EN/","/");
		}else{
			window.location.href=ourl.replace("/EN/","");
		}
		break;
	case "11":
		break;
	}
	
	
	
	
	return;
	
}
//fontsize();

function fontchange(size)
{
	
}
function fontsize()
{
	var ourl=window.location.href;
	var isfound=false;
	if(ourl.indexOf("fs=s")>=0)
	{
		isfound=true;
		document.body.style.fontSize ="10px";	
	}
	if(ourl.indexOf("fs=l")>=0)
	{
		isfound=true;
		document.body.style.fontSize ="15px";	
	}
	 if(!isfound){document.body.style.fontSize ="";}
	 
}
function resizeText(multiplier) { 
	  if (document.body.style.fontSize == "") 
	  { 
	    document.body.style.fontSize = "12px"; 
	  } 

	  document.body.style.fontSize ="10px";
	  document.body.style.fontSize ="15px";
	 // document.body.style.fontSize = parseFloat(document.body.style.fontSize) + (multiplier * 0.2) + "em"; 
	}
