	function newWindow(theURL,winName,features) { //v2.0
	  window.open(theURL,winName,features);
	}

	function openWindow(url,name,width,height,align,valign) 
	{
		var option = "status=yes,width="+width+",height="+height;
		var x="",y="";
		
		if (align=="center") x=(screen.width-width)/2
		else if (align=="left") x=5;
		else if (align=="right") x=(screen.width-width);
		
		if (valign=="center") y=(screen.height-height)/2
		else if (valign=="top") y=5;
		else if (valign=="bottom") y=(screen.height-height);
		
		option+=",left="+x+",top="+y;
		
		var win = window.open(url,name,option);
		focus();
		win.focus();
	}

	function openWindowL(url,name,width,height,align,valign,etc) 
	{
		var option = etc+"width="+width+",height="+height;
		var x="",y="";
		
		if (align=="center") x=(screen.width-width)/2
		else if (align=="left") x=5;
		else if (align=="right") x=(screen.width-width);
		
		if (valign=="center") y=(screen.height-height)/2
		else if (valign=="top") y=5;
		else if (valign=="bottom") y=(screen.height-height);
		
		option+=",left="+x+",top="+y;
		
		var win = window.open(url,name,option);
		focus();
		win.focus();
	}

	function openWindowBlank(url,name) 
	{
    var etc = "toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,"
    var width = screen.width - 100;
    var height = screen.height - 100;
		var option = etc+"width="+width+",height="+height;
		var x="", y="";
		
		x = (screen.width-width)/2;
		y = (screen.height-height)/2;
		option+=",left="+x+",top="+y;
		
		var win = window.open(url,name,option);
		focus();
		win.focus();
	}

	function	Svalue(obj,msg)
	{
		if ( obj.selectedIndex != 0 )	return false;
		alert (msg);
		obj.focus();
		return true;
	}
	
	function	Tvalue(obj,len,msg)
	{
		if ( obj.value.length >= len )	return false;
		alert (msg + len + '±ÛÀÚ ÀÌ»ó ±âÀÔÇØ ÁÖ¼¼¿ä.' );
		obj.focus();
		return true;
	}
	
	function	Ivalue(obj,len,msg)
	{
		if ( obj.value.length >= len )	return false;
		alert (msg);
		obj.focus();
		return true;
	}
	
	function	Lvalue(obj,minlen,maxlen,msg)
	{
		if ( obj.value.length <= maxlen && obj.value.length >= minlen )	return false;
		alert (msg);
		obj.focus();
		return true;
	}
	
	function	Fvalue(obj,msg)
	{
		if ( obj.value.length > 0 )	return false;
		alert (msg);
		obj.focus();
		return true;
	}
	
	function	NumCheck(obj,len,msg)
	{
		if ( obj.value.length <  len) {
			alert (msg + len + '±ÛÀÚ ÀÌ»ó ±âÀÔÇØ ÁÖ¼¼¿ä.' );
			obj.focus();
			return true;
		}
	
		if ( isNaN ( obj.value) ) {
			alert (msg + ' ¼ýÀÚ·Î ±âÀÔÇØ ÁÖ¼¼¿ä.' );
			obj.focus();
			return true;
		}
		return false;
	}

	function FloatCheck(obj, len, cmt)
	{
		var i
		var t = obj.value;
		
		astr = "1234567890."
		
		if (t.length < len) {
			
			alert(cmt + '¸¦(À») ÀÔ·ÂÇÏ¿© ÁÖ½Ê½Ã¿ä.');
			obj.focus();
			return true;
		}
		
		if (t.length > 1) {
			for (i=0; i<t.length; i++)
				if(astr.indexOf(t.substring(i,i+1))<0) {
				alert(cmt + '¿¡ Çã¿ëÇÒ ¼ö ¾ø´Â ¹®ÀÚ°¡ ÀÔ·ÂµÇ¾ú½À´Ï´Ù.\n\''+astr+'\'¿¡ ÇØ´çÇÏ´Â ¹®ÀÚ·Î¸¸ ÀÔ·ÂÇÏ¿© ÁÖ½Ê½Ã¿ä.');
				obj.focus();
				return true;
				}
		}
		return false;
	}                      

	function	ValidDigit(obj,min,max,cmt)
	{
		if (obj.value < min || obj.value > max) {
			alert(cmt+' '+max+'¿¡¼­ '+min+'±îÁöÀÇ ¼ýÀÚ ÀÌ¾î¾ß ÇÕ´Ï´Ù'+obj.value);
			obj.focus();
			return true;
		}
		return false;
	}                       

	function Tcheck(obj, oname, astr, lmin, lmax)
	{
		var i;
		if (obj.value.length < lmin || obj.value.length > lmax) {
			if (lmin == lmax) alert(oname + '(Àº)´Â ' + lmin + ' Byte ÀÌ¾î¾ß ÇÕ´Ï´Ù');
			else alert(oname + '´Â ' + lmin + ' ~ ' + lmax + ' ÀÚ ÀÌ³»·Î ÀÔ·ÂÇÏ¼Å¾ß ÇÕ´Ï´Ù');
			obj.focus();
			return true;
		}
		
		if (astr.length > 1) {
			for (i=0; i<obj.value.length; i++)
				if(astr.indexOf(obj.value.substring(i,i+1))<0) {
				alert(oname + '¿¡ Çã¿ëÇÒ ¼ö ¾ø´Â ¹®ÀÚ°¡ ÀÔ·ÂµÇ¾ú½À´Ï´Ù.\n\''+astr+'\'¿¡ ÇØ´çÇÏ´Â ¹®ÀÚ·Î¸¸ ÀÔ·ÂÇÏ¿© ÁÖ½Ê½Ã¿ä.');
				obj.focus();
				return true;
				}
		}
		return false;
	}                      

	function Tcheck1(obj, oname, astr, lmin)
	{
		var i;
		if (obj.value.length < lmin ) {
			alert(oname + '´Â ' + lmin +' ÀÚ ÀÌ»ó ÀÔ·ÂÇÏ¼Å¾ß ÇÕ´Ï´Ù');
			obj.focus();
			return true;
		}
		if (astr.length > 1) {
			for (i=0; i<obj.value.length; i++)
				if(astr.indexOf(obj.value.substring(i,i+1))<0) {
				alert(oname + '¿¡ Çã¿ëÇÒ ¼ö ¾ø´Â ¹®ÀÚ°¡ ÀÔ·ÂµÇ¾ú½À´Ï´Ù.\n\''+astr+'\'¿¡ ÇØ´çÇÏ´Â ¹®ÀÚ·Î¸¸ ÀÔ·ÂÇÏ¿© ÁÖ½Ê½Ã¿ä.');
				obj.focus();
				return true;
				}
		}
		return false;
	}                      

	function isImage(url) {
		var ix = url.toLowerCase();
		if ((ix.indexOf('.jpg') != -1) || (ix.indexOf('.jpe') != -1) || (ix.indexOf('.jpeg') != -1) || (ix.indexOf('.gif') != -1)) return true;
		else return false; // can't determine further from filename!
	}

	function isEmail(str) {
	  // regular expression Áö¿ø ¿©ºÎ Á¡°Ë
	  var supported = 0;
	  if (window.RegExp) {
	    var tempStr = 'a';
	    var tempReg = new RegExp(tempStr);
	    if (tempReg.test(tempStr)) supported = 1;
	  }
	  if (!supported) 
	    return (str.indexOf('.') > 2) && (str.indexOf('@') > 0);
	  var r1 = new RegExp('(@.*@)|(\\.\\.)|(@\\.)|(^\\.)');
	  var r2 = new RegExp
	  ('^.+\\@(\\[?)[a-zA-Z0-9\\-\\.]+\\.([a-zA-Z]{2,3}|[0-9]{1,3})(\\]?)$');
	  return (!r1.test(str) && r2.test(str));
	}

	function confirmMsg(msg,gourl) {
		if (confirm(msg) == true) location.href = gourl;
	}




