// title
document.title="ÃÊÁßµî ¼öÇÐÀü¹® °øºÎ¹æ- Àç´É¼öÇÐ±³½Ç";


// ¼¿·ºÆ®¹Ú½º ¸Þ´º
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}


// ·Ñ¿À¹ö ¸Þ´º
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_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;
}

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 windowClose() {
   self.window.close();
}

function openWin(url, name, opt){
	window.open(url, name, opt);
}


// ÆË¾÷
function OpenWindow(url,intWidth,intHeight) { 
      window.open(url, "_blank", "width="+intWidth+",height="+intHeight+",resizable=0,scrollbars=0") ;
}
// Å©±âÁ¶Á¤°¡´É ¸Þ´º¹Ù ½ºÅ©·Ñ Åø¹Ù ¸ðµÎ ÀÖÀ½
function OpenWindow_r(url,intWidth,intHeight) { 
      window.open(url, "_blank", "width="+intWidth+",height="+intHeight+",resizable=yes,scrollbars=yes,location=yes,menubar=yes,toolbar=yes") ;
}

// ½ºÅ©·ÑÀÌ ÀÖÀ» ¶§
function OpenWindow_s(url,intWidth,intHeight) { 
      window.open(url, "_blank", "width="+intWidth+",height="+intHeight+",resizable=0,scrollbars=1") ;
}

function topMenu(menuValue) {
	// Å¾ ¹öÆ°
	document.write("<div id='floater' style='position:absolute; z-index:1; visibility: visible'><a href='#' onfocus='this.blur()'><img src='/images/common/temp_top.jpg' alt='top'></a></div>");
	//// Å¾ ¹öÆ°

	document.write( "<div id='head'>");

	// ±Û·Î¹ú ¸Þ´º

	document.write( "<div id='global'>");
	document.write( "<span style='width:604px'><a href='#' onfocus='this.blur()'><img src='/images/common/menu_kor.gif' alt=''></a><a href='#' onfocus='this.blur()'><img src='/images/common/menu_eng.gif' alt=''></a></span><a href='#' onfocus='this.blur()'><img src='/images/common/menu_sitemap.gif' alt=''></a><a href='#' onfocus='this.blur()'><img src='/images/common/menu_contactus.gif' alt=''></a>");
	document.write( "</div>");

	//// ±Û·Î¹ú ¸Þ´º

	// ¸ÞÀÎ ¸Þ´º
	if (menuValue == 1) {
		document.write( "<div>");
		document.write( "<img src='/images/common/temp_menu.jpg' alt=''>");
		document.write( "</div>");
		document.write( "<div>");
		document.write( "<img src='/images/company/temp_visual01.jpg' alt=''>");
		document.write( "</div>");
	} else if (menuValue == 2) {
		document.write( "<div>");
		document.write( "<img src='/images/common/temp_menu.jpg' alt=''>");
		document.write( "</div>");
		document.write( "<div>");
		document.write( "<img src='/images/business/temp_visual01.jpg' alt=''>");
		document.write( "</div>");
	} else if (menuValue == 3) {
		document.write( "<div>");
		document.write( "<img src='/images/common/temp_menu.jpg' alt=''>");
		document.write( "</div>");
		document.write( "<div>");
		document.write( "<img src='/images/stars/temp_visual01.jpg' alt=''>");
		document.write( "</div>");
	} else if (menuValue == 4) {
		document.write( "<div>");
		document.write( "<img src='/images/common/temp_menu.jpg' alt=''>");
		document.write( "</div>");
		document.write( "<div>");
		document.write( "<img src='/images/pressroom/temp_visual01.jpg' alt=''>");
		document.write( "</div>");
	} else if (menuValue == 5) {
		document.write( "<div>");
		document.write( "<img src='/images/common/temp_menu.jpg' alt=''>");
		document.write( "</div>");
		document.write( "<div>");
		document.write( "<img src='/images/audition/temp_visual01.jpg' alt=''>");
		document.write( "</div>");
	} else if (menuValue == 6) {
		document.write( "<div>");
		document.write( "<img src='/images/common/temp_menu.jpg' alt=''>");
		document.write( "</div>");
		document.write( "<div>");
		document.write( "<img src='/images/company/temp_visual01.jpg' alt=''>");
		document.write( "</div>");
	} else {
		document.write( "<div>");
		document.write( "<img src='/images/common/temp_menu.jpg' alt=''>");
		document.write( "</div>");
		document.write( "<div>");
		document.write( "<img src='/images/company/temp_visual01.jpg' alt=''>");
		document.write( "</div>");
	}
	//// ¸ÞÀÎ ¸Þ´º

	document.write( "</div>");
}


