
	function newWindow(theURL,winName,features) { //v2.0
	  window.open(theURL,winName,features);
	}

	function popupWin(theURL,winName,features) { //v2.0
	  window.open(theURL,winName,features);
	}
	
	function openWindowCenter(url,name,width,height) 
	{
		var option = "status=no,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	Ivalue1(obj,len,msg)
	{
		if ( obj.value.length >= len )	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	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(target, cmt, astr, lmin, lmax)
	{
		var i
		var t = target.value;
		
		if (t.length < lmin || t.length > lmax) {
			if (lmin == lmax) alert(cmt + '´Â ' + lmin + ' Byte ÀÌ¾î¾ß ÇÕ´Ï´Ù');
			else alert(cmt + '´Â ' + lmin + ' ~ ' + lmax + ' Byte ÀÌ³»·Î ÀÔ·ÂÇÏ¼Å¾ß ÇÕ´Ï´Ù');
			target.focus();
			return true;
		}
		
		if (astr.length > 1) {
			for (i=0; i<t.length; i++)
				if(astr.indexOf(t.substring(i,i+1))<0) {
				alert(cmt + '¿¡ Çã¿ëÇÒ ¼ö ¾ø´Â ¹®ÀÚ°¡ ÀÔ·ÂµÇ¾ú½À´Ï´Ù');
				target.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 Áö¿ø ¿©ºÎ Á¡°Ë
	    return (str.indexOf('.') > 2) && (str.indexOf('@') > 0);
	}



// 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);
}

// assign code innerHTML
function tg_setcode(target, code){
        target.innerHTML = code;
}
// Flash Activating Script


