/***************************
* website_title
****************************/
document.title=":::: ¿õÁø eSAC ::::";



/******************************************************************************/
/* rollover_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;
}

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];}
}



/******************************************************************************/
/* popup
/******************************************************************************/
/* window_open ½ºÅ©·ÑÀÌ ¾øÀ» ¶§ */
function popWin(url, target, intwidth,intheight) {
	window.open(url, target , "width="+intwidth+",height="+intheight+",resizable=0,scrollbars=0");
}

/* window_open ½ºÅ©·ÑÀÌ ÀÖÀ» ¶§ */
function popWinS(url, target, intwidth,intheight) {
	window.open(url, target , "width="+intwidth+",height="+intheight+",resizable=0,scrollbars=1");
}

/* window_close */
function popClose() {
	window.close();
}



/******************************************************************************/
/* layer
/******************************************************************************/
/* ÀÌ¿ë¾à°üµ¿ÀÇ */
function agree01Go(agreeTabNum){
    for ( i=1 ; i <= 2 ; i++ ) {
        document.getElementById("agree01_0" + i).style.display = "none";
    }
    document.getElementById("agree01_0" + agreeTabNum).style.display = "block";
}

/* °³ÀÎÁ¤º¸º¸È£¸¦ À§ÇÑ ÀÌ¿ëÀÚµ¿ÀÇ»çÇ× */
function agree02Go(agreeTabNum){
    for ( i=1 ; i <= 3 ; i++ ) {
        document.getElementById("agree02_0" + i).style.display = "none";
    }
    document.getElementById("agree02_0" + agreeTabNum).style.display = "block";
}

/* Àü¹®°¡ °Ë»çº°°úÁ¤ */
function schoolStepTabGo(tabName,tabNum){
    for ( j=1 ; j <= stepTabTit[step1Code][step2Code].length-1 ; j++ ) {
        document.getElementById(tabName + "Ot0" + j).style.display = "none";
    }
    document.getElementById(tabName + "Ot0" + tabNum).style.display = "block";
}


/***************************
* reviewInfo
****************************/
function reviewInfo(name){
    var g ="";
	var reviewLink ="";

	if ( name == "pop" ){
		reviewLink ="#";
	} else {
		reviewLink ="#";
	}

    g+="<div class='reviewInfo'>";
    g+="    <p class='cmt'><img src='/image/common/review_info_cmt.gif' alt='°Ë»çÀÌ¿ëÈÄ±â¸¦ ÀÛ¼ºÇÏ½Ã¸é eSAC¿¡¼­ µå¸®´Â ÇýÅÃ! ¿Ï·áÇÏ½Å °Ë»ç¿¡ ´ëÇØ °Ë»çÀÌ¿ëÈÄ±â¸¦ ÀÛ¼ºÇÏ½Ã¸é ÇØ´ç °Ë»ç¿¡ ´ëÇÑ ´ÙÀ½ °Ë»çÁÖ±â¿¡ »ç¿ëÇÏ½Ç ¼ö ÀÖ´Â °Ë»çÀÌ¿ë±ÇÀ» µå¸³´Ï´Ù.' /></p>";
    g+="    <a href='" + reviewLink + "'><img src='/image/common/btn_review_view.gif' alt='ÀÚ¼¼È÷º¸±â' /></a>";
    g+="</div>";

    document.write(g);
}



/******************************************************************************/
/* flash
/******************************************************************************/
/* °Ë»ç »ùÇÃ */
function assessmentSample(name) {
	var g = "";

	g+="<span class='sample'>";
	g+="	<object classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 ";
	g+="    codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0 ";
	g+="    width=145px height=122px id=sampleView align=middle>";
	g+="		<param name=allowScriptAccess value=middle>";
	g+="		<param name=movie value=/common/swf/assessmentSampleView.swf>";
	g+="		<param name=quality value=high>";
	g+="		<param name=wmode value=transparent>";
	g+="		<embed src=/common/swf/assessmentSampleView.swf ";
	g+="         quality=high pluginspage=http://www.macromedia.com/go/getflashplayer ";
	g+="		 type=application/x-shockwave-flash wmode=transparent width=145px height=122px></embed>";
	g+="	</object>";
	g+="</span>";

	document.write(g);
}