// ÇÃ·¡½Ã
// flashWrite(ÆÄÀÏ°æ·Î, °¡·Î, ¼¼·Î, ¾ÆÀÌµð)
function flashWrite(url,w,h,id){

	// ÇÃ·¡½Ã ÄÚµå Á¤ÀÇ
	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='"+w+"' height='"+h+"' id='"+id+"' align='middle'>"+
	"<param name='allowScriptAccess' value='always' />"+
	"<param name='movie' value='"+url+"' />"+
	"<param name='menu' value='false' />"+
	"<param name='quality' value='high' />"+
	"<param name='wmode' value='transparent' />"+
	"<embed src='"+url+"' menu='false' quality='high' wmode='transparent' width='"+w+"' height='"+h+"' name='"+id+"' align='middle' allowScriptAccess='always' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />"+
	"</object>";

	// ÇÃ·¡½Ã ÄÚµå Ãâ·Â
	document.write(flashStr);

}

var emptyStr = " ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À...";
var comboStr = " ¼±ÅÃÇØ ÁÖ½Ê½Ã¿À...";
var radioStr = " ¼±ÅÃÇØ ÁÖ½Ê½Ã¿À...";

var emptyStr_eng = "Please enter ";
var comboStr_eng = "Please select ";

function validateString(xObject, sStr) {
	if (isNullChk(xObject.value) && isBlankChk(xObject.value)) 
		return true
	else {		
		alert(sStr + emptyStr)
		xObject.focus()
		return false
	}
}

function isNullChk(sVal) {
	if (sVal.length == 0 )
		return false
	else 
		return true
}

function isBlankChk(sVal) {
	for (i = 0; i < sVal.length; i++) {
		if (sVal.charAt(i) != " ")
			return true			
	}
	return false
}

function isLenChk(str, size) {
	if (str.length == size) 
		return true
	else
		return false
}

function HanlenChk(xObj, nLen, sStr)
{
	var temp;
	var icount;
	icount = 0;
	len = xObj.value.length;
	for(k=0;k<len;k++)
	{
		temp = xObj.value.charAt(k);
		if(escape(temp).length > 4)
			icount += 2;
		else
			icount++;
	}

	if (icount > nLen)
	{
		alert(sStr + "ÀÇ ¹®ÀÚ¿­ ±æÀÌ°¡ ÃÊ°úµÇ¾ú½À´Ï´Ù...");
		xObj.focus();
		return false;
	}
}

//a1ÀÌ ½º½º·Î ÇÐ½À¹ý ¸ÞÀÎ ¹öÆ°ÀÇ ¸µÅ©ÀÌ°í a2ºÎÅÍ°¡ ÇÏÀ§ ¼­ºê ¸Þ´ºÀÎ
//½º½º·Î ÇÐ½À¹ýÀÌ¶õ? ¹öÆ°ÀÇ ¸µÅ©°¡ µË´Ï´Ù.
//b1,c1¿ª½Ã ±³ÀçÁ¤º¸ ¿Í ÇÐ½À½ÅÃ» ¸Þ´ºÀÇ ¸ÞÀÎ¹öÆ°ºÎÅÍ ½ÃÀÛÇÏ¿© ¼øÂ÷ÀûÀ¸·Î ¸µÅ©¸¦ ÁÖ½Ã¸é µË´Ï´Ù.
//À§ÀÇ Àç´É ½º½º·Î/Àç´ÉÇÐ½À°ü/Àç´É±×·ìÀÇ ¸µÅ©´Â t1,t2,t3°¡ µË´Ï´Ù.
var t1="/index.asp";
var t2="/zone/zone_check.asp";
var t3="http://company.jei-edu.com/";


var a1="/intro/intro_jei.asp";
var a2="/intro/intro_jei.asp";
var a3="/intro/intro_join.asp";
var a4="/intro/intro_bi.asp";
var a5="/intro/intro_area.asp";
var b1="/self/self_011.asp";
var b2="/self/self_011.asp";
var b3="/self/self_021.asp";
var b4="/self/self_031.asp";
var b5="/self/self_success.asp";
var c1="/system/system_susuro.asp";
var c2="/system/system_susuro.asp";
var c3="/system/system_constitution.asp";
var c4="/system/system_teaching_primary01.asp";
var d1="/franchise/fran_why.asp";
var d2="/franchise/fran_why.asp";
var d3="/franchise/fran_info.asp";
var d4="/franchise/fran_step.asp";
var d5="/franchise/fran_support.asp";
var d6="/franchise/fran_faq.asp";
var d7="/franchise/fran_app.asp";
var e1="/parents/parents_vod.asp?bcate=06";
var e2="/parents/parents_vod.asp?bcate=06";
var e3="/parents/parents_vod.asp?bcate=10";
function moveTo(link)
{
location.replace(link);
}
