

/*-----------------------------------------------------------------------------*/
//       ½ºÅ©¸³Æ® Ãß°¡        by suc    2007.10.10



document.onfocusin=bluring;

//	document.oncontextmenu	= returnEventFalse;
//	document.ondragstart	= returnEventFalse;
//	document.onselectstart	= returnEventFalse;


function MM_openBrWindow(theURL, winName, features) { //v2.0
  window.open(theURL, winName, features);
}


function returnEventFalse() {
	event.returnValue = false;
}

function returnEventTrue() {
	event.returnValue = true;
}


//Á¡¼±¾ø¾Ö±â
function bluring(){ 
	if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") 
	document.body.focus();
} 


//¼ýÀÚ¿©ºÎ È®ÀÎ(½Ç½Ã°£)
function currency(obj){		
	var num = obj.value;
	var re = /^$|,/g; 
	num = num.replace(re, ""); 

	if(isNaN(num)) { alert("¼ýÀÚ ¸¸À» ÀÔ·ÂÇÒ¼ö ÀÖ½À´Ï´Ù");return obj.value=""; obj.focus();} 
}


// Æ÷¸Ë Ã¼Å© (±âÁ¸°Í)
function isValidFormat(input, format) {
    if (input.value.search(format) != -1) {
        return true;
    }
    return false;
}


// ÀÌ¸ÞÀÏ Çü½Ä Ã¼Å© (±âÁ¸°Í)
function CheckEmail(strEmail){
	var format = /^((\w|[\-\.])+)@((\w|[\-\.])+)\.([A-Za-z]+)$/;
    return isValidFormat(strEmail, format);
}


// ÀÌ¸ÞÀÏ Çü½Ä Ã¼Å© (Ãß°¡ - ·ùÇö¼®)
function CheckEmail2(str)
{
   var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i
   if (filter.test(str)) { 
		return true; 
	}else{ 
		return false; 
	}
}






///¹®ÀÚ¿­±æÀÌ Á¦ÇÑ¹×   °ø¹é Ã¼Å©//////
function checkit(o, msg)	{
var space = / /g;                // °ø¹éÁ¦°Å
	if (o.value.replace(space,"").length == 0)	{
		alert(msg);
		if( o.style.display != "none" ){
		o.focus();
		o.select();
		}
		return true;
	}
	return false;
}


//±æÀÌ¹üÀ§ ÁöÁ¤
function isOutOfRange(field, min, max, error_msg){
	if(strLength(field) < min || strLength(field) > max)	{
		alert(error_msg);
		field.focus();
		field.select();
		return true;
	}
	return false;
}



//°íÁ¤±æÀÌ
function isNotExactLength(field, len, error_msg) {
	if(strLength(field) != len) {
		alert(error_msg);
		field.focus();
		field.select();
		return true;
	}
	return false;
}




/** ³¯Â¥Çü½ÄÀÌ ¿Ã¹Ù¸¥Áö °Ë»ç **/
	function OkDate(y,m,d){
		var arrDate;
				
		if (m < 10) 
			m = "0"+m
		if (d < 10) 
			d = "0"+d
				
        switch (m) {
        case 02:        // 2¿ùÀÇ °æ¿ì
                if (d > 29) return false;
                if (d == 29) { if ((y % 4 != 0) || (y % 100 == 0) && (y % 400 != 0))  return false; }                    // 2¿ù 29ÀÇ °æ¿ì ´çÇØ°¡ À±³âÀÎÁö¸¦ È®ÀÎ             
        case 11:
                if (d == 31) return false;
        }

		arrDate = y+"/"+m+"/"+d;
		arrDate = arrDate.split("/");
			
		var chkDate = new Date(arrDate[0] + "/" + arrDate[1] + "/" + arrDate[2]);		
		if (isNaN(chkDate) == true || (arrDate[1] != chkDate.getMonth() + 1 || arrDate[2] != chkDate.getDate())) {	return false ; }
		return true;
	}