/* Àü¹®°¡ °Ë»çº°°úÁ¤ */
function schoolStepImg(step1,step2) {
	var g = "";

	if ( step1 == "main" ){
		step1Code = 0 ;
		step2Code = 0 ;
	} else if ( step1 == "basic" ){
		step1Code = 1 ;		
		switch (step2){
			case "Human"		: step2Code = 1 ; break;
			case "Interest"		: step2Code = 2 ; break;
		}		
	} else if ( step1 == "book" ){
		step1Code = 2 ;		
		switch (step2){
			case "Skill"		: step2Code = 1 ; break;
			case "Environment"	: step2Code = 2 ; break;
		}		
	} else if ( step1 == "brain" ){
		step1Code = 3 ;		
		switch (step2){
			case "Attention"	: step2Code = 1 ; break;
			case "Memory"		: step2Code = 2 ; break;
			case "Executive"	: step2Code = 3 ; break;
		}		
	} else if ( step1 == "study" ){
		step1Code = 4 ;		
		switch (step2){
			case "Motive"		: step2Code = 1 ; break;
			case "Environment"	: step2Code = 2 ; break;
			case "Skill"		: step2Code = 3 ; break;
		}		
	} else if ( step1 == "health" ){
		step1Code = 5 ;
		switch (step2){
			case "Life"		: step2Code = 1 ; break;
			case "Eating"	: step2Code = 2 ; break;
			case "Movement"	: step2Code = 3 ; break;
			case "Crustal"	: step2Code = 4 ; break;
		}	
	} 

	g+="<object classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 ";
    g+=" codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0 ";
    g+=" width=686px height=230px id=schoolStepImg align=middle>";
    g+="	<param name=allowScriptAccess value=middle>";
    g+="	<param name=movie value=/common/swf/schoolStepImg.swf?stepDep1Code=" + step1Code + "&stepDep2Code=" + step2Code + ">";
    g+="	<param name=quality value=high>";
    g+="	<param name=wmode value=transparent>";
    g+="	<embed src=/common/swf/schoolStepImg.swf?stepDep1Code=" + step1Code + "&stepDep2Code=" + step2Code ;
    g+="     quality=high pluginspage=http://www.macromedia.com/go/getflashplayer ";
    g+="	 type=application/x-shockwave-flash wmode=transparent width=686px height=230px></embed>";
    g+="</object>";

	document.write(g);
}


/* ÇÃ·¯½º °úÁ¤ */
function plusStepImg() {
	var g = "";

	g+="<div class='plusStepImg'>";
	g+="	<object classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 ";
    g+="    codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0 ";
    g+="    width=686px height=500px id=plusStepImg align=middle>";
    g+="		<param name=allowScriptAccess value=middle>";
    g+="		<param name=movie value=/common/swf/plusStepImg.swf>";
    g+="		<param name=quality value=high>";
    g+="		<param name=wmode value=transparent>";
    g+="		<embed src=/common/swf/plusStepImg.swf ";
    g+="         quality=high pluginspage=http://www.macromedia.com/go/getflashplayer ";
    g+="		 type=application/x-shockwave-flash wmode=transparent width=686px height=500px></embed>";
    g+="	</object>";
	g+="</div>";

	document.write(g);
}


/* eSAC °Ë»ç¼Ò°³ */
function examInfo() {
	var g = "";

	g+="<div class='plusStepImg'>";
	g+="	<object classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 ";
    g+="    codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0 ";
    g+="    width=686px height=450px id=examInfo align=middle>";
    g+="		<param name=allowScriptAccess value=middle>";
    g+="		<param name=movie value=/common/swf/examInfo.swf>";
    g+="		<param name=quality value=high>";
    g+="		<param name=wmode value=transparent>";
    g+="		<embed src=/common/swf/examInfo.swf ";
    g+="         quality=high pluginspage=http://www.macromedia.com/go/getflashplayer ";
    g+="		 type=application/x-shockwave-flash wmode=transparent width=686px height=450px></embed>";
    g+="	</object>";
	g+="</div>";

	document.write(g);
}


/* eSAC °³¹ßÁø¼Ò°³ */
function developerInfo() {
	var g = "";

	g+="<div class='plusStepImg'>";
	g+="	<object classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 ";
    g+="    codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0 ";
    g+="    width=686px height=560px id=developerInfo align=middle>";
    g+="		<param name=allowScriptAccess value=middle>";
    g+="		<param name=movie value=/common/swf/developerInfo.swf>";
    g+="		<param name=quality value=high>";
    g+="		<param name=wmode value=transparent>";
    g+="		<embed src=/common/swf/developerInfo.swf  ";
    g+="         quality=high pluginspage=http://www.macromedia.com/go/getflashplayer ";
    g+="		 type=application/x-shockwave-flash wmode=transparent width=686px height=560px></embed>";
    g+="	</object>";
	g+="</div>";

	document.write(g);
}


