/***********************************************************************************
**** Flash Link Script **************************************************************
**** Start **************************************************************************
************************************************************************************/



/***********************************************************************************
**** Left Menu Script **************************************************************
**** Start **************************************************************************
************************************************************************************/
function leftMenuOnOff(mMode) {
	var source = event.srcElement;
	if (typeof(source.mouseAction) == "undefined") return;
	if (source.mouseAction == "false") return;
	leftMenuBulletOnOff(source.id,mMode);
}

function leftMenuBulletOnOff(objId,mMode) {
	var obj = document.getElementById("cursor_" + objId);	// 4µª½º ¸Þ´º Ä¿¼­
	if (obj) obj.src = getThisSrc(obj.src,mMode);
	var obj = document.getElementById("bu_" + objId);	// 5µª½º ¸Þ´º ºÒ¸´
	if (obj) obj.src = getThisSrc(obj.src,mMode);
}

function setLeftMenu() {
	var dirArray = nowFilePath.split('/');
	for (i = 1; i < dirArray.length; i++) {
		var prevDir = dirArray[i-1];
		var nowDir = dirArray[i];
		if (prevDir.indexOf('IBS') < 0 && nowDir.indexOf('IBS') < 0 && nowDir.indexOf('.jsp') < 0) {
			var thisLeftMenuId = prevDir+"_"+nowDir;
			var obj = document.getElementById(thisLeftMenuId);
			var objSub = document.getElementById("leftSub_"+thisLeftMenuId);
			if (obj) {
				if (objSub) objSub.style.display = "";
				leftMenuBulletOnOff(thisLeftMenuId,'on');
				obj.innerHTML = "<span>" + obj.innerHTML + "</span>";
				obj.mouseAction = "false";
			}
		}
	}
}

/***********************************************************************************
**** Left Menu Script **************************************************************
**** End ***************************************************************************
************************************************************************************/


/****** ÆË¾÷Ã¢ ¿ÀÇÂ **************************************************************/
function popOpen(url) {
	var positionX = (screen.width-400)/2;
	var positionY = (screen.height-250)/2;
	window.open(url,"","left="+positionX+",top="+positionY+",width=400,height=250,toolbar=no,scrollbars=no" );
}

function popOpenLink(url) {
	var positionX = (screen.width-400)/2;
	var positionY = (screen.height-250)/2;
	window.open(url,"","left="+positionX+",top="+positionY+",width=550,height=640,toolbar=no,scrollbars=no" );
}

/****** ÆË¾÷Ã¢ ¸®»çÀÌÁî **************************************************************/
function popResize() {
	var thisX = document.getElementById("offsetTable").offsetWidth;
	var thisY = document.getElementById("offsetTable").offsetHeight;
	var headerY = document.getElementById("offsetTableHeader").offsetHeight;
	var footerY = document.getElementById("offsetTableFooter").offsetHeight;
	var maxThisX = screen.width - 50;
	var maxThisY = screen.height - 80;
	var marginY = headerY + footerY + 20; //¸¶Áö¸· ¼ö´Â »óÈ²¿¡µû¶ó ¾Ë¸Â°Ô ³ÖÀ¸¼¼¿ä. (ÅÛÇÃ¸´ÀÇ Çì´õ³ôÀÌ + Ç²ÅÍ ³ôÀÌ + ¾ËÆÄ)
	var scrollbarValue = "no";
	if (thisX > maxThisX) {
		scrollbarValue = "yes";
		thisX = maxThisX;
	}
	if (thisY > maxThisY - marginY) {
		scrollbarValue = "yes";
		thisX += 19;
		thisY = maxThisY - marginY;
	}
	window.document.body.scroll = scrollbarValue;
	window.resizeTo(thisX+10,thisY+marginY);
	
	var windowX = (screen.width - (thisX+10))/2;
	var windowY = (screen.height - (thisY+marginY))/2 - 20;
	window.moveTo(windowX,windowY);
}


/****** µð½ºÇÃ·¹ÀÌ ÄÁÆ®·Ñ **************************************************************/
function setDisplay(objName,status) {
	var obj = document.all[objName];
	if (obj) {
		if (status == 'on') obj.style.display = "";
		if (status == 'off') obj.style.display = "none";
	}
}


