

//ÇÃ·¡½ÃºÎ¸§
function openflash(width,height,src){
    return "<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" width="+width+" height="+height+"><param name=movie value="+src+"><param name=\"allowScriptAccess\" value=\"sameDomain\"><param name=\"wmode\" value=\"transparent\"><param name=quality value=high ><embed src="+src+" quality=high  pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" width="+width+" height="+height+"></embed></object>";
}

function writeflash(src){
    document.write(src);
}
//

function TextChange (target,type)
{
       if ( target.value == target.defaultValue && type==0) target.value = "";
       if ( !target.value && type==1) target.value = target.defaultValue;
}


function SetComma(number)
{
    number = '' + number;
    if (number.length > 3) {

    var mod = number.length % 3;
    var output = (mod > 0 ? (number.substring(0,mod)) : '');
        for (i=0 ; i < Math.floor(number.length / 3); i++) {
        if ((mod == 0) && (i == 0))
            output += number.substring(mod+ 3 * i, mod + 3 * i + 3);
        else
            output+= ',' + number.substring(mod + 3 * i, mod + 3 * i + 3);
        }
    	return (output);
    }
    else return number;
}
<!--
 SiteUrl = '';



url_list = new Array();
newwin_list = new Array();
window_list = new Array()
fullwin_list = new Array()

url_alert = new Array();

// ÇÃ·¹½ÃÆÄÀÏ¿¡¼­ ¸µÅ©°É¶§¿¡´Â
// javascript:go_site(1);
// ÀÌ·±½ÄÀ¸·Î ¸µÅ©°É¸é µË´Ï´Ù.
// ¹øÈ£´Â url_list[¹øÈ£]°ªÀ» ³ÖÀ¸¸é µË´Ï´Ù.




//##############################   ÆäÀÌÁö Á¤ÀÇ   ###############################

 url_list[1] = '../main/main.html';                         // ¸ÞÀÎ

 // È¨/»çÀÌÆ®¸ÊÅ¾¸Þ´º
 url_list[2] = '../main/main.html'; //home
 url_list[3] = '../sitemap/main.html'; //sitemap
 url_list[4] = 'mailto:webmaster@wonil-v.com'; //contact us
 url_list[5] = 'http://intra.wonil-v.com/'; //intranet
 url_list[6] = '#'; //




//´ÙÀ½¸Þ´º±îÁö ¿©À¯¸¦ µÎ°í Á¤ÀÇ


// ¸Þ´º½ÃÀÛ

// 01_company(È¸»ç¼Ò°³)
 url_list[11] = SiteUrl + '../01_company/main.html'; //
 url_list[12] = SiteUrl + '../01_company/01.html'; //
 url_list[13] = SiteUrl + '../01_company/02.html'; //
 url_list[14] = SiteUrl + '../01_company/03.html'; //
 url_list[15] = SiteUrl + '../01_company/04.html'; //
 url_list[100] = SiteUrl + '../01_company/05.html'; //
 url_list[200] = SiteUrl + '../01_company/06.html'; //
 url_list[18] = SiteUrl + '../01_company/07.html'; //
 url_list[16] = SiteUrl + '../01_company/06.html'; //


// 02_product(Á¦Ç°¼Ò°³)
// url_list[21] = SiteUrl + '../02_product/main.html'; //
// url_list[22] = SiteUrl + '../02_product/02.html'; //
// url_list[23] = SiteUrl + '../02_product/03.html'; //
// url_list[24] = SiteUrl + '../02_product/04.html'; //
 
 url_list[21] = SiteUrl + '../02_product/main.html?Bcode=01'; //
 url_list[22] = SiteUrl + '../02_product/main.html?Bcode=02'; //
 url_list[23] = SiteUrl + '../02_product/main.html?Bcode=03'; //
 url_list[24] = SiteUrl + '../02_product/main.html?Bcode=04'; //


 url_list[25] = SiteUrl + '../02_product/05.html'; //
 url_list[26] = SiteUrl + '../02_product/06.html'; //
 url_list[27] = SiteUrl + '../02_product/07.html'; //
 url_list[28] = SiteUrl + '../02_product/08.html'; //


// 03_tech(±â¼úÀÚ·á½Ç)
// url_list[31] = SiteUrl + '../03_tech/list.html'; //
// url_list[32] = SiteUrl + '../03_tech/tech_list.html'; //
// url_list[33] = SiteUrl + '../03_tech/catalog_list.html'; //


 url_list[31] = SiteUrl + '/board/list.php?tn=board01&G_state=Y'; //
 url_list[32] = SiteUrl + '/board/list.php?tn=board02&G_state=Y'; //
 url_list[33] = SiteUrl + '/board/list.php?tn=board03&G_state=Y'; //


// 04_customer(°í°´Áö¿ø)
 url_list[41] = SiteUrl + '../04_customer/list.html'; //
 //url_list[42] = SiteUrl + '../04_customer/qa_list.html'; //
 url_list[42] = SiteUrl + '/board/list.php?tn=board04&G_state=Y'; //

 url_list[43] = SiteUrl + '/notice/list.php?tn=notice01&G_state=Y'; //
 
 //url_list[43] = SiteUrl + '../04_customer/notice_list.html'; //
 url_list[44] = SiteUrl + '../04_customer/04.html'; //
 url_list[45] = SiteUrl + 'http://scm.wonil-v.com/'; //
 
 newwin_list[45] = 'true';