// »ýÀÏ ÀÚµ¿ÀÔ·Â  ------
	function autobirth(f)	{
		if (!f.social1.value == "")	{
		var year = f.social1.value.substr(0,2);
		var month = f.social1.value.substr(2,2);
		var date = f.social1.value.substr(4,2);

		var temp1 = f.social1.value.substring(6,1);
		var temp2 = f.social1.value.substring(0,1);

			if( temp2 == 0 && (temp1 == 3 || temp1 == 4) ){ f.BirthYear.value="20"+year; }	
			else { f.BirthYear.value="19"+year; }
		  
			f.BirthMonth.value=month;
			f.BirthDay.value=date;

		}
	}


// ¾ÆÀÌµð À¯È¿¼º °Ë»ç
function check_id(v , msg ) {

	if (v.value.length == 0)	{
		alert(msg);
		v.focus();
		return true;
	}
		
	// Çã¿ëºÒ°¡ ¾ÆÀÌµð »ðÀÔ
	if(v.value.length < 4 || v.value.length > 10 ) {
		alert("¾ÆÀÌµð´Â 4ÀÚÀÌ»ó 10ÀÚ ÀÌÇÏ·Î ÀÔ·ÂÇÏ½Ê½Ã¿À");
		v.focus();
		return true;
	}
		
		for(i=0 ; i < v.value.length ; i++) {
			pass1_ok = false;
			pass2_ok = false;
			pass3_ok = false;
			if(v.value.charAt(i) >= "0" && v.value.charAt(i) <= "9") {
				pass1_ok = true
			}
			if(v.value.charAt(i) >= "A" && v.value.charAt(i) <= "Z") {
				pass2_ok = true
			}
			if(v.value.charAt(i) >= "a" && v.value.charAt(i) <= "z") {
				pass3_ok = true
			}
			if(pass1_ok == false && pass2_ok == false && pass3_ok == false) {
				alert("¾ÆÀÌµð´Â ¿µ¹®ÀÚ, ¼ýÀÚ¸¸ °¡´ÉÇÕ´Ï´Ù");
				v.focus();
				return true;
			}
		}
		
		return false;
	
}



// 14ÀÌÇÏ ÁÖ¹Î¹øÈ£ Ã¼Å©
function Jumin_Overcheck(S , NYYYY , NMMDD , OverAge) {

	var Fage = S.substr(0,2);
//	var Fage2	= S.substr(2,4);

	Fage2	= "20" + Fage

	if ( parseInt(Fage2) >= parseInt(NYYYY) ) {	Fage2="19" + Fage }

	//¸¸³ªÀÌ °è»ê  ( +1·Î ´ëÃ¼)
	Fage	= parseInt(NYYYY) - parseInt(Fage2)+1

	if ( Fage	> parseInt(OverAge) ) {
//		alert("¸¸ "+OverAge+"¼¼ ÀÌÇÏ¸¸ °¡ÀÔ°¡´ÉÇÕ´Ï´Ù");
		return false;
	}else if ( Fage <= parseInt(OverAge) ) {
		if ( Fage2 = NMMDD ){//14¼¼ ÀÌÇÏ
		   return true;

		}else {//»ýÀÏºñ±³
//			alert("¸¸ "+OverAge+"¼¼ ÀÌÇÏ¸¸ °¡ÀÔ°¡´ÉÇÕ´Ï´Ù");
			return false;

		}
	}
	
	return true;

}




// ÇÊµå(String) ±æÀÌ °ü·Ã
function strLength(field){
   var Length = 0;
   var Nav = navigator.appName;
   var Ver = navigator.appVersion;
   var IsExplorer = false;

   var ch;
   if ( (Nav == 'Microsoft Internet Explorer') && (Ver.charAt(0) >= 4) )	   {  IsExplorer = true;   }
   if(IsExplorer) {
	  for(var i = 0 ; i < field.value.length; i++) {
		 ch = field.value.charAt(i);
		 if ((ch == "\n") || ((ch >= "¤¿") && (ch <= "È÷")) || ((ch >="¤¡") && (ch <="¤¾")))	{	Length += 2;	} else {	Length += 1;}
	  }

   }else {  Length = field.value.length ;  }
   return Length;
}



 //ÁÖ¼Ò°Ë»öÃ¢
