function ChgLng(strName) {
	SetFontSize(strName);
	
}

function SetStyle(strName)
{
	var intCount;
	for(intCount = 0;intCount < document.styleSheets.length; intCount++) {

		if(document.styleSheets[intCount].title == strName)
			document.styleSheets[intCount].disabled = true;
		else
			document.styleSheets[intCount].disabled = false;
	}

	var imgObjSmall = document.getElementById("txtSmall");
	var imgObjLarge = document.getElementById("txtLarge");
	var imgObjPrint = document.getElementById("txtPrint");

	if(strName == "largeText")
		strName = "smallText";
	else if(strName == "smallText")
		strName = "largeText";

	if(strName == "smallText") {
		imgObjSmall.src = "/th/cmnFiles/image/btn_smText_selected.gif";
		imgObjLarge.src = "/th/cmnFiles/image/btn_lgText.gif";
		imgObjPrint.src = "/th/cmnFiles/image/btn_print.gif";
	}

	if(strName == "largeText") {
		imgObjSmall.src = "/th/cmnFiles/image/btn_smText.gif";
		imgObjLarge.src = "/th/cmnFiles/image/btn_lgText_selected.gif";
		imgObjPrint.src = "/th/cmnFiles/image/btn_print.gif";
	}

	SetFontSize(strName);
}

function chageImg(obj, imgSRC) {
	var str = new String(obj.src);
	var result = str.search("_selected");
	if(result < 0) {
		obj.src = imgSRC
	}
}

function changeIcon(strName) {
	if(strName != "smallText" && strName != "largeText")
		strName = "smallText";

	var imgObjSmall = document.getElementById("txtSmall");
	var imgObjLarge = document.getElementById("txtLarge");
	var imgObjPrint = document.getElementById("txtPrint");

	if(strName == "smallText") {
		imgObjSmall.src = "/th/cmnFiles/image/btn_smText_selected.gif";
		imgObjLarge.src = "/th/cmnFiles/image/btn_lgText.gif";
		imgObjPrint.src = "/th/cmnFiles/image/btn_print.gif";
	}

	if(strName == "largeText") {
		imgObjSmall.src = "/th/cmnFiles/image/btn_smText.gif";
		imgObjLarge.src = "/th/cmnFiles/image/btn_lgText_selected.gif";
		imgObjPrint.src = "/th/cmnFiles/image/btn_print.gif";
	}
}

