<!--#include file="Lib/Config.asp"-->
<!--#include file="Lib/Func.asp"-->
<!--#include file="Lib/FileLib.asp"-->
<!--#include file="Lib/DBConn.asp"-->
<!--#include file="Lib/Header.asp"-->
[[!!TEMPLATE!!]]
<%
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

VARS = ""

PARTSTR = "[[!!PART!!]]"
ST = "[[!!ST!!]]"

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

HTMLSCRIPT = "[[!!HTMLSCRIPT!!]]"

DELAYTIMES=[[!!DELAYTIME!!]]

PAGE="[[!!VAR!!]]"
NPAGE="[[!!NVAR!!]]"

SPSS="[[!!SPSS!!]]"

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

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(){
                     new_prev();
           });

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


//-->
</script>
<% 
	SKINSTR = LoadSkin("./SKIN/" & SKIN &"/Skin.asp")
	SKINSTR = Replace(SKINSTR,"##SURVEYTITLE##",SURVEYTITLE)
	SKINSTR = Replace(SKINSTR,"##CLIENTIMG##",CLIENTIMAGE)
	SKINSTR = Replace(SKINSTR,"##PROGRESS_COLOR##",PROGRESS_COLOR)
	SKINSTR = Replace(SKINSTR,"##PERCENT##",FORMATNUMBER(CDbl((CInt(Request.Form("PVALUE"))+1)/TOTALCOUNT)*100,0))
	SKINSTR = Replace(SKINSTR,"##PARTSTR##",PARTSTR)
	If PARTSTR<>"" Then
	SKINSTR = Replace(SKINSTR,"<!--","")
	SKINSTR = Replace(SKINSTR,"//-->","")
	End if
	Response.Write SKINSTR
%>
<div class="container">
<form name="Survey" onsubmit="return false;" method="post" action="Survey.asp">
<!--#include file="Lib/Variable.asp"-->
<!--#include file="Lib/CATI_INFO.asp"-->

	<div class="row">
		<div class="col-md-12 col-xs-12">
			<div class="panel panel-default">
				<% If Trim(ST)<>"" Then %>
				<div class="panel-heading"><%=ST%></div>
				<% End If%>
				<div class="panel-body">
					<h4><%=HTMLSCRIPT%></h4>
				</div>
			</div>
		</div>			
	</div>

	<div class="row">
		<div class="col-md-12 col-xs-12 text-center">
		<div id="timerLabel"></div>
		<!--#include file="SKIN/BOOT/Bottom.asp"-->
		</div>
		<div class="col-md-12 col-xs-12 text-center">			
			<small><%=SurveyCpRight%></small>
		<div>
	</div>
</form>
</div>
</body>
</html>