<!--
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;
}

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];}}
}

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];}
}

//»ç¿ëÇÏ´Â °÷ ¾øÀ½
function swf_include(swfUrl,swfWidth,swfHeight,bgColor,swfName,access,Vars1){
	// ÇÃ·¡½Ã ÄÚµå Á¤ÀÇ
	var flashStr=
	"<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='"+swfWidth+"' height='"+swfHeight+"' id='"+swfName+"' align='middle' />"+
	"<param name='allowScriptAccess' value='"+access+"' />"+
	"<param name='movie' value='"+swfUrl+"' />"+
	"<param name='FlashVars' value='upURL="+Vars1+"'/>"+
	"<param name='loop' value='false' />"+
	"<param name='menu' value='true' />"+
	"<param name='quality' value='high' />"+
    "<param name='scale' value='noscale' />"+
	"<param name='bgcolor' value='"+bgColor+"' />"+
	"<param name='wmode' value='transparent' />"+
	"<embed src='"+swfUrl+"' FlashVars='upURL="+Vars1+"' />"+
	"</object>";
	// ÇÃ·¡½Ã ÄÚµå Ãâ·Â
	document.write(flashStr);
};


/**
* Returns the value of the selected radio button in the radio group, null if
* none are selected, and false if the button group doesn't exist
* 
* @param {radio Object} or {radio id} el
* OR
* @param {form Object} or {form id} el
* @param {radio group name} radioGroup
*/
function $RF(el, radioGroup) {
	if($(el).type && $(el).type.toLowerCase() == 'radio') {
		var radioGroup = $(el).name;
		var el = $(el).form;
	} else if ($(el).tagName.toLowerCase() != 'form') {
		return false;
	}

	var checked = $(el).getInputs('radio', radioGroup).find( 
		function(re) {return re.checked;}
	);
	return (checked) ? $F(checked) : null;
}

//»óÇ°½ÅÃ»
function apply(service,type)
{
	var f = document.regist;

	f.stype.value = service;
	f.ptype.value = type;

	f.action = "service_reg1.php";
	f.submit();
};

//ÀÌ´ÞÀÇ µ¿¿µ»ó
function open_cenlayer(mediaFile, width, height)
{
	var ie = document.all;
	var minus_w = parseInt(width) / 2;
	var minus_h = (parseInt(width) / 2) - 10;

	close_cenlayer();

	var dsocleft = ie ? document.body.scrollLeft : window.pageXOffset;
	var dsoctop  = ie ? document.body.scrollTop : window.pageYOffset;
	var window_width  = ie ? document.body.clientWidth : window.innerWidth-20;
	var window_height = ie ? document.body.clientHeight : window.innerHeight;

	var _x = (window_width / 2) + dsocleft - minus_w;
	var _y = (window_height / 3) + dsoctop - minus_h;

	document.getElementById('layer').style.left = _x;
	document.getElementById('layer').style.top  = _y;
	document.getElementById('layer').style.width  = width;
	document.getElementById('layer').style.height = height;
	document.getElementById('layer').style.visibility = "visible";
	document.getElementById('player').innerHTML = "<iframe src=\""+mediaFile+"\" width=\"100%\" height=\"300\" frameborder=\"0\" scrolling=\"no\"></iframe>";
}

function close_cenlayer()
{
	document.getElementById('player').innerHTML = "&nbsp;";
	document.getElementById('layer').style.visibility = "hidden";
}
//-->