function MakeFlashString(source,id,width,height,wmode, otherParam)
{	
	return "<embed src="+source+" quality=high wmode="+wmode+" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?p1_prod_version=shockwaveflash\" width="+width+" height="+height+"></embed>";
}

function MakeObjectString(classid, codebase, name, id, width,height, param)
{
	return "<object classid="+classid+" codebase="+codebase+" name="+name+" width="+width+" height="+height+" id="+id+"><param name=wmode value="+wmode+" />"+param+"</object>";
}


// innerHTML Type
function SetInnerHTML(target, code)
{ 
	target.innerHTML = code; 
}

// Direct Write Type
function DocumentWrite(src)
{
	document.write(src);
}



// ÀÌ¹ÌÁö º¯È¯

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.0
  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 && document.getElementById) x=document.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 na_open_window(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
{
  toolbar_str = toolbar ? 'yes' : 'no';

  menubar_str = menubar ? 'yes' : 'no';

  statusbar_str = statusbar ? 'yes' : 'no';

  scrollbar_str = scrollbar ? 'yes' : 'no';

  resizable_str = resizable ? 'yes' : 'no';



  cookie_str = document.cookie;
  cookie_str.toString();


  pos_start  = cookie_str.indexOf(name);

  pos_start  = cookie_str.indexOf('=', pos_start);

  pos_end    = cookie_str.indexOf(';', pos_start);
  
  if (pos_end <= 0) pos_end = cookie_str.length;

  cookie_val = cookie_str.substring(pos_start + 1, pos_end);



  if (cookie_val  == "done")

    return;



  window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);

}

// Å¾¸Þ´º ¼­ºê
function DisplayMenu(index) {
        for (i=1; i<=6; i++)
        if (index == i) {
        thisMenu = eval("menu" + index + ".style");
        thisMenu.display = "";
        } 
        else {
        otherMenu = eval("menu" + i + ".style"); 
        otherMenu.display = "none"; 
        }
        }
function CheckSearchCon(f){
	return true;
}

// ÅÇ ¼­ºê
function DM2(index) {
        for (i=1; i<=2; i++)
        if (index == i) {
        thisMenu = eval("tab" + index + ".style");
        thisMenu.display = "";
        } 
        else {
        otherMenu = eval("tab" + i + ".style"); 
        otherMenu.display = "none"; 
        }
        }
function CheckSearchCon(f){
	return true;
}
function DM3(index) {
        for (i=1; i<=3; i++)
        if (index == i) {
        thisMenu = eval("tab" + index + ".style");
        thisMenu.display = "";
        } 
        else {
        otherMenu = eval("tab" + i + ".style"); 
        otherMenu.display = "none"; 
        }
        }
function CheckSearchCon(f){
	return true;
}

function DM4(index) {
        for (i=1; i<=4; i++)
        if (index == i) {
        thisMenu = eval("tab" + index + ".style");
        thisMenu.display = "";
        } 
        else {
        otherMenu = eval("tab" + i + ".style"); 
        otherMenu.display = "none"; 
        }
        }
function CheckSearchCon(f){
	return true;
}

function DM5(index) {
        for (i=1; i<=5; i++)
        if (index == i) {
        thisMenu = eval("tab" + index + ".style");
        thisMenu.display = "";
        } 
        else {
        otherMenu = eval("tab" + i + ".style"); 
        otherMenu.display = "none"; 
        }
        }
function CheckSearchCon(f){
	return true;
}

function DM6(index) {
        for (i=1; i<=6; i++)
        if (index == i) {
        thisMenu = eval("tab" + index + ".style");
        thisMenu.display = "";
        } 
        else {
        otherMenu = eval("tab" + i + ".style"); 
        otherMenu.display = "none"; 
        }
        }
function CheckSearchCon(f){
	return true;
}

function DM7(index) {
        for (i=1; i<=7; i++)
        if (index == i) {
        thisMenu = eval("tab" + index + ".style");
        thisMenu.display = "";
        } 
        else {
        otherMenu = eval("tab" + i + ".style"); 
        otherMenu.display = "none"; 
        }
        }
function CheckSearchCon(f){
	return true;
}

//////////////////////////////////////////////////////////////
///ÀÌ¹ÌÁö »çÀÌÁî¸Â°Ô »õÃ¢ÀÌ ÀÚµ¿À¸·Î Á¶ÀýµÇ´Â ¼Ò½º ³× ¹øÂ°(°£´Ü¹öÀü)
///////////////////////////////////////////////////////////////
// ÀÌ¹ÌÁö »çÀÌÁî¸Â°Ô »õÃ¢ÀÌ ÀÚµ¿À¸·Î Á¶ÀýµÇ´Â ¼Ò½º ³× ¹øÂ°(°£´Ü¹öÀü)

function cnj_win_view(img){
  img_conf1= new Image();
  img_conf1.src=(img);
  cnj_view_conf(img);
}

function cnj_view_conf(img){
  if((img_conf1.width!=0)&&(img_conf1.height!=0)){
    cnj_view_img(img);
  } else{
    funzione="cnj_view_conf('"+img+"')";
    intervallo=setTimeout(funzione,20);
  }
}

