function cms_switchLang(toLang) {
	domain = document.domain;
	url = window.location.href;
	if (toLang == 'chi') {
		target = url.substring(0, url.lastIndexOf("/1")) + "/2";
		if (target.length < 5) {
			target = '/index.php/FrontEnd/getLandingBox/1/2';
		}
	} else {
		target = url.substring(0, url.lastIndexOf("/2")) + "/1";
	}
	self.location = target;
}

function getNoOfDate(intMonth, intYear) {
	var dteMonth = new Date(intYear,intMonth);//
	var intDaysInMonth = 28;//the fewest number of days in a month
	var blnDateFound = false;//Set a variable to check on the while loop

	while (!blnDateFound)
	{
	dteMonth.setDate(intDaysInMonth+1);//create the next possible day
	var intNewMonth = dteMonth.getMonth();//new month date

	if (intNewMonth != intMonth)//if the month has changed
	  blnDateFound = true;
	else
	  intDaysInMonth++;
	}
	return intDaysInMonth;
}
/*
var message="Disabled la ...";
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")
*/