/****** 4/5µª½º Å¸ÀÌÆ² »Ñ·ÁÁÖ´Â ÇÔ¼ö ***************************************************/
function makeDetailTitle(nowPart,imgUrl,thisTableWidth) {
	if (thisTableWidth == null || thisTableWidth == "") thisTableWidth = "590";
	var titleImageHTML = ""
	titleImageHTML += "<table cellpadding='0' cellspacing='0' border='0' width='" + thisTableWidth + "'>"
	titleImageHTML += "	<tr>"
	titleImageHTML += "		<td>"
	titleImageHTML += "		<table cellpadding='0' cellspacing='0' border='0' width='100%'>"
	titleImageHTML += "			<tr>"
	titleImageHTML += "				<td valign='top'><img src='/images/common/titles/" + nowPart + "_bar.gif' border='0' width='12'></td>"
	titleImageHTML += "				<td valign='top' width='99%'>"
	titleImageHTML += "				<table cellpadding='0' cellspacing='0' border='0' width='100%'>"
	titleImageHTML += "					<tr>"
	titleImageHTML += "						<td><img src='" + imgUrl + "' border='0'></td>"
	titleImageHTML += "					</tr>"
	titleImageHTML += "					<tr>"
	titleImageHTML += "						<td><img src='/images/common/titles/" + nowPart + "_text.gif' border='0'></td>"
	titleImageHTML += "					</tr>"
	titleImageHTML += "				</table>"
	titleImageHTML += "				</td>"
	titleImageHTML += "			</tr>"
	titleImageHTML += "		</table>"
	titleImageHTML += "		</td>"
	titleImageHTML += "	</tr>"
	titleImageHTML += "</table>"
	return document.write(titleImageHTML);
}


/****** Text Å¸ÀÌÆ² »Ñ·ÁÁÖ´Â ÇÔ¼ö ***************************************************/
function makeTextTitle(nowPart,titleText) {
	var textTitleHTML = ""
	textTitleHTML += "<table cellpadding='0' cellspacing='0' border='0' width='590'>"
	textTitleHTML += "	<tr>"
	textTitleHTML += "		<td>"
	textTitleHTML += "		<table cellpadding='0' cellspacing='0' border='0' width='100%'>"
	textTitleHTML += "			<tr>"
	textTitleHTML += "				<td valign='top'><img src='/images/common/titles/" + nowPart + "_bar_short.gif' border='0' width='12'></td>"
	textTitleHTML += "				<td valign='top' width='99%' class='textTitle'>" + titleText + "</td>"
	textTitleHTML += "			</tr>"
	textTitleHTML += "		</table>"
	textTitleHTML += "		</td>"
	textTitleHTML += "	</tr>"
	textTitleHTML += "</table>"
	return document.write(textTitleHTML);
}


/***********************************************************************************
**** Image Tab Button On Off Script ************************************************
**** Start **************************************************************************
************************************************************************************/
var nowSelectedTab = "";
function setTabOn() {
	var obj = document.getElementById(nowSelectedTab);
	if (obj) {
		setTabMode(obj,"on");
		obj.style.zIndex = "5";
		setTabTd();
	}
}

function setTabTd() {
	var obj = document.getElementById(nowSelectedTab);
	var objTd = document.getElementById(nowSelectedTab+"Td");
	if (objTd) objTd.width = obj.width - 3;
	setTimeout("setTabTd()",10);
}

function setTabMode(obj,flag) {
	if (flag == "on") {
		obj.style.position = "absolute";
		obj.style.zIndex = "10"
	} else {
		obj.style.position = "static";
		obj.style.zIndex = "1"
	}
	obj.src = getThisSrc(obj.src,flag);
}

function getThisSrc(imgPath,flag) {	// ÁÂÃø¸Þ´º½ºÅ©¸³Æ®µµ °øÀ¯ÇÔ. ¼öÁ¤ ½Ã ÁÖÀÇÇØÁÖ¼¼¿ä.
	var imgPathLen = imgPath.length;
	var imgPathFlag = imgPath.lastIndexOf("/");
	var imgName = imgPath.substring(0,imgPathFlag+1);
	var fileType = imgPath.substring(imgPath.lastIndexOf("."),imgPathLen);
	var fileName = imgPath.substring(imgPathFlag+1,imgPath.lastIndexOf("_"));
	var nowImgUrl = imgName + fileName + "_" + flag + fileType;
	return nowImgUrl;
}
/***********************************************************************************
**** Image Tab Button On Off Script ************************************************
**** End **************************************************************************
************************************************************************************/


