<!-- #include virtual="/e4uCMSboxControl/inc/con_cyber.asp" -->
<!-- #include virtual = "/e4uCMSboxControl/inc/function.asp" -->

<!-- #include file="PubHeader.asp" -->
<%
'course="tcanwp"
'step=2
'lev=0
'sec=2

dim PartNum1, PartNum2, PartNum3, PartNum4, PartNum5, PartNum6, PartNum7, PartNum8, PartNum9
DIM muncnt

idir="http://gva.ybmsisa.com/"&course&"/step"&step&"/checkup1/"
adir="http://gva.ybmsisa.com/"&course&"/step"&step&"/checkup1"



%>
<html>
<head>
<title>ETS TOEIC Test ±è´ë±Õ Àü·« Æ¯°­</title>
<link href="css/style.css" rel="stylesheet" type="text/css">
<script src="/e4uCMSboxControl/inc/ieExternal.js"></script>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
	window.open(theURL,winName,features);
}

function play_sound(file_path) { 
	if (file_path == "" || file_path == null ) {
	} else {
		file_path = "<%=adir%>/" + file_path;

		if ((navigator.userAgent.indexOf("IE") > -1) && (navigator.platform == "Win32")) {
			document.SPlayer.Filename = file_path; 
		} else {
			document.SPlayer.SetFileName(file_path);
			document.SPlayer.play();
		}
	}
}

function SetSound(file_path) { 
	if (file_path == "" || file_path == null ) {
	} else {
		file_path = "<%=adir%>/" + file_path;

		if ((navigator.userAgent.indexOf("IE") > -1) && (navigator.platform == "Win32")) {
			document.Player.Filename = file_path; 
		} else {
			document.Player.SetFileName(file_path);
		}
	}
}

//-->
</script>
<script language="JavaScript" type="text/JavaScript">
<!--
function processKey() { 
	if( (event.ctrlKey == true && (event.keyCode == 78 || event.keyCode == 82)) || (event.keyCode >= 112 && event.keyCode <= 123) || event.keyCode == 8) { 
		event.keyCode = 0; 
		event.cancelBubble = true; 
		event.returnValue = false; 
	} 
} 
document.onkeydown = processKey;
//-->
</script>
</head>
<body <%
' È¸»ç ¾ÆÀÌÇÇ¿¡¼­ Á¢±Ù ÇßÀ» °æ¿ì´Â ¸¶¿ì½º ¿À¸¥ÂÊ ¹öÆ° »ç¿ë °¡´É ÇÏµµ·Ï Ã³¸®
If Left(Request.ServerVariables("REMOTE_ADDR"),11) <> "221.142.252" Then
%>
bgproperties=fixed oncontextmenu='return false' ondragstart='return false' onselectstart='return false'
<%
End If
%> bgcolor="#ffffff" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">



<div align="center" style="z-index:2;">
<table width="412" border="0" cellpadding="3" cellspacing="0">
<%
'°ü·ÃµÈ ¹®Á¦ ÃßÃâ
	Sql = "select idx, select_example, select_content from lecture_checkup1 where intro_idx in (select idx from lecture_intro where course = "&fncdbvalue(course)&" and lev = "&fncdbvalue(lev)&" and step = "&fncdbvalue(step)&" and sec = "&fncdbvalue(sec)&") order by number"
	Set pre = cybercon.execute(Sql)

	If pre.BOF And pre.EOF Then
	response.write "¹®Á¦°¡ ÀÔ·ÂµÇÁö ¾Ê¾Ò½À´Ï´Ù."
	Else

	a = 0
	Do Until pre.EOF
		Set mun = server.createobject("ADODB.Recordset")
		
		If pre("select_example") = 1 Then  '°´°ü½Ä ¹®Á¦ °¡Á®¿À±â
			sql = "select * from lecture_chk1_ga where idx = "& fncdbvalue(pre("idx")) &" order by part, num"
			mun.open sql, cybercon, 1
			part = mun("part")
			a = a + 1
			Select Case part
				case 1
					PART1 
				case 2
					PART2 
				case 3
					PART3 
				case 4
					PART4 
				case 5
					PART5 
				case 6
					PART6 
				case 7
					PART7 
			End Select
		End If

		mun.close
		Set mun = Nothing
		pre.movenext

	Loop

	End IF

	pre.close
	Set pre = Nothing
	cybercon.close
	Set cybercon = Nothing
