<!--
//
// ¼¿·ºÆ®Æû ·¹ÀÌ¾î·Î º¯°æÇÏ±â
// ÀÛ¼ºÀÚ : IEZN<iezn@iezn.com>
// È¨ÆäÀÌÁö : http://iezn.com
//
// »ç¿ë¹æ¹ý
// ¼¿·ºÆ®Æû ¹Ù·ÎµÚ¿¡ ´ÙÀ½ ½ºÅ©¸³Æ®¸¦ ³Ö¾îÁØ´Ù.
// ¼¿·ºÆ®Æû ³×ÀÓÀº id·Îµµ ¼±¾ðµÇ¾î¾ß ÇÑ´Ù.
//
// <script\>selectLayer(¼¿·ºÆ®Æû ¿ÀºêÁ§Æ®,'¹Ì¸® ¼±ÅÃµÇ¾îÁú °ª','onSelect ½ÇÇàÇÔ¼ö','selectbox width');</script\>
//
//
document.write('<STYLE>.selectMain{font-size:9pt; width:auto; cursor: pointer; position: relative;font-family:±¼¸²,Tahoma}');
document.write('.selectTitle{padding-left: 4px;font-size: 9pt; width: 100%; cursor: pointer; color:#000000;font-family:±¼¸²;color:red}');
document.write('.selectSub{padding-left: 4px; font-size: 9pt; width: 100%; cursor: pointer; height: 19px}');
document.write('.optlaysub{font-family: "tahoma","±¼¸²"; position: relative;}');
document.write('</STYLE>');
var nowValIndex;
var optLay = new Object();
optLay.count = 1;
function selectLayer(obj,val,func,w){
	obj.style.display='none';
	optLay[optLay.count] = obj;
	objOpt = optLay[optLay.count].options;
	str = new Array();
	total = objOpt.length;
	tHeight = 21*total;
	if(tHeight>100 && document.all){
		tHeight='100px';
	}else{
		tHeight = 'auto';
	}
	out = "<div class='selectMain' style=width:"+w+";><div style='border:1px #bbb solid;width:100%;'>"
	+"<table border=0 width=100% cellspacing=0 cellspacing=0 bgcolor=#eeeeee height=20><tr>"
	+"<td id='title_"+optLay.count+"' class='selectTitle' onClick=\"execOpt('"+ optLay.count +"');\" valign=bottom style=white-space:nowrap>"+objOpt[0].text+" "
	+"</td><td width=13 style=padding-right:4px align=center><img src=/images/btn_down.gif id='btnImg_"+ optLay.count +"' onClick=\"execOpt('"+ optLay.count +"');\"></td></tr></table></div>"
	+"<div id='optLay_"+optLay.count+"' style='display:none;width:100%;border:1px #bbb solid;overflow-y:auto;background-color:white;position:absolute;width:100%;height:"+tHeight+";max-height:"+tHeight+"' class=optLaysub><table border=0 cellpadding=0 cellspacing=0 width=100%>";	
	for(i=0;i<total;i++){
		thisTxt = objOpt[i].text;
		thisVal = objOpt[i].value;
		if(val == thisVal) nowValIndex = i;
		str[i] = "<tr class='selectSub' height=21 onmouseover=\"style.backgroundColor='orange';\" onmouseout=\"style.backgroundColor=''\" onClick=\"javascript:execOpt('"+ optLay.count + "','" + i + "');"+func+"\" value='"+thisVal+"'><td style='border-bottom:1px #eeeeee solid'><nobr>"+thisTxt+"</nobr></td></tr>";
	}
	out += str.join('');
	out += "</table></div>";
	document.write(out);
	if(nowValIndex){
		optLay[optLay.count].options[nowValIndex].selected = true;
		document.getElementById("title_"+optLay.count).innerHTML=optLay[optLay.count].options[nowValIndex].text;
	}
	nowValIndex='';
	optLay.count++;
}

function execOpt(n,i){
	objoptLay = document.getElementById("optLay_"+n);
	objBtnImg = document.getElementById("btnImg_"+n);
	if(objoptLay.style.display=='none'){
		objBtnImg.src='/images/btn_up.gif';
		objoptLay.style.display='block';
	}else{
		if(i){
			optLay[n].options[i].selected = true;
			document.getElementById("title_"+n).innerHTML=optLay[n].options[i].text;			
		}
		objBtnImg.src='/images/btn_down.gif';
		objoptLay.style.display='none';	
	}
}
-->