var strLocation = new String(location);
strLocation = strLocation.toLowerCase();
strLocation = strLocation.replace('http://bongda.com.vn/','/');
strLocation = strLocation.replace('http://www.bongda.com.vn/','/');
strLocation = strLocation.replace('default.aspx','');

var isHome = false;
if(strLocation == '/' || strLocation == '') isHome = true;

function locationIn(arrUrlRules){
	var res = false;
	for(var i=0;i<arrUrlRules.length; i++)
	{
		if(strLocation.indexOf(arrUrlRules[i].toLowerCase()) >= 0){
			res=true;
			break;
		}
	}
	return res;
}