%>
	<tr>
		<td align="center" bgcolor="#CCCCCC"><table width="100%" border="0" cellpadding="8" cellspacing="0">
				<tr>
					<td width="80%" bgcolor="#FFFFFF"><font color="#FF3399">¹®Á¦¸¦ Ç®¾îº¸¼ÌÀ¸¸é, °­ÀÇ¸¦ ´Ù½ÃÀç»ýÇÏ¿© ¼ö¾÷À» °è¼Ó µéÀ¸¼¼¿ä.µ¿¿µ»ó¾Æ·¡ Àç»ý¹öÆ°À»´©¸£½Ã°Å³ª ¿À¸¥ÂÊ ¹öÆ°À»´©¸£½Ã¸é ¼ö¾÷ÀÌ ´Ù½Ã ½ÃÀÛµË´Ï´Ù.</font></td>
					<td width="20%" bgcolor="#FFFFFF" class="txt_05"><img src="images/sound05.gif" width="60" height="36" onclick="parent.playIt()" style="cursor:hand"></td>
				</tr>
			</table>
		</td>
	</tr>
</table>
</div>
</body>
</html>

<%
SUB OXTableLayer(isCorrect, leftpx)
'leftpx=400
%>
<div id="Layer1" style="position:absolute;width:30px; height:20px; z-index:1;<%if leftpx>0 then%>left:<%=leftpx%><%end if%> "> 
	<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
		<tr> 
			<td align="center" valign="middle"><img src="images/<%if isCorrect=0 then%>a_o.gif<%else%>a_x.gif<%end if%>" width="30" height="20"></td>
		</tr>
	</table>
</div>
<%
END SUB

SUB MakeAudio(strID, width, height, AutoStart, FileName)
%>
<comment id="ieEx<%=strID%>"><!--object id="<%=strID%>" classid="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95" standby="Loading Windows Media Player components..."
	type="application/x-oleobject" align="top" width="<%=width%>" height="<%=height%>">
<param name="FileName" id="FileName" value="<%=FileName%>">
<param name="transparentAtStart" value="True">
<param name="transparentAtStop" value="False">
<param name="AnimationAtStart" value="False">
<param name="ShowControls" value="True">
<param name="ShowStatusBar" value="False">
<param name="AutoRewind" value="True">
<param name="AutoStart" value="<%=AutoStart%>">
<param name="InvokeURLs" value="true">
<param name="VideoBorderWidth" value="0">
<param name="SendOpenStateChangeEvents" value="-1">
<param name="SendWarningEvents" value="-1">
<param name="SendErrorEvents" value="-1">
<param name="SendKeyboardEvents" value="1">
<param name="SendMouseClickEvents" value="True">
<param name="SendMouseMoveEvents" value="0">
<param name="SendPlayStateChangeEvents" value="1">
<param name="EnableContextMenu" value="True">
<param name="CursorType" value="0">
<param name="ClickToPlay" value="true">
<param name="AllowScan" value="-1">
	<param name="Volume" value="0">
</object--></comment><script> ieExternal(ieEx<%=strID%>); </script>
<%
END SUB

SUB AnswerArea(answer)
%>
	<tr>
		<td bgcolor="#FFF7FF"><img src="images/ico05.gif" width="46" height="20" align="absmiddle"> <strong><%=answer%></strong></td>
	</tr><%
END SUB

SUB PartHeader(partnum)
Select Case part
	case 1 : strPART = "I" : case 2 : strPART = "II" : case 3 : strPART = "III" : case 4 : strPART = "IV"
	case 5 : strPART = "V" : case 6 : strPART = "VI" : case 7 : strPART = "VII"
End Select
%>
<!-- Header -->
	<tr>
		<td>
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
				<tr>
					<td width="100%" height="26"><img src="images/li_01.gif" align="absmiddle" hspace="4"><font class="extd" style="size:10pt;"><b>Part <%=strPART%></b></font></td>
				</tr>
			</table>
		</td>
	</tr>
<!-- Header --><%
END SUB


SUB PART1 %>
<!----- Part I -----><%
If partnum1 <> 99 Then
	muncnt=0
	CALL PartHeader(1)
	partnum1 = 99
	End If