// Flash Activating Script
// 2005-12-05
// inome _at_ nhncorp.com
// Don't Edit Below! Never!

// s: source url
// d: flash id
// w: source width
// h: source height
// t: wmode ("" for none, transparent, opaque ...)
function mf(s,d,w,h,t){
        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="+w+" height="+h+" id="+d+"><param name=wmode value="+t+" /><param name=movie value="+s+" /><param name=quality value=high /><embed src="+s+" quality=high wmode="+t+" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?p1_prod_version=shockwaveflash\" width="+w+" height="+h+"></embed></object>";
}

// write document contents
function dc_write(src){
        document.write(src);
}

/* ÇÃ·¡½Ã»ðÀÔ */
function viewFlash(src,width,height,wmode)
{
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="' + width + '" height="' + height + '">');
	document.write('<param name=movie value="' + src + '">');
	document.write('<param name=quality value=high>');
	document.write('<param name=allowScriptAccess value=always>');
	if(wmode == 1){ document.write('<param name="wmode" value="transparent">');}
	document.write('<embed src="' + src + '" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" wmode="transparent" width="' + width + '" height="' + height + '">');
	document.write('</embed> ');
	document.write('</object>');
}

/* ÇÃ·¡½Ã»ðÀÔ_º¸¾È */
function viewFlashMember(src,width,height,wmode)
{
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="' + width + '" height="' + height + '">');
	document.write('<param name=movie value="' + src + '">');
	document.write('<param name=quality value=high>');
	document.write('<param name=allowScriptAccess value=always>');
	if(wmode == 1){ document.write('<param name="wmode" value="transparent">');}
	document.write('<embed src="' + src + '" quality=high pluginspage="https://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="' + width + '" height="' + height + '">');
	document.write('</embed> ');
	document.write('</object>');
}

