If Len(Trim(strHTMLTop)) > 0 Or Len(Trim(strHTMLBottom)) > 0 Then
%>
MARGIN-LEFT: 0;
<%
ElseIf strDisplayBorderYN = SUR_BOOLEAN_POSITIVE Then
%>
MARGIN-LEFT: 10;
<%
Else
%>
MARGIN-LEFT: 3;
<%
End If
%>
MARGIN-RIGHT: 0;
MARGIN-BOTTOM: 0;
<%
'If not top HTML was provided, leave a 15-pixel margin at the top; otherwise, flush the survey with the top,
'and let the top HTML establish the look and feel.
If Len(Trim(strHTMLTop)) = 0 Then
%>
MARGIN-TOP: 15;
<%
Else
%>
MARGIN-TOP: 0;
<%
End If
%>
}
.Normal
{
COLOR: <% If Len(rsTemplate("question_text_font_color")) > 0 Then Response.Write rsTemplate("question_text_font_color") Else Response.Write SUR_DEFAULT_FONT_COLOR End If %>;
FONT-SIZE: <% If Len(rsTemplate("question_text_font_size")) > 0 Then Response.Write rsTemplate("question_text_font_size") Else Response.Write "12" End If %>px;
COLOR: <% If Len(rsTemplate("survey_name_font_color")) > 0 Then Response.Write rsTemplate("survey_name_font_color") Else Response.Write SUR_DEFAULT_FONT_COLOR End If %>;
FONT-SIZE: <% If Len(rsTemplate("survey_name_font_size")) > 0 Then Response.Write rsTemplate("survey_name_font_size") Else Response.Write "18" End If %>px;
}
.PageNumberFontStyle
{
COLOR: <% If Len(rsTemplate("page_number_font_color")) > 0 Then Response.Write rsTemplate("page_number_font_color") Else Response.Write SUR_DEFAULT_FONT_COLOR End If %>;
FONT-SIZE: <% If Len(rsTemplate("page_number_font_size")) > 0 Then Response.Write rsTemplate("page_number_font_size") Else Response.Write "16" End If %>px;
}
.InlineHelpSpanStyle
{
COLOR: <% If Len(rsTemplate("question_subtext_font_color")) > 0 Then Response.Write rsTemplate("question_subtext_font_color") Else Response.Write SUR_DEFAULT_FONT_COLOR End If %>;
FONT-SIZE: <% If Len(rsTemplate("question_subtext_font_size")) > 0 Then Response.Write rsTemplate("question_subtext_font_size") Else Response.Write "10" End If %>px;
COLOR: <% If Len(rsTemplate("page_title_font_color")) > 0 Then Response.Write rsTemplate("page_title_font_color") Else Response.Write SUR_DEFAULT_FONT_COLOR End If %>;
FONT-SIZE: <% If Len(rsTemplate("page_title_font_size")) > 0 Then Response.Write rsTemplate("page_title_font_size") Else Response.Write "16" End If %>px;
COLOR: <% If Len(rsTemplate("page_title_font_color")) > 0 Then Response.Write rsTemplate("page_title_font_color") Else Response.Write SUR_DEFAULT_FONT_COLOR End If %>;
FONT-SIZE: <% If Len(rsTemplate("page_title_font_size")) > 0 Then Response.Write rsTemplate("page_title_font_size") Else Response.Write "16" End If %>px;
COLOR: <% If Len(rsTemplate("navigation_link_font_color")) > 0 Then Response.Write rsTemplate("navigation_link_font_color") Else Response.Write SUR_DEFAULT_FONT_COLOR End If %>;
FONT-SIZE: <% If Len(rsTemplate("navigation_link_font_size")) > 0 Then Response.Write rsTemplate("navigation_link_font_size") Else Response.Write "14" End If %>px;
<table border="0" cellspacing="0" cellpadding="5" width="760" align="<% If strSurveyAlignment = SUR_SURVEY_ALIGNMENT_CENTER Then Response.Write "center" End If %>">
<%
'Optionally display a logo at the top of the survey
If IsNull(strLogoPath) Or Len(strLogoPath) = 0 Then
%>
<tr>
<td height="44" valign="bottom">
<% If strDisplayBorderYN = SUR_BOOLEAN_NEGATIVE Then Response.Write " " End If %><span class="H1HeadingStyle"><a name="skipnav" tabindex="1"><%=strTitle%></a></span>
</td>
</tr>
<%
Else
'Whether the image alignment is left or right determines how the image and title are rendered
If strLogoAlignment = SUR_LOGO_ALIGNMENT_LEFT Then
<table border="0" style="background-color:<%=strBorderColor%>" cellspacing="0" cellpadding="<%=lngBorderWidth%>" width="760" align="<% If strSurveyAlignment = SUR_SURVEY_ALIGNMENT_CENTER Then Response.Write "center" End If %>"><tr><td>
<table border="0" style="background-color:<%=strSurveyBackgroundColor%>" cellspacing="0" cellpadding="0" width="760" align="<% If strSurveyAlignment = SUR_SURVEY_ALIGNMENT_CENTER Then Response.Write "center" End If %>"><tr><td>
<input type="hidden" value="<% If flgUpdatingSurvey = True Then Response.Write("True") Else Response.Write("False") End If %>" name="hdnUpdatingSurvey">
<%
'Add a value to SESSION indicating the survey and page number the user is about to take. On the "action"
'page for this survey, check this value again to make sure that the same page is not submitted twice.