/***********************************************************************************
**** Text Tab Button On Off Script *************************************************
**** Start **************************************************************************
************************************************************************************/
function makeTextTab() {
	var thisGoodsNameArray = nowAllGoodsName.substring(0,nowAllGoodsName.length-1).split(';');
	var thisGoodsCodeArray = nowAllGoodsCode.substring(0,nowAllGoodsCode.length-1).split(';');
	var thisGoodsMaxNo = thisGoodsCodeArray.length;
	var nowRowMaxWidth = 590;
	var nowRowWidth = 0;
	var thisSeparatorHTML = "";
	var thisTextTabHTML = "";
	
	thisTextTabHTML += "<table cellpadding='0' cellspacing='0' border='0' width='" + nowRowMaxWidth + "'>";
	thisTextTabHTML += "	<tr>";
	thisTextTabHTML += "		<td background='/images/common/etc/tab_bg02.gif'>";
	
	for (i = 0; i < thisGoodsMaxNo; i++) {
		thisTextTabHTML += "		<table id='thisTabArea" + i + "' cellpadding='0' cellspacing='0' border='0' height='34' align='left'>";
		thisTextTabHTML += "			<tr>";
		thisTextTabHTML += "				<td valign='bottom'>";
		
		if (thisGoodsCodeArray[i] == nowSelectedGoodsCode) {
			thisTextTabHTML += "				<table cellpadding='0' cellspacing='0' border='0' bgcolor='#E3E3E3'>";
			thisTextTabHTML += "					<tr>";
			thisTextTabHTML += "						<td style='padding-top:1px;padding-right:1px;padding-left:1px;'>";
			thisTextTabHTML += "						<table cellpadding='0' cellspacing='0' border='0' bgcolor='#FFFFFF'>";
			thisTextTabHTML += "							<tr>";
			thisTextTabHTML += "								<td class='c' style='color:#000000;padding:7px 14px 2px 14px;' nowrap><span style='white-space:nowrap;'>" + thisGoodsNameArray[i] + "</span></td>";
			thisTextTabHTML += "							</tr>";
			thisTextTabHTML += "						</table>";
			thisTextTabHTML += "						</td>";
			thisTextTabHTML += "					</tr>";
			thisTextTabHTML += "				</table>";
		} else {
			thisTextTabHTML += "				<table cellpadding='0' cellspacing='0' border='0' bgcolor='#E3E3E3' onclick='goNowSelectedGoods(\"" + thisGoodsCodeArray[i] + "\")' style='cursor:hand;'>";
			thisTextTabHTML += "					<tr>";
			thisTextTabHTML += "						<td style='padding:1px;'>";
			thisTextTabHTML += "						<table cellpadding='0' cellspacing='0' border='0' bgcolor='#F7F7F7'>";
			thisTextTabHTML += "							<tr>";
			thisTextTabHTML += "								<td class='sc' style='color:#888888;padding:4px 12px 2px 12px;' nowrap><span style='white-space:nowrap;'>" + thisGoodsNameArray[i] + "</span></td>";
			thisTextTabHTML += "							</tr>";
			thisTextTabHTML += "						</table>";
			thisTextTabHTML += "						</td>";
			thisTextTabHTML += "					</tr>";
			thisTextTabHTML += "				</table>";
		}
		
		thisTextTabHTML += "				</td>";
		thisTextTabHTML += "				<td valign='bottom'><img src='/images/common/trans.gif' width='2' height='1' border='0'></td>";
		thisTextTabHTML += "			</tr>";
		thisTextTabHTML += "		</table>";
		thisTextTabHTML += "		<span id='thisTabSeparator" + i + "'></span>";
	}
	
	thisTextTabHTML += "		</td>";
	thisTextTabHTML += "	</tr>";
	thisTextTabHTML += "	<tr>";
	thisTextTabHTML += "		<td bgcolor='#E9E9E9'>";
	thisTextTabHTML += "		<table cellpadding='0' cellspacing='0' border='0' width='589'>";
	thisTextTabHTML += "			<tr>";
	thisTextTabHTML += "				<td height='9' bgcolor='#FFFFFF'></td>";
	thisTextTabHTML += "			</tr>";
	thisTextTabHTML += "		</table>";
	thisTextTabHTML += "		</td>";
	thisTextTabHTML += "	</tr>";
	thisTextTabHTML += "</table>";
	
	thisSeparatorHTML += "		<table cellpadding='0' cellspacing='0' border='0' height='34'>";
	thisSeparatorHTML += "			<tr>";
	thisSeparatorHTML += "				<td></td>";
	thisSeparatorHTML += "			</tr>";
	thisSeparatorHTML += "		</table>";
	
	document.getElementById("thisTextTabArea").innerHTML = thisTextTabHTML;
	
	for (i = 0; i < thisGoodsMaxNo; i++) {
		nowRowWidth += document.getElementById("thisTabArea"+i).offsetWidth;
		if (nowRowWidth >= nowRowMaxWidth) {
			var obj = document.getElementById("thisTabSeparator"+(i-1));
			if (obj) obj.innerHTML = thisSeparatorHTML;
			nowRowWidth = document.getElementById("thisTabArea"+i).offsetWidth;
		}
	}
}
/***********************************************************************************
**** Text Tab Button On Off Script *************************************************
**** End **************************************************************************
************************************************************************************/