// assign code innerHTML
function tg_setcode(target, code){
        target.innerHTML = code;
}
// Flash Activating Script



/* µ¿¿µ»óÆÄÀÏ »ðÀÔ Á¤ÀÇ */
function showVod() {
	document.write("<embed src=\"http://www.crown.co.kr/upload/movie/vicpie_20070327.wmv\" width=\"250\" height=\"228\" />");
}

/*
function showVod(vSrc,w,h) {
	var tmpStr = "";
	tmpStr += "<object name=\"vod\" width=\""+w+"\" height=\""+h+"\" classid=\"CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6\" codebase=\"http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701\" standby=\"Loading Microsoft Windows Media Player components...\" type=\"application/x-oleobject\">";
	tmpStr += "<param name=\"URL\" value=\""+vSrc+"\">";
	tmpStr += "<param name=\"animationatStart\" value=\"true\">";
	tmpStr += "<param name=\"transparentatStart\" value=\"true\">";
	tmpStr += "<param name=\"autoStart\" value=\"true\">";
	tmpStr += "<param name=\"showControls\" value=\"true\">";
	tmpStr += "<param name=\"AutoRewind\" value=\"true\">";
	tmpStr += "<param name=\"Volume\" value=\"-600\">";
	tmpStr += "<param name=\"PlayCount\" value=\"5\">";
	tmpStr += "</object>";
	document.write(tmpStr);
//	tmpStr += "<embed src=\""+vSrc+"\" width=\""+w+"\" height=\""+h+"\" />";
//	document.write(tmpStr);
}
*/


/* Popup¿­±â */
function openPop(pop,width,height,flag) {
	var url = pop;
	var wd = width;
	var he = height;
	var top = (screen.height)?(screen.height-he)/2:0;
	var left = (screen.width)?(screen.width-wd)/2:0;

	if (flag == "0") {
	window.open(url,"","toolbars=0,menubar=0,scrollbars=no,resizable-no,width="+wd+",height="+he);
	} else {
	window.open(url,"","toolbars=0,menubar=0,scrollbars=yes,resizable-no,width="+wd+",height="+he);
	}
}


/* ÁÂÃø¸Þ´º ÇÏ´Ü¹è³Ê*/
function showLBanner() {
	document.write("<div id=\"lban\">");
	document.write("<input type=\"text\" name=\"\" size=\"15\" class=\"noline\" />");
	document.write("<a href=\"#\"><img src=\"../image/common/button/btn_zoom.gif\" border=\"0\" alt=\"\" align=\"absmiddle\" /></a>");
	document.write("</div>");
}