/* °Ë»çÈ¯°æ È®ÀÎ */
function environmentCheckImg(checkImg) {
	var g = "";

		g+="	<object classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 ";
		g+="    codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0 ";
		g+="    width=115px height=90px id=environmentCheckImg align=middle>";
		g+="		<param name=allowScriptAccess value=middle>";
		g+="		<param name=movie value=/common/swf/check" + checkImg +".swf>";
		g+="		<param name=quality value=high>";
		g+="		<param name=wmode value=transparent>";
		g+="		<embed src=/common/swf/check" + checkImg +".swf  ";
		g+="         quality=high pluginspage=http://www.macromedia.com/go/getflashplayer ";
		g+="		 type=application/x-shockwave-flash wmode=transparent width=115px height=90px></embed>";
		g+="	</object>";

	document.write(g);
}


/* eSAC ÇÃ·¡³Ê */
function esacPlannerToday() {
	var g = "";

	g+="<div class='todayDate'>";
	g+="	<object classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 ";
    g+="    codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0 ";
    g+="    width=173px height=86px id=developerInfo align=middle>";
    g+="		<param name=allowScriptAccess value=middle>";
    g+="		<param name=movie value=/common/swf/myPlannerToday.swf>";
    g+="		<param name=quality value=high>";
    g+="		<param name=wmode value=transparent>";
    g+="		<embed src=/common/swf/myPlannerToday.swf  ";
    g+="         quality=high pluginspage=http://www.macromedia.com/go/getflashplayer ";
    g+="		 type=application/x-shockwave-flash wmode=transparent width=173px height=86px name=developerInfo></embed>";
    g+="	</object>";
	g+="</div>";

	document.write(g);
	window.developerInfo = document.getElementById("developerInfo");
}


/* °Ë»ç Æ÷Æ®Æú¸®¿À */
function examPortfolio() {
	var g = "";

	g+="<div class='portfolioImg'>";
	g+="	<object classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 ";
    g+="    codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0 ";
    g+="    width=465px height=418px id=examPortfolio align=middle>";
    g+="		<param name=allowScriptAccess value=middle>";
    g+="		<param name=movie value=/common/swf/examPortfolioMain.swf>";
    g+="		<param name=quality value=high>";
    g+="		<param name=wmode value=transparent>";
    g+="		<embed src=/common/swf/examPortfolioMain.swf ";
    g+="         quality=high pluginspage=http://www.macromedia.com/go/getflashplayer ";
    g+="		 type=application/x-shockwave-flash wmode=transparent width=465px height=418px></embed>";
    g+="	</object>";
	g+="</div>";

	document.write(g);
}

function examPortfolioPop() {
	var g = "";

	g+="<div class='portfolioImg'>";
	g+="	<object classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 ";
    g+="    codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0";
    g+="    width=465px height=418px id=popExamPortfolio align=middle>";
    g+="		<param name=allowScriptAccess value=middle>";
    g+="		<param name=movie value=/common/swf/examPortfolioPopup.swf>";
    g+="		<param name=quality value=high>";
    g+="		<param name=wmode value=transparent>";
    g+="		<embed src=/common/swf/examPortfolioPopup.swf ";
    g+="         quality=high pluginspage=http://www.macromedia.com/go/getflashplayer ";
    g+="		 type=application/x-shockwave-flash wmode=transparent width=465px height=418px name=popExamPortfolio></embed>";
    g+="	</object>";
	g+="</div>";

	document.write(g);
	window.popExamPortfolio = document.getElementById("popExamPortfolio");
}

// eSACÇÃ·¡³Ê, ½Å±ÔÄíÆù °¡ÀÔ ÇÃ·¡½Ã(mainCoupon.swf)¿¡¼­ eSACÇÃ·¡³Ê Å¬¸¯½Ã ÀÌº¥Æ® ¸Þ¼Òµå
function PlannerClick()
{
    popWin('/member/login/popLogin.aspx','_login',460,420);
}