/***********************************************************************************
**** Select Box Design Script ******************************************************
**** Start *************************************************************************
************************************************************************************/
var nowOpenedSelectBox = "";
var mousePosition = "";

function selectThisValue(thisId,thisIndex,thisValue,thisString) {
	var objId = thisId;
	var nowIndex = thisIndex;
	var valueString = thisString;
	var sourceObj = document.getElementById(objId);
	var nowSelectedValue = document.getElementById(objId+"SelectBoxOptionValue"+nowIndex).value;
	hideOptionLayer(objId);
	if (sourceObj) sourceObj.value = nowSelectedValue;
	settingValue(objId,valueString);
	selectBoxFocus(objId);
	if (sourceObj.onchange) sourceObj.onchange();
}

function settingValue(thisId,thisString) {
	var objId = thisId;
	var valueString = thisString;
	var selectedArea = document.getElementById(objId+"selectBoxSelectedValue");
	if (selectedArea) selectedArea.innerHTML = valueString;
}

function viewOptionLayer(thisId) {
	var objId = thisId;
	var optionLayer = document.getElementById(objId+"selectBoxOptionLayer");
	if (optionLayer) optionLayer.style.display = "";
	nowOpenedSelectBox = objId;
	setMousePosition("inBox");
}

function hideOptionLayer(thisId) {
	var objId = thisId;
	var optionLayer = document.getElementById(objId+"selectBoxOptionLayer");
	if (optionLayer) optionLayer.style.display = "none";
}

function setMousePosition(thisValue) {
	var positionValue = thisValue;
	mousePosition = positionValue;
}

function clickMouse() {
	if (mousePosition == "out") hideOptionLayer(nowOpenedSelectBox);
}

function selectBoxFocus(thisId) {
	var objId = thisId;
	var obj = document.getElementById(objId + "selectBoxSelectedValue");
	obj.className = "selectBoxSelectedAreaFocus";
	obj.focus();
}

function selectBoxBlur(thisId) {
	var objId = thisId;
	var obj = document.getElementById(objId + "selectBoxSelectedValue");
	obj.className = "selectBoxSelectedArea";
}