/* 
	Æ¯¼ö¹®ÀÚ °Ë¼öºÎºÐ ½ÃÀÛ Á¤±Ô½Ä 
	2008/10/31 ÀÏ Ãß°¡ 

*/
function inputCheckSpecial(obj){
  var strobj = obj; //ÀÔ·Â°ªÀ» ´ãÀ»º¯¼ö.
  re = /[~!@\#$%^&*\()\=+_'`<>/?":;,.]/gi;
  if(re.test(strobj.value)){
    alert("Æ¯¼ö¹®ÀÚ´Â ÀÔ·ÂÇÏ½Ç¼ö ¾ø½À´Ï´Ù.");
    strobj.value=strobj.value.replace(re,"");
  }
}



function SetIdCheck(obj)
{
  var strobj = obj; //ÀÔ·Â°ªÀ» ´ãÀ»º¯¼ö.
  var re = /[~!@\#$%^&*\()\=+_'`<>/?":;,.-]/gi;
  var re1 =/[¤¡-¤¾|¤¿-¤Ó|°¡-Èþ]/gi;
  if(re.test(strobj.value)||re1.test(strobj.value) )
  {
    alert("Æ¯¼ö¹®ÀÚ/ÇÑ±ÛÀº ÀÔ·ÂÇÏ½Ç¼ö ¾ø½À´Ï´Ù.");
    strobj.value=strobj.value.replace(re,"");
	strobj.value=strobj.value.replace(re1,"");
  }
	
}

function NameCheck(obj) {

	var strobj = obj; //ÀÔ·Â°ªÀ» ´ãÀ»º¯¼ö.
  var re = /[~!@\#$%^&*\()\=+_'`<>/?":;,.]/gi;
  if(re.test(strobj.value) )
  {
    alert("Æ¯¼ö¹®ÀÚ´Â ÀÔ·ÂÇÏ½Ç¼ö ¾ø½À´Ï´Ù.");
    strobj.value=strobj.value.replace(re,"");
  }

}


function SetNum(obj)
	{
	 val=obj;
	 re=/[^0-9]/gi;
	 if (re.test(val.value))
	 {
		alert("¼ýÀÚ¸¸ ÀÔ·ÂÇØÁÖ¼¼¿ä.");
		val.value = val.value.replace(re,"");
	 }
	}

function SetEng(obj)
	{
	 val=obj;
	 re=/[^a-z|^A-Z]/gi;
	 if (re.test(val.value))
	 {
		alert("¿µ¾î·Î ÀÔ·ÂÇØÁÖ¼¼¿ä.");
		val.value = val.value.replace(re,"");
	 }
	}

function SetHan(obj)
	{
	 val=obj;
	 re=/[^¤¡-¤¾|^¤¿-¤Ó|^°¡-Èþ]/gi;
	 if (re.test(val.value))
	 {
		alert("ÇÑ±ÛÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä.");
		val.value = val.value.replace(re,"");
	 }
	}

function SetNick(obj)
	{
	 val=obj;
	 re=/[^a-z|^A-Z|^0-9]/gi;
	 if (re.test(val.value))
	 {
		alert("¿µ¾î/¼ýÀÚ·Î·Î ÀÔ·ÂÇØÁÖ¼¼¿ä.");
		val.value = val.value.replace(re,"");
	 }
	}

function SetEmailCheck(obj)
{
	var strobj = obj; //ÀÔ·Â°ªÀ» ´ãÀ»º¯¼ö.
  re = /[~!\#$%^&*\()\-=+_'`<>/?":;,]/gi;
  re1 =/[¤¡-¤¾|¤¿-¤Ó|°¡-Èþ]/gi;
  if(re.test(strobj.value) || re1.test(strobj.value) )
  {
    alert("@¿Í.¸¦ Á¦¿ÜÇÑ Æ¯¼ö¹®ÀÚ/ÇÑ±ÛÀº ÀÔ·ÂÇÏ½Ç¼ö ¾ø½À´Ï´Ù.");
    strobj.value=strobj.value.replace(re,"");
  }
	
}


/* Æ¯¼ö¹®ÀÚ °Ë¼ö ºÎºÐ ³¡ */


	function infoAlert(){
		alert("°í°´´Ô, ¾È³çÇÏ¼¼¿ä.\n2008³â 9¿ù Æ÷ÀÎÆ®Á¦µµ ÆóÁö ÈÄ ÇöÀç ¹ÝÂ¦! ¾ÆÀÌµð¾îÁ¦¾È,\n¹Ì¼Ç ÆÄ¼­ºí, ¿£µ¹ÇÉ ÃæÀü¼Ò'´Â ¿î¿µÇÏ°í ÀÖÁö ¾Ê½À´Ï´Ù.\n¾ÆÀÌµð¾î Á¦¾ÈÀÌ³ª ±âÅ¸ ¹®ÀÇ»çÇ×À» È¨ÆäÀÌÁö ¡®Q&A¡¯·Î\n¹®ÀÇÇØÁÖ½Ã¸é, Àû±Ø ¹Ý¿µÇÏµµ·Ï ÇÏ°Ú½À´Ï´Ù.\nÃßÈÄ¿¡ ´õ ³ªÀº ¸ð½ÀÀ¸·Î Ã£¾Æ ºËµµ·Ï ÇÏ°Ú½À´Ï´Ù.\n°¨»çÇÕ´Ï´Ù.");
	}