// ¸Þ´º³¡



// »õÃ¢ÀÎ ¸Þ´º
//newwin_list[16] = 'true';



// À©µµ¿ì·Î ¿­¸®´Â°æ¿ì
//  window_list[56] = 'width=780 height=600 resizable=no';






//ÀüÃ¼È­¸éÀÎ ¸Þ´º
//fullwin_list[10] = 'true'



//##############################   ÆäÀÌÁö Á¤ÀÇ   ###############################










// »õÃ¢ÀÎ ¸Þ´º
//newwin_list[211] = 'true';


// À©µµ¿ì·Î ¿­¸®´Â°æ¿ì
//window_list[17] = 'width=550 height=450 resizable=no';

//ÀüÃ¼È­¸éÀÎ ¸Þ´º
//fullwin_list[10] = 'true'





function go_site(num)
{
  if(url_list[num])
  {
// º»Ã¢À¸·Î ÀÌµ¿ÇÏ´Â °æ¿ì
    if(newwin_list[num] != 'true' && fullwin_list[num] != 'true' && (window_list[num] == '' || window_list[num] == null))
    {
    	location=url_list[num];
    }

// À©µµ¿ì Ã¢À¸·Î ¿­¸®´Â°æ¿ì
    if(window_list[num] != '' && window_list[num] != null)
    {
      window.open(url_list[num], 'new_win', window_list[num]);
    }


// ÀüÃ¼Ã¢À¸·Î ¿­¸®´Â °æ¿ì
    if(fullwin_list[num] == 'true')
    {
      window.open(url_list[num], 'new_win', 'width=1024 height=724 resizable=yes');
    }


// »õÃ¢À¸·Î ¿­¸®´Â°æ¿ì
    if(newwin_list[num] == 'true')
    {
      window.open(url_list[num], '_blank', 'directories=yes, titlebar=yes, toolbar=yes, menubar=yes, statusbar=yes, scrollbars=yes, resizable=yes, location=yes, status=yes');
    }
  }else if(url_alert[num]) {		// Alert Ã¢ ¶ç¿ï¶§
	  //alert(url_alert[num]);
	  window.alert("ÁØºñÁßÀÔ´Ï´Ù.");
  }
}


function namosw_goto_byselect(sel, targetstr)
{
  var index = sel.selectedIndex;
  if (sel.options[index].value != '') {
     if (targetstr == 'blank') {
       window.open(sel.options[index].value, 'win1');
     } else {
       var frameobj;
       if (targetstr == '') targetstr = 'self';
       if ((frameobj = eval(targetstr)) != null)
         frameobj.location = sel.options[index].value;
     }
  }
}



function namosw_goto_byselect(sel, targetstr)
{
  var index = sel.selectedIndex;
  if (sel.options[index].value != '') {
     if (targetstr == 'blank') {
       window.open(sel.options[index].value, 'win1');
     } else {
       var frameobj;
       if (targetstr == '') targetstr = 'self';
       if ((frameobj = eval(targetstr)) != null)
         frameobj.location = sel.options[index].value;
     }
  }
}


var isDOM = (document.getElementById ? true : false);
var isIE4 = ((document.all && !isDOM) ? true : false);
var isNS4 = (document.layers ? true : false);
var isNS = navigator.appName == "Netscape";

function getRef(id) {
	if (isDOM) return document.getElementById(id);
	if (isIE4) return document.all[id];
	if (isNS4) return document.layers[id];
}

function getSty(id) {
	x = getRef(id);
	return (isNS4 ? getRef(id) : getRef(id).style);
}

var scrollerHeight = 88;
var puaseBetweenImages = 3000;
var imageIdx = 0;

function moveRightEdge() {
	var yMenuFrom, yMenuTo, yOffset, timeoutNextCheck;

	if (isNS4) {
		yMenuFrom   = divMenu.top;
		yMenuTo     = windows.pageYOffset + 58;   // À§ÂÊ À§Ä¡
	} else if (isDOM) {
		yMenuFrom   = parseInt (divMenu.style.top, 10);
		yMenuTo     = (isNS ? window.pageYOffset : document.body.scrollTop) + 58; // À§ÂÊ À§Ä¡
	}
	timeoutNextCheck = 253;

	if (yMenuFrom != yMenuTo) {
		yOffset = Math.ceil(Math.abs(yMenuTo - yMenuFrom) / 20);
		if (yMenuTo < yMenuFrom)
			yOffset = -yOffset;
		if (isNS4)
			divMenu.top += yOffset;
		else if (isDOM)
			divMenu.style.top = parseInt (divMenu.style.top, 10) + yOffset;
			timeoutNextCheck = 10;
	}
	setTimeout ("moveRightEdge()", timeoutNextCheck);
}


//-->