%>
	<tr>
		<td class="btd">
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
				<tr valign="top"><!-- À½¼º µè±â/ÀÌ¹ÌÁöÆÄÀÏ -->
					<td align="center" width="20" class="btd"><%CALL OXTableLayer(strcomp(request.form("ans"&trim(mun("num"))), mun("answer"), 1), 0)%><%=trim(mun("num"))%>.</td>
					<td align="center" width="210" class="btd"><img src="<%=idir&trim(mun("image"))%>" width="200" height="150"></td>
					<td width="125" class="btd" valign="top"><br>
						<input type="radio" value="a" name="ans<%=mun("num")%>"> (A) <%=trim(mun("exam1"))%><br>
						<input type="radio" value="b" name="ans<%=mun("num")%>"> (B) <%=trim(mun("exam2"))%><br>
						<input type="radio" value="c" name="ans<%=mun("num")%>"> (C) <%=trim(mun("exam3"))%><br>
						<input type="radio" value="d" name="ans<%=mun("num")%>"> (D) <%=trim(mun("exam4"))%>
					</td>
					<td align="center" width="75"><%CALL MakeAudio("Player"&trim(mun("num")), 75, 45, "False", adir&"/"&trim(mun("sound")))%></td>
				</tr>
			</table>
		</td>
	</tr><%CALL AnswerArea(mun("answer"))%>
	<tr>
		<td class="tbol" style="padding:5 5 5 5 ">&nbsp;</td>
	</tr>
<!-----  Part I -----><%
END SUB


SUB PART2%>
<!----- ¹®Á¦ II START -----><%
If partnum2 <> 99 Then
	muncnt=0
	CALL PartHeader(2)
	partnum2 = 99
	End If
%>
	<tr>
		<td class="btd">
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
				<tr valign="top">
					<td width="25" align="left" class="btd"><%CALL OXTableLayer(strcomp(request.form("ans"&trim(mun("num"))), mun("answer"), 1), 0)%><%=trim(mun("num"))%>.</td>
					<td width="330" class="btd">
						<input type="radio" value="a" name="ans<%=mun("num")%>"> (A) <%=trim(mun("exam1"))%><br>
						<input type="radio" value="b" name="ans<%=mun("num")%>"> (B) <%=trim(mun("exam2"))%><br>
						<input type="radio" value="c" name="ans<%=mun("num")%>"> (C) <%=trim(mun("exam3"))%>
					</td>
					<td align="center" width="75" class="btd2"><%CALL MakeAudio("Player"&trim(mun("num")), 75, 45, "False", adir&"/"&trim(mun("sound")))%></td>
				</tr>
			</table>
		</td>
	</tr><%CALL AnswerArea(mun("answer"))%>
	<tr>
		<td class="tbol" style="padding:5 5 5 5 ">&nbsp;</td>
	</tr>
<!----- ¹®Á¦ II -----><%
END SUB

SUB PART3
if partnum3 <> 99 then
	muncnt=0
	CALL PartHeader(3)
	partnum3 = 99
	End If

	Sql = "select con_header, sound, start_num, relation_num from lecture_chk1_ji where idx in (select idx from lecture_intro where course = "&fncdbvalue(course)&" and lev = "&fncdbvalue(lev)&" and step = "&fncdbvalue(step)&" and sec = "&fncdbvalue(sec)&") and start_num = "& fncdbvalue(mun("num"))
	Set chk1_ji = cybercon.execute(Sql)	

	If Not(chk1_ji.eof) Then
%>
	<tr>
		<td><%CALL MakeAudio("Player"&trim(mun("num")), 75, 45, "False", adir&"/"&trim(chk1_ji("sound")))%></td>
	</tr><%
	End if
	chk1_ji.close
	SET chk1_ji = nothing
%><!----- ¹®Á¦ Part III start ----->
	<tr>
		<td class="btd"><%CALL OXTableLayer(strcomp(request.form("ans"&trim(mun("num"))), mun("answer"), 1), 0)%><%=mun("num")%>. <%=trim(mun("content"))%></td>
	</tr>
	<tr>
		<td class="btd">
				<input type="radio" value="a" name="ans<%=mun("num")%>"> (A) <%=trim(mun("exam1"))%><br>
				<input type="radio" value="b" name="ans<%=mun("num")%>"> (B) <%=trim(mun("exam2"))%><br>
				<input type="radio" value="c" name="ans<%=mun("num")%>"> (C) <%=trim(mun("exam3"))%><br>
				<%if trim(mun("exam4"))<>"" then%>
					<input type="radio" value="d" name="ans<%=mun("num")%>"> (D) <%response.write trim(mun("exam4"))
				end if%>
		</td>
	</tr><%CALL AnswerArea(mun("answer"))%>
	<tr>
		<td class="tbol" style="padding:5 5 5 5 ">&nbsp;</td>
	</tr>
