
	// ÇÃ·¡½Ã ·Îµù
	function draw_flash(f_url, f_width, f_height, div_id)
	{
		var f_target = document.getElementById(div_id);
		var obj = "";

		if(f_url == "undefined" || f_width == "undefined" || f_height == "undefined" || f_target == null){
			return;
		}else{
			obj = "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\""
				+ " codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0\""
				+ " width=\""+ f_width +"\" height=\""+ f_height +"\">"
				+ "<param name=\"movie\" value=\""+ f_url +"\">"
				+ "<param name=\"wmode\" value=\"transparent\">"
				+ "<param name=\"quality\" value=\"high\">"
				+ "<embed src=\""+ f_url +"\" quality=\"high\""
				+ " pluginspage=\"http://www.macromedia.com/go/getflashplayer\""
				+ " type=\"application/x-shockwave-flash\" width=\""+ f_width +"\" height=\""+ f_height +"\">"
				+ "</embed></object>";
			f_target.innerHTML = obj;
		}
	}



	function pop_open(pop_url)
	{
		var pop_name = pop_url.replace(/[^\w]*/g, "");
		var pop_win = window.open(pop_url, pop_name, "top=0, left=0, width=670, height=700, scrollbars=yes");
		pop_win.focus();
	}


	
	function online_counsel()
	{
		var W = 500;
		var H = 580;
		var T = (screen.availHeight - H) / 2;
		var L = (screen.availWidth - W) / 2;
		var pop_win = window.open("/kor/pop_online_counsel.html", "__POP_ONLINE_COUNSEL__", "top="+ T +", left="+ L +", width="+ W +", height="+ H);
		pop_win.focus();
	}



	// ÆûÀü¼Û
	function form_submit(form_check, _action, _method, _target)
	{
		var frm = document.getElementById("frm");

		if(form_check){
			if(form_check(frm) == false){
				return;
			}
		}

		if(_method === "get"){
			frm.method = "get";
		}else{
			if(_method === "file"){
				var div = document.createElement("DIV");
				div.style.marginTop = "20%";
				div.style.textAlign = "center";
				div.innerHTML = "<div style=\"margin: 20px 0 0 8px;font-size: 13px;font-weight: bold;color: #999\">¾÷·Îµå Áß ÀÔ´Ï´Ù..</div>";
				frm.parentNode.appendChild(div);
				frm.style.display = "none";

				frm.encoding = "multipart/form-data";
			}
			frm.method = "post";
		}
		frm.target = _target ? _target : "";
		frm.action = _action;
		frm.submit();
	}



	// Å°º¸µå ÀÔ·Â½Ã ÀÌº¥Æ® Ã³¸®
	function event_keypress(event, func, key_code)
	{
		key_code ? "" : key_code = 13;

		if(event.keyCode == key_code){
			event.returnValue = false;
			func(event);
		}
	}


	// ´Ù¿î·Îµå
	function down_file(file)
	{
		var ifr = document.getElementById("__I_F_R_A_M_E__");

		if(ifr === null){
			ifr = document.createElement("IFRAME");
			ifr.id = "__I_F_R_A_M_E__";
			ifr.style.display = "none";
			ifr.style.width = 0;
			ifr.style.height = 0;
		}
		document.body.appendChild(ifr);
		ifr.src = "./download.html?file="+ file;
	}



	function map_print(_map)
	{
		var pop_win = window.open("./pop_print.html?map="+ _map, "__POP_MAP_PRINT__", "width=580, height=0, top=0, left=0");
		pop_win.focus();
	}



	function parse_int(obj)
	{
		obj.value = obj.value.replace(/[^\d]/g, "");
	}