function makeSelectBox01(thisId) {
	var downArrowSrc = "/IBS/kebmall/images/common/etc/selectbox_bu01.gif";	//¿À¸¥ÂÊ È­»ìÇ¥ÀÌ¹ÌÁö
	var downArrowSrcWidth = 13;	//¿À¸¥ÂÊ È­»ìÇ¥ÀÌ¹ÌÁö width
	var optionHeight = 17; // option ÇÏ³ªÀÇ ³ôÀÌ
	var optionMaxNum = 6; // ÇÑ¹ø¿¡ º¸¿©Áö´Â optionÀÇ °¹¼ö
	var optionInnerLayerHeight = "";
	var objId = thisId;
	var obj = document.getElementById(objId);
	var selectBoxWidth = parseInt(obj.style.width);
	var selectBoxHeight = parseInt(obj.style.height);
	if (obj.options.length > optionMaxNum) optionInnerLayerHeight = "height:"+ (optionHeight * optionMaxNum) + "px";
	newSelect  = "<table id='" + objId + "selectBoxOptionLayer' cellpadding='0' cellspacing='0' border='0' style='position:absolute;z-index:100;display:none;' onMouseOver=\"viewOptionLayer('"+ objId + "')\" onMouseOut=\"setMousePosition('out')\">";
	newSelect += "	<tr>";
	newSelect += "		<td height='" + (selectBoxHeight - 1) + "' style='cursor:hand;' onClick=\"hideOptionLayer('"+ objId + "')\"></td>";
	newSelect += "	</tr>";
	newSelect += "	<tr>";
	newSelect += "		<td bgcolor='#CECEC7' style='padding:0px 1px 1px 1px'>";
	newSelect += "		<table cellpadding='0' cellspacing='0' border='0' width='100%'>";
	newSelect += "			<tr>";
	newSelect += "				<td height='3' bgcolor='#FFFFFF'></td>";
	newSelect += "			</tr>";
	newSelect += "		</table>";
	newSelect += "		<div class='selectBoxOptionInnerLayer' style='width:" + (selectBoxWidth-2) + "px;" + optionInnerLayerHeight + "'>";
	newSelect += "		<table cellpadding='0' cellspacing='0' border='0' width='100%' style='table-layout:fixed;word-break:break-all;'>";
	for (var i=0 ; i < obj.options.length ; i++) {
		var nowValue = obj.options[i].value;
		var nowText = obj.options[i].text;
		newSelect += "			<tr>";
		newSelect += "				<td height='" + optionHeight + "' class='selectBoxOption' onMouseOver=\"this.className='selectBoxOptionOver'\" onMouseOut=\"this.className='selectBoxOption'\" onClick=\"selectThisValue('"+ objId + "'," + i + ",'" + nowValue + "','" + nowText + "')\" style='cursor:hand;'>" + nowText + "</td>";
		newSelect += "				<input type='hidden' id='"+ objId + "SelectBoxOptionValue" + i + "' value='" + nowValue + "'>";
		newSelect += "			</tr>";
	}
	newSelect += "		</table>";
	newSelect += "		</div>";
	newSelect += "		<table cellpadding='0' cellspacing='0' border='0' width='100%'>";
	newSelect += "			<tr>";
	newSelect += "				<td height='4' bgcolor='#FFFFFF'></td>";
	newSelect += "			</tr>";
	newSelect += "		</table>";
	newSelect += "		</td>";
	newSelect += "	</tr>";
	newSelect += "</table>";
	newSelect += "<table cellpadding='0' cellspacing='1' border='0' bgcolor='#CECEC7' onClick=\"viewOptionLayer('"+ objId + "')\" style='cursor:hand;' onMouseOut=\"setMousePosition('out')\">";
	newSelect += "	<tr>";
	newSelect += "		<td bgcolor='#FFFFFF'>";
	newSelect += "		<table cellpadding='0' cellspacing='0' border='0'>";
	newSelect += "			<tr>";
	newSelect += "				<td><div id='" + objId + "selectBoxSelectedValue' class='selectBoxSelectedArea' style='width:" + (selectBoxWidth - downArrowSrcWidth - 2) + "px;height:" + (selectBoxHeight - 2) + "px;overflow:hidden;' onBlur=\"selectBoxBlur('" + objId + "')\"></div></td>";
	newSelect += "				<td><img src='" + downArrowSrc + "' width='" + downArrowSrcWidth + "' border='0'></td>";
	newSelect += "			</tr>";
	newSelect += "		</table>";
	newSelect += "		</td>";
	newSelect += "	</tr>";
	newSelect += "</table>";
	document.write(newSelect);
	
	var haveSelectedValue = false;
	for (var i=0 ; i < obj.options.length ; i++) {
		if (obj.options[i].selected == true) {
			haveSelectedValue = true;
			settingValue(objId,obj.options[i].text);
		}
	}
	if (!haveSelectedValue) settingValue(objId,obj.options[0].text);
}