<!----- ¹®Á¦ Part III end -----><%
END SUB

SUB PART4
if partnum4 <> 99 then
	muncnt=0
	CALL PartHeader(4)
	partnum4 = 99
	End If

	Sql = "select con_header, sound, start_num, relation_num from lecture_chk1_ji where idx in (select idx from lecture_intro where course = "&fncdbvalue(course)&" and lev = "&fncdbvalue(lev)&" and step = "&fncdbvalue(step)&" and sec = "&fncdbvalue(sec)&") and start_num = "& fncdbvalue(mun("num"))
	Set chk1_ji = cybercon.execute(Sql)	

	If Not(chk1_ji.eof) Then
%>
	<tr>
		<td><%CALL MakeAudio("Player"&trim(mun("num")), 75, 45, "False", adir&"/"&trim(chk1_ji("sound")))%></td>
	</tr><%
	End if
	chk1_ji.close
	SET chk1_ji = nothing
%><!----- ¹®Á¦ Part IV Start ----->
	<tr>
		<td class="btd"><%CALL OXTableLayer(strcomp(request.form("ans"&trim(mun("num"))), mun("answer"), 1), 0)%><%=mun("num")%>. <%=trim(mun("content"))%></td>
	</tr>
	<tr>
		<td class="btd">
			<input type="radio" value="a" name="ans<%=mun("num")%>"> (A) <%=trim(mun("exam1"))%><br>
			<input type="radio" value="b" name="ans<%=mun("num")%>"> (B) <%=trim(mun("exam2"))%><br>
			<input type="radio" value="c" name="ans<%=mun("num")%>"> (C) <%=trim(mun("exam3"))%><br>
			<input type="radio" value="d" name="ans<%=mun("num")%>"> (D) <%=trim(mun("exam4"))%>
		</td>
	</tr><%CALL AnswerArea(mun("answer"))%>
	<tr>
		<td class="tbol" style="padding:5 5 5 5 ">&nbsp;</td>
	</tr>
<!----- ¹®Á¦ Part IV END -----><%
END SUB

SUB PART5
If partnum5 <> 99 Then
	muncnt=0
	CALL PartHeader(5)
	partnum5 = 99
	End If%>
	<!----- ¹®Á¦ Part V START ----->
	<tr>
		<td class="btd"><%CALL OXTableLayer(strcomp(request.form("ans"&trim(mun("num"))), mun("answer"), 1), 0)%><%=mun("num")%>. <%=trim(mun("content"))%></td>
	</tr>
	<tr>
		<td class="btd">
			<input type="radio" value="a" name="ans<%=mun("num")%>"> (A) <%=trim(mun("exam1"))%><br>
			<input type="radio" value="b" name="ans<%=mun("num")%>"> (B) <%=trim(mun("exam2"))%><br>
			<input type="radio" value="c" name="ans<%=mun("num")%>"> (C) <%=trim(mun("exam3"))%><br>
			<input type="radio" value="d" name="ans<%=mun("num")%>"> (D) <%=trim(mun("exam4"))%>
		</td>
	</tr><%CALL AnswerArea(mun("answer"))%>
	<tr>
		<td class="tbol" style="padding:5 5 5 5 ">&nbsp;</td>
	</tr>
<!----- ¹®Á¦ Part V End -----><%
END SUB

SUB PART6
if partnum6 <> 99 then
	muncnt=0
	CALL PartHeader(6)
	partnum6 = 99
	End If

	Sql = "select con_header, start_num, relation_num from lecture_chk1_ji where idx in (select idx from lecture_intro where course = "&fncdbvalue(course)&" and lev = "&fncdbvalue(lev)&" and step = "&fncdbvalue(step)&" and sec = "&fncdbvalue(sec)&") and start_num = "& fncdbvalue(mun("num"))
	Set chk1_ji = cybercon.execute(Sql)	

	If Not(chk1_ji.eof) Then