function FindZip(Fgubn){

	MM_openBrWindow('/common/Popup/PopZipCheck.asp?Fgubn='+Fgubn,'popupMenu','width=440,height=300');

}


//Æû°ª¿¡ µû¶ó¼­ ÁÖ¼ÒÀÔ·ÂÇÏ±â
function returnPopZipcode(post_no, city_name, gu_name, dong_name, etc_name , gubn){
	if ( gubn == "INFO" ) {
		var f = window.document.info;
		f.Zip1.value = post_no.substr(0,3);
		f.Zip2.value = post_no.substr(4,3);
		f.Addr0.value = city_name+" "+gu_name+" "+dong_name;
		f.Addr1.value = etc_name;
	}
	if ( gubn == "RESERVE" )
	{
		var f = window.document.info;
		f.lZip1.value = post_no.substr(0,3);
		f.lZip2.value = post_no.substr(4,3);
		f.lAddr0.value = city_name+" "+gu_name+" "+dong_name;
		f.lAddr1.value = etc_name;
	}
	if ( gubn == "SKY" )
	{
		var f = window.document.theForm;
		f.objTXZip_Code1.value = post_no.substr(0,3);
		f.objTXZip_Code2.value = post_no.substr(4,3);
		f.objTXAddress.value = city_name+" "+gu_name+" "+dong_name;
		f.objTXAddress_Detail.value = etc_name;
	}
}


 //Ã¢´Ý±â
 function selfClose(){
     if(navigator.appVersion.indexOf("MSiE 7.0") >= 0 ){//IE7.0 ´Ý´ÂºÎºÐ
            window.open('about:blank','_self').close();
     }else{           //IE6.0 ´Ý´ÂºÎºÐ
            window.opener = self;
            self.close();
        }
    }




//ucc ºä¾î
function writeAX(homeurl,no,file) {

	var str = "";

	str += '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="410" height="398">';
	str += '<param name="movie" value="/win32/flvplayer.swf?url='+homeurl+'&no='+no+'&file='+file+'&showdigits=true&showfsbutton=true"/>';
	str += '<param name="allowFullScreen" value="true">';
	str += '</object>';

	document.writeln(str);
}																																	
																												
																														

function resizeFrame(iframeObj){
	/* ¾ÆÀÌÇÁ·¹ÀÓ¿¡¼­ ÀÐ¾îµéÀÎ ÆäÀÌÁöÀÇ body */
	var innerBody = iframeObj.contentWindow.document.body;

			document.onclick = function(){ resizeFrame(iframeObj, 1);};
			innerBody.onclick = function(){ resizeFrame(iframeObj, 1);};
			innerBody.onmouseover = function(){ resizeFrame(iframeObj, 1);};

	/*	 ³ôÀÌ ´Ù½Ã¼³Á¤ */
	var innerHeight = innerBody.scrollHeight + (innerBody.offsetHeight - innerBody.clientHeight);
	iframeObj.style.height = innerHeight;
	iframeObj.style.height = innerHeight;

/*---------- ³ÐÀÌµµ ÇÔ²² ÀÚµ¿Á¶Á¤µÇ¾ß ÇÑ´Ù¸é ÁÖ¼®À» Ç®¾îÁÖ¼¼¿ä~--------------------------------
	// ³ÐÀÌ ´Ù½Ã¼³Á¤ 
	var innerWidth = innerBody.scrollWidth + (innerBody.offsetWidth - innerBody.clientWidth);
	iframeObj.style.width = innerWidth;     
---------------------------------------------------------------------------------------------------*/
	  if( !arguments[1] )        /* Æ¯Á¤ ÀÌº¥Æ®·Î ÀÎÇÑ È£Ãâ½Ã ½ºÅ©·ÑÀ» ±×³É µÐ´Ù. */
                this.scrollTo(1,1);
 
}