var cnj_img_view = null;
function cnj_view_img(img){
    if(cnj_img_view != null) {
      if(!cnj_img_view.closed) { 
      cnj_img_view.close(); 
      }
    }
  cnj_width=img_conf1.width+20;
  cnj_height=img_conf1.height+20;
  str_img="width="+cnj_width+",height="+cnj_height;

   cnj_img_view=window.open("about:blank","",str_img);
   cnj_img_view.document.open();   // document.open() 
   cnj_img_view.document.writeln("<html>");
   cnj_img_view.document.writeln("<head>");
   cnj_img_view.document.writeln("<title>:::WAVE-TECH:::</title>");
   cnj_img_view.document.writeln("<meta http-equiv='content-type' content='text/html; charset=euc-kr'>");
   cnj_img_view.document.writeln("<meta http-equiv='imagetoolbar' content='no'>");
   var start="<";
   cnj_img_view.document.writeln("<script language='javascript'>");
   cnj_img_view.document.writeln("function click() {");
   cnj_img_view.document.writeln("if ((event.button==1) || (event.button==2))  {");
   cnj_img_view.document.writeln("top.close();");
   cnj_img_view.document.writeln("      }");
   cnj_img_view.document.writeln("}");
   cnj_img_view.document.writeln("document.onmousedown=click");
   cnj_img_view.document.writeln(start+"/script>");
   cnj_img_view.document.writeln("</head>");
   cnj_img_view.document.writeln("<body>");
   cnj_img_view.document.writeln("<img src="+ img +" border=0 style='cursor:hand'>") // ¼Ò½º Å×½ºÆ® ºÎºÐ
   cnj_img_view.document.writeln("</body></html>");
   cnj_img_view.document.close();  // ¹Ýµå½Ã document.close() ´Ý¾ÆÁÖ¾î¾ß ÇÔ
   cnj_img_view.focus();
  return;
}


function aFrmChk() {
	if (aForm.type.value=="") {
		alert("Please Select Type1");
		aForm.type.focus();
		return;
	}
	aForm.submit();
}
function bFrmChk() {
	bForm.submit();
}

function ShowProd(ProdFlag) {
	if (ProdFlag == "S") {
		document.TabImg1.src = "/image/main_tab02_01_on.gif";
		document.TabImg2.src = "/image/main_tab02_02.gif";
		document.TabImg3.src = "/image/main_tab02_03.gif";
		document.TabImg4.src = "/image/main_tab02_04.gif";

		sTable.style.display = "block";
		rTable.style.display = "none";
		mTable.style.display = "none";
		iTable.style.display = "none";
	}
	if (ProdFlag == "R") {
		document.TabImg1.src = "/image/main_tab02_01.gif";
		document.TabImg2.src = "/image/main_tab02_02_on.gif";
		document.TabImg3.src = "/image/main_tab02_03.gif";
		document.TabImg4.src = "/image/main_tab02_04.gif";

		sTable.style.display = "none";
		rTable.style.display = "block";
		mTable.style.display = "none";
		iTable.style.display = "none";
	}
	if (ProdFlag == "M") {
		document.TabImg1.src = "/image/main_tab02_01.gif";
		document.TabImg2.src = "/image/main_tab02_02.gif";
		document.TabImg3.src = "/image/main_tab02_03_on.gif";
		document.TabImg4.src = "/image/main_tab02_04.gif";

		sTable.style.display = "none";
		rTable.style.display = "none";
		mTable.style.display = "block";
		iTable.style.display = "none";
	}
	if (ProdFlag == "I") {
		document.TabImg1.src = "/image/main_tab02_01.gif";
		document.TabImg2.src = "/image/main_tab02_02.gif";
		document.TabImg3.src = "/image/main_tab02_03.gif";
		document.TabImg4.src = "/image/main_tab02_04_on.gif";

		sTable.style.display = "none";
		rTable.style.display = "none";
		mTable.style.display = "none";
		iTable.style.display = "block";
	}
}
function ChangBanner(LinkType, LinkURL, BannerFile, IDX) {
	if (LinkType=="O") {
		Message="<a href='"+LinkURL+"', target='_blank'><img src='/image/"+BannerFile+"'></a>"	
	}
	else {
		Message="<a href='"+LinkURL+"'><img src='/image/"+BannerFile+"'></a>"	
	}
	SetInnnerHTML("LineBanner", Message)

	if (IDX=="1") {
		document.BannerImg1.src="/image/main_tab01_01_on.gif";
		document.BannerImg2.src="/image/main_tab01_02.gif";
		document.BannerImg3.src="/image/main_tab01_03.gif";
	}
	if (IDX=="2") {
		document.BannerImg1.src="/image/main_tab01_01.gif";
		document.BannerImg2.src="/image/main_tab01_02_on.gif";
		document.BannerImg3.src="/image/main_tab01_03.gif";
	}
	if (IDX=="3") {
		document.BannerImg1.src="/image/main_tab01_01.gif";
		document.BannerImg2.src="/image/main_tab01_02.gif";
		document.BannerImg3.src="/image/main_tab01_03_on.gif";
	}
}

function SetInnnerHTML(SpanID, Message)
{
 document.all[SpanID].innerHTML = Message;
}

// Á¦Ç°¼Ò°³¸Þ´º º¯È¯
function DisplayMenu(index) {
        for (i=1; i<=9; i++)
        if (index == i) {
        thisMenu = eval("menu" + index + ".style");
        thisMenu.display = "";
        } 
        else {
        otherMenu = eval("menu" + i + ".style"); 
        otherMenu.display = "none"; 
        }
        }
function CheckSearchCon(f){
	return true;
}
// °øÁö»çÇ× º¯È¯
function DisplayMenu(index) {
        for (i=1; i<=2; i++)
        if (index == i) {
        thisMenu = eval("menu" + index + ".style");
        thisMenu.display = "";
        } 
        else {
        otherMenu = eval("menu" + i + ".style"); 
        otherMenu.display = "none"; 
        }
        }
function CheckSearchCon(f){
	return true;
}
//ÆË¾÷Ã¢
function open01(){
	window.open("/privacy.php","apply","menu=no,width=710, ,height=600 scrollbars=yes, left=150, top=100")
} 

function openwin60(theURL){
window.open(theURL,"01","toolbar=no,location=no,status=no,munubar=no,scrollbars=no,resizable=no,width=419,height=272");
}