//¼ýÀÚÀÔ·ÂÃ¼Å©
function isNumber(inputName) 
{ 
	var chars = "0123456789"; 
	return containsCharsOnly(inputName,chars); 
}	
//¼ýÀÚÀÔ·ÂÃ¼Å©
function containsCharsOnly(inputName,chars) 
{ 
	for (var inx = 0; inx < inputName.value.length+1; inx++) 
	{ 
		if (chars.indexOf(inputName.value.charAt(inx)) == -1) 
		{
			alert("¼ýÀÚ¸¸ ÀÔ·ÂÀÌ °¡´ÉÇÕ´Ï´Ù.");
			inputName.value = "";
			inputName.focus();
			return false;
		}
	} 
	return true;
}

//°ø¹éÁ¦°Å
function SpaceDel(inputName)
{
	var index, len, str;

	str = inputName.value;

	while(true){
		index = str.indexOf(" ");
		if (index == -1) break;
		len = str.length;
		str = str.substring(0, index) + str.substring((index+1), len);
	}

	inputName.value = str;
}

//³¯Â¥¼±ÅÃ
function Calendar(FormName, InputName)
{
	var window_left = (screen.width-640)/2;
	var window_top = (screen.height-480)/2;
	var post_ref = "/popup/pop_calendar.asp?FormName=" + FormName + "&InputName=" + InputName;

	window.open(post_ref,'','width=210, height=220,left='+window_left+',top='+window_top+', toolbar=no, location=no, directories=no, status=no, menubar=no, resizable=no, scrollbars=no, copyhistory=no')
}

//¿ìÆí¹øÈ£Ã£±â
function ZipCode()
{
	var window_left = (screen.width-640)/2;
	var window_top = (screen.height-480)/2;
	var post_ref = "/popup/pop_zipcode.asp";
	window.open(post_ref,'', 'width=386, height=300,left='+window_left+',top='+window_top+', toolbar=no, location=no, directories=no, status=no, menubar=no, resizable=no, scrollbars=yes, copyhistory=no')
}

//Ä£±¸ÃßÃµ
function GoFriend(nUrl)
{
	var URL = document.URL;

	var window_left = (screen.width-640)/2;
	var window_top = (screen.height-480)/2;
//	var post_ref = "/popup/pop_friend.asp?URL=" + URL;
	var post_ref = nUrl+"/popup/pop_friend.asp?URL=" + URL;

	window.open(post_ref,'', 'width=500, height=220,left='+window_left+',top='+window_top+', toolbar=no, location=no, directories=no, status=no, menubar=no, resizable=no, scrollbars=no, copyhistory=no')
}


//ÀÚµ¿ ´ÙÀ½ Æû ÀÌµ¿
function moveNext(id_from, id_to, size) 
{
	var a = document.getElementById(id_from).value;
	siz = a.length;

	if (siz == size) {
		document.getElementById(id_to).focus();
	}
}

//rollover
function imgOver(imgObj)
{
	var imgSrc = imgObj.src;
	var imgSrcOver = imgSrc.replace(".gif", "_on.gif");
	imgObj.src = imgSrcOver;
}

function imgOut(imgObj)
{
	var imgSrc = imgObj.src;
	var imgSrcOut = imgSrc.replace("_on.gif", ".gif");
	imgObj.src = imgSrcOut;
}







// ÇÃ·¡½Ã
var EmbedStr = "";
function GetFlash3(objid,url,x,y) { 
	
	AC_FL_RunContent(
		'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
		'width', x,
		'height', y,
		'src', url,
		'quality', 'high',
		'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
		'align', 'middle',
		'play', 'true',
		'loop', 'true',
		'scale', 'showall',
		'wmode', 'window',
		'devicefont', 'false',
		'id', objid,
		'bgcolor', '#ffffff',
		'name', 'HubMain',
		'menu', 'true',
		'allowFullScreen', 'false',
		'allowScriptAccess','sameDomain',
		'movie', url,
		'salign', ''
		); //end AC code
		//document.write(EmbedStr);
		//return;
		
	}				

//ÆË¾÷_Á¦Ç°¼³¸í¼­
function PopGuide(URL)
{	
	window.open(URL, "", "width=650,height=660 resizable=no,scrollbars=no,top=0");
}

//ÆË¾÷_¹Ì´ÏÃ¢
function pop_cat(no){

	pop_url = "/event/e200412/guide"+no+"_00.asp"
	
	window.open(pop_url,"pop_cat","top=10,left=10,toolbar=no,location=no,menubar=no,scrollbars=yes,resizable=no,width=691,height=670");

}
//ÆË¾÷_Àº´ÏÄÚ¹Ú»ç
function Pop_eni(){
	window.open("http://www.ktoe.co.kr/flash/pop_flash.asp", "eni", "width=930,height=690,resizable=no,scrollbars=no,toolbars=no,status=yes,menu=no',left=0,top=0").focus();
}


