<!--#include file="../Lib/Config.asp"-->
<!--#include file="../Lib/DBConn.asp"-->
<!--#include file="../Lib/DBLib.asp"-->
<!--#include file="../Lib/Func.asp"-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><%=Surveytitle%></title>
<link rel="stylesheet" type="text/css" href="css/style.css" />
<script src='http://code.jquery.com/jquery-1.5.min.js'></script>
<script src="include/jquery.alphanumeric.pack.js"></script>
<script src="include/survey.js"></script>
</head>
<script language="javascript">
	$(document).ready(function(){
		$("#frmSurvey").submit();
	});
</script>
<body onload="switchScreen();">
<script type="text/javascript">
//<![CDATA[
function switchScreen() {
    document.getElementById("divLoading").style.display = "none";
}
//]]>
</script>

<div id="divLoading" style="position:absolute; top:35%; left:0; width:100%; text-align:center; margin:0 auto;">
    <img src="./images/ajax-loader.gif" alt="Loading" /><br>Loading..
</div>
<%

If Request.Form("userId")="" And Request.Form("userPw")="" Then
	call_Url "cLogin.htm","로그인 정보가 없습니다."
	Response.End	
End IF

Dim Rs,MSG,URLS,SQL,usID,uPWD,GID,IDKey,NPAGE

Set Rs = Server.CreateObject("ADODB.RecordSet")

	usID = checkValue(Request.Form("userId"))
	uPwd = checkValue(Request.Form("userPw"))
	MSG = ""
	URLS = ""
	NPAGE = ""

	If usID="ahnpoll" AND uPwd="1234" Then
		MSG = ""
		URLS = "MAIN.asp"
	Else
		call_Url "cLogin.htm","로그인 정보가 없습니다."
		Response.End
	End IF
	Set Rs = Nothing


%>
<form name="Survey" id="frmSurvey" method="post" action="<%=URLS%>">
<input type="hidden" name="IDKEY" value="<%=IDKey%>">
<input type="hidden" name="UID" value="<%=UID%>">
<input type="hidden" name="NPAGE" value="<%=NPAGE%>">

</form>
</body>
</html>
