//SELECT -> LAYERº¯È¯
function getSelectToLayer(obj,lwidth,href,zindex)
{
    if(navigator.userAgent.indexOf('Opera') != -1 || navigator.userAgent.indexOf('MSIE') == -1) { return false; }
    obj.style.display = 'none';
    var newsb = obj.id + "_sbj";
    var newid = obj.id + "_tmp";
    var newim = obj.id + "_img";
    var LayerTag = "";
    LayerTag += "<TABLE WIDTH='"+lwidth+"' CELLSPACING=0 CELLPADDING=0 STYLE='position:absolute;z-index:"+zindex+";cursor:default;'>";
    LayerTag += "<TR HEIGHT=1><TD></TD></TR><TR><TD>";
    LayerTag += "<TABLE BGCOLOR='#FFFFFF' HEIGHT=15 WIDTH=100% CELLSPACING=1 CELLPADDING=0 STYLE='border:1 solid #C0C0C0;line-height:117%;' onmouseover=\"getSelectLayerOver(this,document.getElementById('"+newim+"'),document.getElementById('"+newid+"'));\" onmouseout=\"getSelectLayerOut(this,document.getElementById('"+newim+"'),document.getElementById('"+newid+"'));\">";

    LayerTag += "<TR WIDTH=100% onclick=\"getSelectSubLayer(document.getElementById('"+newid+"'),document.getElementById('"+newsb+"'));\">";
    LayerTag += "<TD ID='"+newsb+"' WIDTH=95% onblur='getSelectLayerBlur(this);'>&nbsp;" + obj.options[obj.selectedIndex].text + "</TD>";
    LayerTag += "<TD ALIGN=RIGHT><IMG ID='"+newim+"' SRC='http://www.blueb.co.kr/image/ico/dot_select.gif' ALIGN=absmiddle STYLE='filter:gray();'></TD></TR>";
    
    LayerTag += "</TABLE>";
    LayerTag += "<TABLE onblur='getSubLayerClose(this);' ID='"+newid+"' WIDTH=100% CELLSPACING=0 CELLPADDING=0 STYLE='display:none;border:1 solid #C0C0C0;' BGCOLOR='#FFFFFF'>";
    for (var i = 0 ; i < obj.length; i++)
    {
        LayerTag += "<TR onmouseover='getSelectMoveLayer(this);' onmouseout='getSelectMoveLayer1(this);' onclick=\"getSelectChangeLayer(document.getElementById('"+obj.id+"'),document.getElementById('"+newid+"'),document.getElementById('"+newsb+"'),'"+obj.options[i].text+"','"+obj.options[i].value+"','"+href+"');\" ";
        if (obj.value == obj.options[i].value)
        {
            LayerTag += "STYLE='background:#C0C0C0;color:#FFFFFF;'><TD>&nbsp;";
        }
        else {
            LayerTag += "STYLE='background:#FFFFFF;color:#000000;'><TD>&nbsp;";
        }
        LayerTag += obj.options[i].text;
        LayerTag += "</TD></TR>";
    }
    LayerTag += "</TABLE>";
    LayerTag += "</TD></TR></TABLE><IMG SRC='' WIDTH='"+lwidth+"' HEIGHT=0>";
    document.write(LayerTag);
}
//¼­ºê·¹ÀÌ¾îº¸ÀÌ±â
function getSelectSubLayer(obj,sobj)
{
    if(obj.style.display == 'none')
    {
        sobj.style.background = '#FFFFFF';
        sobj.style.color = '#000000';    
        obj.style.display = 'block';
        NowSelectedLayer = obj;
        obj.focus();
    }
    else {
        sobj.style.background = '#C0C0C0';
        sobj.style.color = '#FFFFFF';
        obj.style.display = 'none';
    }
}
//¼­ºê·¹ÀÌ¾îÃ¼Å©
function getSelectSubLayer1(obj)
{
    if(obj.style.display != 'none')
    {
        obj.style.display = 'none';
    }
}
//Å¸ÀÌÆ²·¹ÀÌ¾î MouseOver
function getSelectLayerOver(obj,img,nobj)
{
    if (nobj.style.display == 'none')
    {
        obj.style.border = '1 solid #C0C0C0';
        img.style.filter = '';
    }
}
//Å¸ÀÌÆ²·¹ÀÌ¾î MouseOut
function getSelectLayerOut(obj,img)
{
    obj.style.border = '1 solid #C0C0C0';
    img.style.filter = 'gray()';
}

//¼­ºê·¹ÀÌ¾î MouseOver
function getSelectMoveLayer(obj)
{
    if (obj.style.color == '#000000')
    {
        obj.style.background = '#C0C0C0';
        obj.style.color = '#FFFFFF';
    }
}
//¼­ºê·¹ÀÌ¾î MouseOut
function getSelectMoveLayer1(obj)
{
    obj.style.background = '#FFFFFF';
    obj.style.color = '#000000';
}
//»õ·¹ÀÌ¾î¼±ÅÃ
function getSelectChangeLayer(obj,fobj,sobj,text,value,href)
{
	if (href)
	{
        eval("document.DataForm." + href).value = value;
        location.href = getThisUrl();
        return false;
    }
    else {
        fobj.style.display = 'none';
        sobj.innerHTML = '&nbsp;' + text;
        sobj.style.background = '#C0C0C0';
        sobj.style.color = '#FFFFFF';
        sobj.focus();
        obj.value = value;
    }
}
//Å¸ÀÌÆ²·¹ÀÌ¾î blur
function getSelectLayerBlur(obj)
{
    obj.style.background = '#FFFFFF';
    obj.style.color = '#000000';
}
//¼­ºê·¹ÀÌ¾î ´Ý±â
function getSubLayerClose(obj)
{
    if (obj.style.display != 'none')
    {
        setTimeout("document.getElementById('" + obj.id + "').style.display = 'none';" , 150);
    }
}

<!--
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function relatedSites(selObj,restore) {
	window.open(selObj.options[selObj.selectedIndex].value, "rSites", "resizable=yes,scrollbars=yes,status=yes");
	if (restore) selObj.selectedIndex=0;
}

function goto_url(url) {
	window.status = '';
	document.location.href=url;
}

function goto_newwin(url) {
	window.open(url,"newWin");
}
//-->