<cfsetting enablecfoutputonly=true>
<!---
	Name         : surveycfm
	Author       : Raymond Camden 
	Created      : September 21, 2004
	Last Updated : March 10, 2006
	History      : work w/o mapping (rkc 3/10/06)
	Purpose		 : Displays a survey
--->
<cfimport taglib="./tags/" prefix="tags">

<cfif not isDefined("url.id") or not len(url.id)>
	<cflocation url="index.cfm" addToken="false">
</cfif>
<cftry>
	<cfset survey = application.survey.getSurvey(url.id)>
	<cfcatch>
		<cflocation url="index.cfm" addToken="false">
	</cfcatch>
</cftry>

<!--- Loads header --->
<tags:layout templatename="main" title="Survey: #survey.name#">

	<tags:surveyDisplay survey="#survey#"/>
		
</tags:layout>

<cfsetting enablecfoutputonly=false>