%>
	<tr>
		<td valign="middle" class="btd" style="padding: 0 0 0 0;"><%=replace(chk1_ji("con_header"),chr(10)&chr(13),"<br>")%></td>
	</tr><%
	End if
	chk1_ji.close
	SET chk1_ji = nothing

	arrtmp = split(trim(mun("explain")), "//")
	Qspace = arrtmp(3)%>
	<!----- ¹®Á¦ Part VI START ----->
	<tr valign="top">
		<td class="btd"><%=trim(mun("content"))%></td>
	</tr>
	<tr valign="top">
		<td style="padding:0 0 0 <%=Qspace%>">
			<table border="0" cellspacing="0" cellpadding="0">
				<tr valign="top">
					<td align="left" class="btd"><%CALL OXTableLayer(strcomp(request.form("ans"&trim(mun("num"))), mun("answer"), 1), 0)%><%=mun("num")%>.</td>
					<td class="btd">
						<input type="radio" value="a" name="ans<%=mun("num")%>"> (A) <%=trim(mun("exam1"))%><br>
						<input type="radio" value="b" name="ans<%=mun("num")%>"> (B) <%=trim(mun("exam2"))%><br>
						<input type="radio" value="c" name="ans<%=mun("num")%>"> (C) <%=trim(mun("exam3"))%><br>
						<input type="radio" value="d" name="ans<%=mun("num")%>"> (D) <%=trim(mun("exam4"))%>
					</td>
				</tr>
			</table>
		</td>
	</tr><%CALL AnswerArea(mun("answer"))%>
<!----- ¹®Á¦ Part VI END -----><%
END SUB

SUB PART7
if partnum7 <> 99 then
	muncnt=0
	CALL PartHeader(7)
	partnum7 = 99
	End If
%>
<!-- ÀÌ¹ÌÁö/Áö¹® ½ÃÀÛ -->
<%
	Sql = "select con_header, content, image, start_num, relation_num from lecture_chk1_ji where idx in (select idx from lecture_intro where course = "&fncdbvalue(course)&" and lev = "&fncdbvalue(lev)&" and step = "&fncdbvalue(step)&" and sec = "&fncdbvalue(sec)&") and start_num = "& fncdbvalue(mun("num"))
	Set chk1_ji = cybercon.execute(Sql)	

	If Not(chk1_ji.eof) Then
%>
	<tr valign="top">
		<td class="btd"><%=replace(chk1_ji("con_header"),chr(10)&chr(13),"<br>")%></td>
	</tr><%
		image = right(trim(chk1_ji("image")), 3)
		if image = "gif" or image = "jpg" then%>
	<tr valign="top">
		<td align="center" style="padding: 10 10 10 10"><img src="<%=idir&trim(chk1_ji("image"))%>"></td>
	</tr><%
		end if

		if Trim(chk1_ji("content")) <> "" Then%>
	<tr valign="top">
		<td class="btd" align="center" style="padding: 10 10 10 10"><%=replace(chk1_ji("content"), chr(13),"<br>")%></td>
	</tr><%
		End If
	End If
	chk1_ji.close
	SET chk1_ji = nothing
%>
<!-- ÀÌ¹ÌÁö/Áö¹® ³¡ -->
	<tr>
		<td class="btd">
			<%CALL OXTableLayer(strcomp(request.form("ans"&trim(mun("num"))), mun("answer"), 1), 0)%><%=mun("num")%>. <%=trim(mun("content"))%><br>
			<input type="radio" value="a" name="ans<%=mun("num")%>"> (A) <%=trim(mun("exam1"))%><br>
			<input type="radio" value="b" name="ans<%=mun("num")%>"> (B) <%=trim(mun("exam2"))%><br>
			<input type="radio" value="c" name="ans<%=mun("num")%>"> (C) <%=trim(mun("exam3"))%><br>
			<input type="radio" value="d" name="ans<%=mun("num")%>"> (D) <%=trim(mun("exam4"))%>
		</td>
	</tr><%CALL AnswerArea(mun("answer"))%>
	<tr>
		<td class="tbol" style="padding:5 5 5 5 ">&nbsp;</td>
	</tr>
<!----- ¹®Á¦ Part VII(Single Passage) END -----><%
END SUB
%>