<!--#include file="Lib/Config.asp"-->
<!--#include file="Lib/Func.asp"-->
<!--#include file="Lib/FileLib.asp"-->
<!--#include file="Lib/DBLib.asp"-->
<!--#include file="Lib/DBConn.asp"-->
<!--#include file="Lib/Header.asp"-->

<%
Dim HTMLSCRIPT
Dim JSCRIPT
Dim CODES,QUESTION
Dim ATT
Dim VARS,VAR
Dim PAGE,NPAGE
Dim IDKEY,RESTYPE,VC_ID
Dim SKINSTR,PARTSTR
Dim DELAYTIMES
Dim ST
Dim SPSS

If Request.Cookies("TEL")="" Then
	Call getTel_Number()	'전화번호 호출
End If

VARS = ""

PARTSTR = ""
ST = ""

If PARTSTR ="　" Then PARTSTR =""
If ST ="　" Then ST =""

HTMLSCRIPT = ""

DELAYTIMES=0

PAGE=""
NPAGE=""

SPSS=""

'VAR = Left(VAR,Len(VAR)-1)
%>
<script type="text/javascript" language="javascript">
<!--
<% Server.Execute("Lib/Prev.asp") %>

<% If SurveyStatus=0 Then %>
function prev()
{
	history.go(-2);
}
<% End If %>
function next()
{
<%
	Response.Write JSCRIPT
%>
	var obj;

	document.Survey.submit();
}

function fadeCk()
{
	$(".btnC").hide();
	$(".btnC").delay(<%=DELAYTIMES%>).fadeIn(400);
}

$(document).ready(function(){

	tcount=<%=DELAYTIMES/1000%>;
	fadeCk();
	fc();

           $("#prev").click(function(){
                     prev();
           });

           $("#next").click(function(){
                     next();
           });
});



function NewWindow(mypage, myname, w, h, scroll) {
	var winl = window.screen.availWidth;
	var wint = window.screen.availHeigh;
	winprops = 'height='+h+',width='+w+',top=0,left=0,scrollbars='+scroll+',menubar=0,toolbar=1,location=1,resizable,status=1'
	win = window.open(mypage, myname, winprops)
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function process(){
	var ret;
	
	NewWindow("Dial.asp","Default",1024,768,1);
}

//-->
</script>
<div style="width:100%;">
<form name="Survey" method="post" action="Email.asp">
<!--#include file="Lib/Variable.asp"-->
<!--#include file="Lib/CATI_INFO.asp"-->
	<% 
	SKINSTR = LoadSkin("./SKIN/" & SKIN &"/Skin.asp")
	SKINSTR = Replace(SKINSTR,"##SURVEYTITLE##",SURVEYTITLE)
	SKINSTR = Replace(SKINSTR,"##CLIENTIMG##",CLIENTIMAGE)
	SKINSTR = Replace(SKINSTR,"##PARTSTR##",PARTSTR)
	If PARTSTR<>"" Then
	SKINSTR = Replace(SKINSTR,"<!--","")
	SKINSTR = Replace(SKINSTR,"//-->","")
	End if
	Response.Write SKINSTR
	%>
	<div class="surveyBox">

		<div id="stArea" style="text-align:center;margin-bottom:5px;">
		<table id="STBody" style="margin:0 auto; width:960px;">
		<tr>
			<td width="100%" style="text-align:left;font:14px/1.5 'Malgun Gothic',sans-serif;font-weight:bold;">
			<%=ST%>
			</td>
		</tr>
		</table>	
<% if ST<>"" Then %>
		<script language="javascript">
		$(document).ready(function(){		
			roundTable("STBody");
		});
		</script>
<% End if %>
		</div>

		<div class="indivs">
		<p style="text-align:center;font-size:24px;">
			<table style="width:100%">
			<tr>
				<td style='padding:20px 20px 20px 20px;font-size:18px;'><b><%=SURVEYTITLE%><br><br>
					<%=CATI_TEXT%>
				</td>
			</tr>
			<tr>
				<td style='padding:20px 20px 20px 20px;text-align:center'>
<!--
						<input type="button" value=" 이메일발송 " style="height:70px;font-size:20px;width:200px;height:50px;font-size:20px" onclick="document.Survey.submit();">
//-->
						<input type="button" value=" 설문조사응답 " style="height:70px;font-size:20px;width:200px;height:50px;font-size:20px" onclick="location.href='Index.asp?CATI_ID=<%=Request.Cookies("MemberCode")%>';">

						<input type="button" value=" 조사거절 " style="height:70px;font-size:20px;width:200px;height:50px;font-size:20px" onclick="location.href='DINY.asp'">
				</td>
			</tr>
			</table>
		</p>
		</div>
	</div>
	<div id="timerLabel"></div>
</form>
</div>
</body>
</html>