/*-----------------------------------------------------------------------------*/




// SunSil Start


function openWin(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function changeImg(imgName, fileName)
{
	eval("document.all."+imgName+".src ='"+fileName+"';");
}

function changeImg2(imgName, imgCount, selectImgNum, imgPath) {
	var a;
	for(i=1;i<=imgCount;i++){
		a = imgName+""+i;

		if(i != selectImgNum) {
			eval(a+".src ='"+imgPath+a+".gif';");
		}
		else {
			eval(a+".src ='"+imgPath+a+"o.gif';");
		}
	}
}

function changeTb(tbName, tbCount, tbNum) {

	var a;
	for(i=1;i<=tbCount;i++){

		a = eval("document.all."+tbName+i);

		if(i != tbNum) {
			a.style.display = 'none';
		}
		else {
			a.style.display = 'block';
		}
	}
}

// SunSil End

// ±âÁ¸ ½ºÅ©¸³ÅÍ
function newWin(url,winname,opt){
 var myPopup=window.open(url,winname,opt);
     myPopup.window.focus();
}

 // °ø¹é check
 function nulChk(obj,lbl){
 if( Trim(obj.value) == '' ){
	alert( lbl + ' ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿ä.');
	obj.focus();
	return true;
 }
  return false;
 }

//
var bigImage = new Image();				//»õ·Î¿î ÀÌ¹ÌÁö °´Ã¼¸¦ »ý¼º...

function OriginImg(FileName) {
	if(FileName == "") {
		alert("µî·ÏµÈ »çÁøÀÌ ¾ø½À´Ï´Ù.");
		return;
	}

	bigImage.src = FileName;			//»õ·Î »ý¼ºÇÑ ÀÌ¹ÌÁö °´Ã¼ÀÇ °æ·Î¸¦ ÆË¾÷¿¡¼­ º¸¿©ÁÙ ÀÌ¹ÌÁö °æ·Î·Î...

	setTimeout("popupImg(bigImage)", 100);		//ÀÌ¹ÌÁö°¡ Å¬¶óÀÌ¾ðÆ®¿¡ ¿ÏÀüÈ÷  Àü¼Û µÉ¶§±îÁö ¹Ýº¹
}

function popupImg(bigImage) {
    if (! bigImage.complete) {    			// ÀÌ¹ÌÁö°¡ Å¬¶óÀÌ¾ðÆ®¿¡ ¿ÏÀüÈ÷ Àü¼ÛÀÌ µÇÁö ¾Ê¾Ò´Ù¸é....
    		setTimeout("popupImg(bigImage)", 100);
		return;
	}

	var x = bigImage.width;				//ÆË¾÷¿¡¼­ º¸¿©ÁÙ ÀÌ¹ÌÁöÀÇ widht
	var y = bigImage.height;			//ÆË¾÷¿¡¼­ º¸¿©ÁÙ ÀÌ¹ÌÁöÀÇ height
	var x2 = (screen.width - x) / 2;		//È­¸éÀÇ Á¤Áß¾Ó¿¡ ¶ç¿ì±â À§ÇØ.....
	var y2 = (screen.height - y) / 2;		//»óµ¿

	var showImage = window.open("","OriginIms","left="+x2+",top="+y2+",width="+x+",height="+y);

	showImage.document.write("<html><head><title>Top of the Top ÇÏÀÌ¿ø</title></head>");
	showImage.document.write("<body style='margin:0'>");
	showImage.document.write("<img src='"+bigImage.src+"' border='0' onClick='javascript:window.close();' style='cursor:hand'>");
	showImage.document.write("</body>");
	showImage.document.write("</html>");
}

function validFieldText(obj1, msgStr){
	if(Trim(obj1.value)=="") {
		alert(msgStr+" ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿ä.");
		obj1.focus();
		return false;
	}

	return true;
}

function validFieldTextEng(obj1, msgStr){
	if(Trim(obj1.value)=="") {
		alert("Please check the "+ msgStr);
		obj1.focus();
		return false;
	}

	return true;
}

function validFieldSelect(obj1, msgStr){
	if(Trim(obj1.value)=="") {
		alert(msgStr+" ¼±ÅÃÇØ ÁÖ½Ê½Ã¿ä.");
		obj1.focus();
		return false;
	}

	return true;
}

function Trim(obj1){
	obj1 = obj1.replace(/^(\s+)|(\s+)$/g, "")
	return obj1;
}

// ÁÖ¹Îµî·Ï¹øÈ£¸¦ °Ë»çÇÑ´Ù.
// ¿Ã¹Ù¸¥ ÁÖ¹Îµî·Ï¹øÈ£ÀÌ¸é true ¸¦ ¸®ÅÏÇÑ´Ù.
function chkRegNo(reg_string)
{
	var a = reg_string.substring(6,7);
	var sum;
	var num;

	if (a < '1' || a > '4') return false;
	else
	{
		sum = 0;
		num = 2;

		for(var i = 0; i < 12; i++)
		{
			a = reg_string.substring(i, i + 1);
			sum = sum + num * (a - '0');
			num++;
			if( num == 10 ) num = 2;
		}

		i = (11 - (sum % 11)) % 10;
		a = reg_string.substring(12, 13);

		return (a == i);
	}
}



//¼ýÀÚÀÔ·Â Ã¼Å©(onblur)
function  number_validate(theForm) {
	if (theForm.value != "") {
		var str=theForm.value;
		for (var i = 0; i< str.length; i++) {
			var ch = str.substring(i, i + 1);

			if ( (ch<"0" || ch>"9") ) {
				alert("\n¼ýÀÚ ¸¸À» ÀÔ·ÂÇÒ¼ö ÀÖ½À´Ï´Ù.");
				tye = 1;
				theForm.value="";
				theForm.focus();
				return false;
			}
			else
				tye=0;
		}
	} else
		tye=0;
	return true;
}

//ÀÔ·Â°ªÀÇ ±æÀÌ Ã¼Å©
function CheckTextLength(obj1, intLen, msgStr){
	if(Trim(obj1.value).length < intLen) {
		alert(msgStr+" "+intLen+"ÀÚ¸®¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿ä.");
		obj1.focus();
		return false;
	}
	return true;
}

//Æ¯Á¤¹®ÀÚ¸¸À¸·Î µÇ¾îÀÖ´ÂÁö Ã¼Å©
function containsCharsOnly(input,chars) {
    for (var inx = 0; inx < input.value.length; inx++) {
       if (chars.indexOf(input.value.charAt(inx)) == -1)
           return false;
    }
    return true;
}

//¾ËÆÄºª°ú ¼ýÀÚ¸¸À¸·Î ÀÌ·ç¾îÁ³´ÂÁö Ã¼Å©
function isAlphaNum(input) {
    var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
    if(!containsCharsOnly(input, chars)){
		alert("¿µ¹®ÀÚ¿Í ¼ýÀÚ¸¸ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿ä");
		input.focus();
		input.select();
		return false;
	}
	return true;
}

// Window Open
function WindowOpen(Url,PopupName,popwidth,popheight){
	var height = screen.height;
	var width = screen.width;
	var left = width / 2 - (popwidth/ 2);
	var top = height / 2 - (popheight / 2);

	popheight = popheight + 27;

	window.open(Url ,PopupName,"width="+popwidth+",height="+popheight+",scrollbars=no,toolbar=no,statusbar=no,left="+left+",top="+top+"")
}

// ActiveX ¹ö±×ÆÐÄ¡ Start //

function flashMovie(fid,src,wid,hei,fvs,wmd) {
  this.fPrint = '';
  this.Id = document.getElementById(fid);
  this.Src = src;
  if(wid == 0){
    this.Width = '100%';
  }
  else{
    this.Width = wid;
  }
  if(hei == 0){
    this.Height = '100%';
  }
  else{
    this.Height = hei;
  }
  this.FlashVars = (fvs != undefined)? fvs :'';
  this.Wmod = (wmd != undefined)? wmd :'';
  if(isObject(Id)) {
    fPrint = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="https://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"';
    fPrint += ' width="'+Width+'"';
    fPrint += ' height="'+Height+'">';
    fPrint += '<param name="allowScriptAccess" value="always">';
    fPrint += '<param name="movie" value="'+Src+'">';
    fPrint += '<param name="menu" value="false" />';
    fPrint += '<param name="quality" value="high">';
    fPrint += (FlashVars != null) ? '<param name="FlashVars" value="'+FlashVars+'">' : '';
    fPrint += (Wmod != null) ? '<param name="wmode" value="'+Wmod+'">' : '';
    fPrint += '<embed';
    fPrint += fPrint + ' src="'+Src+'"';
    fPrint += (FlashVars != null) ? ' FlashVars="'+FlashVars+'"' : '';
    fPrint += (Wmod != null) ? ' wmode="'+Wmod+'"' : '';
    fPrint += ' quality="high"';
    fPrint += ' allowScriptAccess="always"';
    fPrint += ' pluginspage="https://www.macromedia.com/go/getflashplayer"';
    fPrint += ' type="application/x-shockwave-flash"';
    fPrint += ' width="'+Width+'"';
    fPrint += ' height="'+Height+'"';
    fPrint += '></embed>';
    fPrint += '</object>';
    Id.innerHTML = fPrint;
  }
}

function isObject(a) {
    return (a && typeof a == 'object');
}

// ActiveX ¹ö±×ÆÐÄ¡ End //


function DeleteTail(frm, NoPkid)
{
	frm.Mode.value	=	"D";
	frm.Pkid.value	=	NoPkid;
	frm.submit();

}

function RegisterTail(frm)
{
	var MaxLength = 300;
	frm.Mode.value	=	"I";
	if (nulChk(frm.Contents, ' ³»¿ëÀ»')) return;

	if(!checkLength(frm.Contents, 0, MaxLength, false)){
      alert(MaxLength+'ÀÚ ÀÌÇÏ·Î ³Ö¾îÁÖ¼¼¿ä');
      return ;
    }

	frm.submit();
}

function checkLength(obj, min, max, nullable) {
        if (!nullable) {
            len = obj.value.length;

            if (len < min || len > max)
                return false;
        }
        return true;
}


///////////////ÆûÇÊµå ¹®ÀÚÅ©±â Á¦ÇÑ///////by suc@nate.com////////
function RegisterFormMaxLength(frm , MaxLength)
{
	if(!checkLength_form(frm , 0, MaxLength, false)){
      alert(MaxLength+'ÀÚ ÀÌÇÏ·Î ³Ö¾îÁÖ¼¼¿ä');
      return ;
    }

}

function checkLength_form(obj, min, max, nullable) {
        if (!nullable) {
            len = obj.length;

            if (len < min || len > max)
                return false;
        }
        return true;
}




///////////////////////////////////////////
// IE activeX patch
// author Jackie Lee (jackie72@korea.com)
// http://www.727406.com
// create date 2008.07.03
// version 2.0
// powered by Park Sung-Jin
// ¹èÆ÷½Ã À§³»¿ëÀ» Æ÷ÇÔÇØ ÁÖ½Ã±â ¹Ù¶ø´Ï´Ù
///////////////////////////////////////////

//flashObject(ID¹×NAME,ÇÃ·¡½ÃÆÄÀÏ°æ·Î,°¡·ÎÇÈ¼¿,¼¼·ÎÇÈ¼¿,º¯¼ö,¹è°æ»ö,À©µµ¿ì¸ðµå)
//°¡·Î, ¼¼·Î ÇÈ¼¿À» 100%·Î ÇÒ °æ¿ì '100%'·Î ¾²¸é µË´Ï´Ù


function flashString(mID, mUrl, mWidth, mHeight, mParams, mBGcolor, mWmode) {
	var buff = [];
	buff.push("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0' width='" + mWidth + "' height='" + mHeight + "' id='" + mID + "' align='middle'>");
	buff.push("<param name='allowScriptAccess' value='always' />");
	buff.push("<param name='allowFullScreen' value='false' />");
	buff.push("<param name='movie' value='" + mUrl + "' />");
	buff.push("<param name='FlashVars' value='" + mParams + "' />");
	buff.push("<param name='quality' value='high' />");
	buff.push("<param name='wmode' value='" + mWmode + "' />");
	buff.push("<param name='bgcolor' value='" + mBGcolor + "' />");
	buff.push("<embed src='" + mUrl + "' FlashVars='" + mParams + "' quality='high' wmode='" + mWmode + "' bgcolor='" + mBGcolor + "' width='" + mWidth + "' height='" + mHeight + "' name='" + mID + "' align='middle' allowScriptAccess='always' allowFullScreen='false' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />");
	buff.push("</object>");
	
	return buff.join("");
}

function flashObject(mID, mUrl, mWidth, mHeight, mParam, mBGcolor, mWmode) {
	document.write(flashString(mID, mUrl, mWidth, mHeight, mParam, mBGcolor, mWmode));
}

function mainTap() {
	if(!document.getElementsByTagName) return false;
	if(!document.getElementById) return false;
	if(!document.getElementById("incheon")) return false;
	if(!document.getElementById("designdb")) return false;
	
	document.getElementById("incheon").style.display="none";
	document.getElementById("designdb").style.display="none";

	var mtab1=document.getElementById("article-tab1");
	var mtab2=document.getElementById("article-tab2");

	var links1 = mtab1.getElementsByTagName("li");
	var links2 = mtab2.getElementsByTagName("li");

	for(var i=0; i<links1.length; i++) {
		if(links1[i].className=="off") {
			links1[i].onclick=function(){
					document.getElementById("main-col").style.display="block";
					document.getElementById("main-pds").style.display="none";
					document.getElementById("pro").focus();
					return false;
			}
		}
	}

	for(var i=0;i< links2.length;i++) {	
		if(links2[i].className=="off") {
			links2[i].onclick=function() {
					document.getElementById("main-pds").style.display="block";
					document.getElementById("main-col").style.display="none";
					document.getElementById("psd").focus();
					return false;
			}
		}
	}
}


function MoviePlayer(url, wid, hei){
	document.write("<object classid='clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95' id='MediaPlayer1' width='"+wid+"' height='"+hei+"' border='0' style='FILTER: xray();' >");
	document.write("<param name='Filename' value='"+ url +"'>");
	document.write("<param name='loop' value='0'>");
	document.write("<param name='mute' value='0'>");
	document.write("<param name='AutoStart' value='1'>");
	document.write("<param name='AutoSize' value='0'>");
	document.write("<param name='AutoResize' value='0'>");
	document.write("<param name='TransparentAtStart' value='1'>");
	document.write("<param name='AutoRewind' value='1'>");
	document.write("<param name='ShowDisplay' value='0'>");
	document.write("<param name='ClickToPlay' value='1'>");
	document.write("<param name='EnableContextMenu' value='0'>");
	document.write("<param name='ShowPositionControls' value='0'>");
	document.write("<param name='ShowStatusBar' value='0'>");
	document.write("<param name='ShowControls' value='0'>");
	document.write("<param name='EnableTracker' value='1'>");
	document.write("<param name='Volume' value='0'>");
	document.write("</object>");
}


/* ¼ýÀÚ¸¸ ÀÔ·Â °¡´É : <input type="text" style="ime-mode:disabled"  onKeyDown="onlyNumber(this)"> */
function onlyNumber(inbuf){
	var e = window.event;

	if (e.keyCode >= 48 && e.keyCode <= 57 || e.keyCode >= 96 && e.keyCode <= 105 || e.keyCode == 8 || e.keyCode == 46 || e.keyCode >= 35 && e.keyCode <= 39 || e.keyCode == 9)
	{
		return;
	} else
		e.returnValue = false;
}