function makeSelectBox02(thisId) {
	var downArrowSrc = "/IBS/kebmall/images/common/etc/selectbox_bu02.gif";	//¿À¸¥ÂÊ È­»ìÇ¥ÀÌ¹ÌÁö
	var downArrowSrcWidth = 15;	//¿À¸¥ÂÊ È­»ìÇ¥ÀÌ¹ÌÁö width
	var optionHeight = 19; // option ÇÏ³ªÀÇ ³ôÀÌ
	var optionMaxNum = 6; // ÇÑ¹ø¿¡ º¸¿©Áö´Â optionÀÇ °¹¼ö
	var optionInnerLayerHeight = "";
	var objId = thisId;
	var obj = document.getElementById(objId);
	var selectBoxWidth = parseInt(obj.style.width);
	var selectBoxHeight = parseInt(obj.style.height);
	if (obj.options.length > optionMaxNum) optionInnerLayerHeight = "height:"+ (optionHeight * optionMaxNum) + "px";
	newSelect  = "<table id='" + objId + "selectBoxOptionLayer' cellpadding='0' cellspacing='0' border='0' style='position:absolute;z-index:100;display:none;' onMouseOver=\"viewOptionLayer('"+ objId + "')\" onMouseOut=\"setMousePosition('out')\">";
	newSelect += "	<tr>";
	newSelect += "		<td height='" + (selectBoxHeight - 1) + "' style='cursor:hand;' onClick=\"hideOptionLayer('"+ objId + "')\"></td>";
	newSelect += "	</tr>";
	newSelect += "	<tr>";
	newSelect += "		<td bgcolor='#CECEC7' style='padding:0px 1px 1px 1px'>";
	newSelect += "		<table cellpadding='0' cellspacing='0' border='0' width='100%'>";
	newSelect += "			<tr>";
	newSelect += "				<td height='3' bgcolor='#FFFFFF'></td>";
	newSelect += "			</tr>";
	newSelect += "		</table>";
	newSelect += "		<div class='selectBoxOptionInnerLayer' style='width:" + (selectBoxWidth-2) + "px;" + optionInnerLayerHeight + "'>";
	newSelect += "		<table cellpadding='0' cellspacing='0' border='0' width='100%' style='table-layout:fixed;word-break:break-all;'>";
	for (var i=0 ; i < obj.options.length ; i++) {
		var nowValue = obj.options[i].value;
		var nowText = obj.options[i].text;
		if (typeof(obj.options[i].separator) == "undefined") {
			newSelect += "			<tr>";
			newSelect += "				<td height='" + optionHeight + "' class='selectBoxOption' onMouseOver=\"this.className='selectBoxOptionOver'\" onMouseOut=\"this.className='selectBoxOption'\" onClick=\"selectThisValue('"+ objId + "'," + i + ",'" + nowValue + "','" + nowText + "')\" style='cursor:hand;padding-left:15px;'>" + nowText + "</td>";
			newSelect += "				<input type='hidden' id='"+ objId + "SelectBoxOptionValue" + i + "' value='" + nowValue + "'>";
			newSelect += "			</tr>";
		} else {
			newSelect += "			<tr>";
			newSelect += "				<td height='" + optionHeight + "' class='selectBoxOption' onMouseOver=\"this.className='selectBoxOptionOver'\" onMouseOut=\"this.className='selectBoxOption'\" onClick=\"selectThisValue('"+ objId + "'," + i + ",'" + nowValue + "','" + nowText + "')\" style='cursor:hand;'>" + nowText + "</td>";
			newSelect += "				<input type='hidden' id='"+ objId + "SelectBoxOptionValue" + i + "' value='" + nowValue + "'>";
			newSelect += "			</tr>";
		}
	}
	newSelect += "		</table>";
	newSelect += "		</div>";
	newSelect += "		<table cellpadding='0' cellspacing='0' border='0' width='100%'>";
	newSelect += "			<tr>";
	newSelect += "				<td height='4' bgcolor='#FFFFFF'></td>";
	newSelect += "			</tr>";
	newSelect += "		</table>";
	newSelect += "		</td>";
	newSelect += "	</tr>";
	newSelect += "</table>";
	newSelect += "<table cellpadding='0' cellspacing='1' border='0' bgcolor='#CECEC7' onClick=\"viewOptionLayer('"+ objId + "')\" style='cursor:hand;' onMouseOut=\"setMousePosition('out')\">";
	newSelect += "	<tr>";
	newSelect += "		<td bgcolor='#FFFFFF'>";
	newSelect += "		<table cellpadding='0' cellspacing='0' border='0'>";
	newSelect += "			<tr>";
	newSelect += "				<td><div id='" + objId + "selectBoxSelectedValue' class='selectBoxSelectedArea' style='width:" + (selectBoxWidth - downArrowSrcWidth - 2) + "px;height:" + (selectBoxHeight - 2) + "px;overflow:hidden;' onBlur=\"selectBoxBlur('" + objId + "')\"></div></td>";
	newSelect += "				<td><img src='" + downArrowSrc + "' width='" + downArrowSrcWidth + "' border='0'></td>";
	newSelect += "			</tr>";
	newSelect += "		</table>";
	newSelect += "		</td>";
	newSelect += "	</tr>";
	newSelect += "</table>";
	document.write(newSelect);
	
	var haveSelectedValue = false;
	for (var i=0 ; i < obj.options.length ; i++) {
		if (obj.options[i].selected == true) {
			haveSelectedValue = true;
			settingValue(objId,obj.options[i].text);
		}
	}
	if (!haveSelectedValue) settingValue(objId,obj.options[0].text);
}

