
	var email_chk = /^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i;
	var idpw_chk = /^[a-zA-z0-9]{5,12}$/;
	
//	ÀÌ¹ÌÁö ¹Ì¸® ÀÐ¾î¿À±â ÇÔ¼ö
	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];
				}
			}
		}
	}
	
//	±³Ã¼ Image º¹±¸ ÇÔ¼ö
	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;
	}
	
//	Object Ã£±â ÇÔ¼ö
	function MM_findObj(n, d) { //v4.01
		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 && d.getElementById) x = d.getElementById(n);
		return x;
	}

//	Image ±³Ã¼ ÇÔ¼ö	
	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];
			}
		}
	}

//	Layer ¼û±è ÇÔ¼ö
	function MM_showHideLayers() { //v6.0
		var i, p, v, obj, args = MM_showHideLayers.arguments;
		for(i = 0;i < (args.length - 2);i += 3) {
			if((obj = MM_findObj(args[i])) != null) {
				v = args[i+2];
				if(obj.style) {
					obj = obj.style;
					v = (v == 'show') ? 'visible' : (v == 'hide') ? 'hidden' : v;
				}
			}
			obj.visibility = v;
		}
	}


//	»õ·Î¿î À©µµ¿ì ¿­±â ÇÔ¼ö
	function MM_openBrWindow(theURL, winName, features) { //v2.0
	  window.open(theURL, winName, features);
	}

//	ÄíÅ°°¡Á®¿À±â ÇÔ¼ö
	function getCookie(name) { 
		var Found = false;
		var start, end;
		var i = 0;
	 
		while(i <= document.cookie.length) { 
			start = i;
			end = start + name.length;
			
			if(document.cookie.substring(start, end) == name) { 
				Found = true ;
				break ;
			} 
			i++;
		}
	
		if(Found == true) { 
			start = end + 1 ;
			end = document.cookie.indexOf(";", start) ;
			
			if(end < start) 
				end = document.cookie.length ;
		
			return document.cookie.substring(start, end) ;
		}  
		return "" ;
	}
	
//	ÁÖ¹Îµî·Ï¹øÈ£ È®ÀÎ ÇÔ¼ö
	function birthCheck(str_jumin1,str_jumin2) {
		var resno = str_jumin1 + str_jumin2;
		var fmt = /^\d{6}[1234]\d{6}$/;
		if (!fmt.test(resno))
			return false;
	
		birthYear = parseInt(resno.charAt(6)) <= 2 ? "19" : "20";	//1900³â´ë : 1,2	2000³â´ë : 3,4
		birthYear += resno.substr(0, 2);
		birthMonth = resno.substr(2, 2) - 1;
		birthDate = resno.substr(4, 2);
		birth = new Date(birthYear, birthMonth, birthDate);
		if (birth.getFullYear() % 100 != resno.substr(0, 2) || birth.getMonth() != birthMonth || birth.getDate() != birthDate)
			return false;
	
		var sum = 0;
		for (i = 0; i < 12; i++) sum += parseInt(resno.charAt(i)) * (i%8 + 2);
		if ((11 - (sum % 11)) % 10 != resno.charAt(12))
			return false;
	
		return true;
	} 
	
	
	///////// ÇÃ·¡½Ã È°¼ºÈ­
function play_flash(file_path, width, height)
{
   document.write("<div>"
    + "<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+"'>"
    + "<param name=movie value='"+file_path+"'>"
    + "<param name='wmode' value='TRANSPARENT'>"
    + "<embed src='"+file_path+"' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='"+width+"' height='"+height+"'></embed></object>"
    +"</div>"); 
}

///////// ÀÌ¹ÌÁöÈ°¼ºÈ­
function autoblur() {
        if(event.srcElement.tagName == "A") document.body.focus();
}
document.onfocusin = autoblur;



// ÇÃ·¡½Ã ÇÃ·¹ÀÌ¾î
function Flash_Activate(argSRC, argWIDTH, argHEIGHT, argID, argWMODE ,page1 ,page2 ,pass) {

	var contents = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="' + argID  + '" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="' + argWIDTH + '" height="' +argHEIGHT +'">';
	contents += '<param name="menu" value="false">';
	if (typeof(argWMODE) == "undefined") {
		contents += '<param name="wmode" value="transparent">';
	} else {
		contents += '<param name="wmode" value="' + argWMODE + '">';
	}
	contents += '<param name="movie" value="' + argSRC + '?MainP='+page1+'&SubP='+page2+'&utilN='+pass+'">';
    contents += '<param name="quality" value="high">';
    contents += '<embed src="' + argSRC + '?MainP='+page1+'&SubP='+page2+'&utilN='+pass+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" ';
	if (typeof(argWMODE) == "undefined") {
		contents += ' wmode="transparent" ';
	} else {
		contents += ' wmode="' + argWMODE + '" ';
	}
	contents += ' type="application/x-shockwave-flash" width="' + argWIDTH + '" height="' + argHEIGHT +'"></embed></object>';
	document.write(contents);
}




// png ÇÙ

function setPng24(obj) {
    obj.width=obj.height=1;
    obj.className=obj.className.replace(/\bpng24\b/i,'');
    obj.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ obj.src +"',sizingMethod='image');"
    obj.src='';
    return '';
}




//-->



