function FlashObj(objName) {
    if (navigator.appName.indexOf("Microsoft") != -1) {
        return window[objName]
    }
    else {
        return document[objName]
    }
}

function SelectColor(strFlash, objName, nColor) {
	FlashObj(strFlash).SetColor(nColor);
	var oElement = document.getElementById("PaletteButton").getElementsByTagName("div");
	var nCnt;
	for(nCnt = 0; nCnt < 16; nCnt++)
	{
		oElement.item(nCnt).style.borderColor = "#aaaaaa";
	}
	objName.style.borderColor = "#505050";
}

function SelectPen(strFlash, objName, nWidth) {
	FlashObj(strFlash).SetPen(nWidth);
	var oElement = document.getElementById("PaletteButton").getElementsByTagName("div");
	var nCnt;
	for(nCnt = 16; nCnt < 22; nCnt++)
	{
		oElement.item(nCnt).style.borderColor = "#aaaaaa";
	}
	objName.style.borderColor = "#505050";
}

function SelectSize(nParentCategoryId, nCategoryId, nOrderId, nPage) {
	var nSizeId = document.getElementById("DecomeSize").value;
	var href = "VSearchBlogByTag.jsp?PD=" + nParentCategoryId + "&CD=" +nCategoryId  + "&OD=" + nOrderId + "&PG=" + nPage + "&SD=" + nSizeId;
	//alert(href);
	location.href = href;
}