document.onmousedown = clickMouse;

/***********************************************************************************
**** Select Box Design Script ******************************************************
**** End ***************************************************************************
************************************************************************************/

/***********************************************************************************
**** notice ticker ******************************************************
************************************************************************************/
function NvChange() {

	this.version = "0.1";
	this.name = "NvChange";
	this.item = new Array();
	this.itemcount = 0;
	this.itemoffset = 0;
	this.item_i = new Array();
	this.item_icount = 0;
	this.item_ioffset = 0;
	this.currentspeed = 0;
	this.scrollspeed = 50;
	this.pausedelay = 1000;
	this.pausemouseover = false;
	this.stop = 0;
	this.height = 100;
	this.heightGap = 0;
	this.width = 100;
	this.height_i = 100;
	this.width_i = 100;
	this.stopHeight=0;
	this.count=0;
	this.flag=true;
	this.position="absolute";
	this.item_position="absolute";

	this.add = function () {
		var text = arguments[0];
		this.item[this.itemcount] = text;
		this.itemcount = this.itemcount + 1;
	};

	this.start = function () {
		this.display();
		this.currentspeed = this.scrollspeed;
		obj = document.getElementById(this.name+'item0').style;
		obj.display='block';
		this.count++;
		setTimeout(this.name+'.scroll()',this.currentspeed);
	};
    
    this.display = function () {
		document.write('<div id="'+this.name+'" style="height:'+this.height+';width:'+this.width+';position:'+this.position+';overflow:hidden;"">');
		for(var i = 0; i < this.itemcount; i++) {
				document.write('<div id="'+this.name+'item'+i+'"style="left:0px; width:'+this.width+';position:'+this.item_position+'; display:none; ">');
				document.write(this.item[i]);
				document.write('</div>');
		}
		document.write('</div>');
	};
    
    this.scroll = function () {
		this.currentspeed = this.scrollspeed; 
		if ( !this.stop ) {
			this.imageChange();
		}
		window.setTimeout(this.name+".scroll()",this.currentspeed);
	};
    
    this.imageChange = function ()
	{
		for (k = 0; k < this.item_icount; k++) {
			obj_i = document.getElementById(this.name+'item_i'+k).style;
			if (this.count % this.item_icount == k) {
				obj_i.display = 'block';
			} else {
				obj_i.display = 'none';
			}
		}
		for (k = 0; k < this.itemcount; k++) {
			obj = document.getElementById(this.name+'item'+k).style;
			if (this.count % this.itemcount == k) {
				obj.display = 'block';
			} else {
				obj.display = 'none';
			}
		}
		this.count++;
	}
    
}
