if (trim(document.forms['frmTemplate'].txtBorderColor.value) != '')
{
if (isValidHexColor(trim(document.forms['frmTemplate'].txtBorderColor.value)) == false)
{
alert("Please enter a valid hexadecimal value for the border color. Use any combination of six numbers or the letters A - F. You may optionally include a # sign at the beginning of the number.");
if (trim(document.forms['frmTemplate'].txtSurveyBackgroundColor.value) != '')
{
if (isValidHexColor(trim(document.forms['frmTemplate'].txtSurveyBackgroundColor.value)) == false)
{
alert("Please enter a valid hexadecimal value for the survey background color. Use any combination of six numbers or the letters A - F. You may optionally include a # sign at the beginning of the number.");
if (trim(document.forms['frmTemplate'].txtPageBackgroundColor.value) != '')
{
if (isValidHexColor(trim(document.forms['frmTemplate'].txtPageBackgroundColor.value)) == false)
{
alert("Please enter a valid hexadecimal value for the page background color. Use any combination of six numbers or the letters A - F. You may optionally include a # sign at the beginning of the number.");
if (trim(document.forms['frmTemplate'].txtMatrixFirstColor.value) != '')
{
if (isValidHexColor(trim(document.forms['frmTemplate'].txtMatrixFirstColor.value)) == false)
{
alert("Please enter a valid hexadecimal value for the first matrix color. Use any combination of six numbers or the letters A - F. You may optionally include a # sign at the beginning of the number.");
if (trim(document.forms['frmTemplate'].txtMatrixSecondColor.value) != '')
{
if (isValidHexColor(trim(document.forms['frmTemplate'].txtMatrixSecondColor.value)) == false)
{
alert("Please enter a valid hexadecimal value for the second matrix color. Use any combination of six numbers or the letters A - F. You may optionally include a # sign at the beginning of the number.");
if (trim(document.forms['frmTemplate'].txtSurveyNameFontColor.value) != '')
{
if (isValidHexColor(trim(document.forms['frmTemplate'].txtSurveyNameFontColor.value)) == false)
{
alert("Please enter a valid hexadecimal value for the survey name font color. Use any combination of six numbers or the letters A - F. You may optionally include a # sign at the beginning of the number.");
if (trim(document.forms['frmTemplate'].txtPageTitleFontColor.value) != '')
{
if (isValidHexColor(trim(document.forms['frmTemplate'].txtPageTitleFontColor.value)) == false)
{
alert("Please enter a valid hexadecimal value for the page title font color. Use any combination of six numbers or the letters A - F. You may optionally include a # sign at the beginning of the number.");
if (trim(document.forms['frmTemplate'].txtPageNumberFontColor.value) != '')
{
if (isValidHexColor(trim(document.forms['frmTemplate'].txtPageNumberFontColor.value)) == false)
{
alert("Please enter a valid hexadecimal value for the page number font color. Use any combination of six numbers or the letters A - F. You may optionally include a # sign at the beginning of the number.");
if (trim(document.forms['frmTemplate'].txtQuestionTextFontColor.value) != '')
{
if (isValidHexColor(trim(document.forms['frmTemplate'].txtQuestionTextFontColor.value)) == false)
{
alert("Please enter a valid hexadecimal value for the question text font color. Use any combination of six numbers or the letters A - F. You may optionally include a # sign at the beginning of the number.");
if (trim(document.forms['frmTemplate'].txtQuestionSubTextFontColor.value) != '')
{
if (isValidHexColor(trim(document.forms['frmTemplate'].txtQuestionSubTextFontColor.value)) == false)
{
alert("Please enter a valid hexadecimal value for the question sub-text font color. Use any combination of six numbers or the letters A - F. You may optionally include a # sign at the beginning of the number.");
if (trim(document.forms['frmTemplate'].txtNavigationLinkFontColor.value) != '')
{
if (isValidHexColor(trim(document.forms['frmTemplate'].txtNavigationLinkFontColor.value)) == false)
{
alert("Please enter a valid hexadecimal value for the navigation link font color. Use any combination of six numbers or the letters A - F. You may optionally include a # sign at the beginning of the number.");
<option <% If strActiveYN = SUR_BOOLEAN_NEGATIVE Then Response.Write "selected" End If %> value="<%=SUR_BOOLEAN_NEGATIVE%>"><%=SUR_BOOLEAN_NEGATIVE_DISPLAY%></option>
<option <% If strActiveYN = SUR_BOOLEAN_POSITIVE Then Response.Write "selected" End If %> value="<%=SUR_BOOLEAN_POSITIVE%>"><%=SUR_BOOLEAN_POSITIVE_DISPLAY%></option>
<option <% If strAllowUseYN = SUR_BOOLEAN_NEGATIVE Then Response.Write "selected" End If %> value="<%=SUR_BOOLEAN_NEGATIVE%>"><%=SUR_BOOLEAN_NEGATIVE_DISPLAY%></option>
<option <% If strAllowUseYN = SUR_BOOLEAN_POSITIVE Then Response.Write "selected" End If %> value="<%=SUR_BOOLEAN_POSITIVE%>"><%=SUR_BOOLEAN_POSITIVE_DISPLAY%></option>
</select>
</td>
</tr>
<tr>
<td valign="top" class="NormalBold">
<label for="txtLogoPath">Logo Path:</label>
</td>
<td valign="top" class="Normal" colspan="3">
<span class="InlineHelpSpanStyle">Enter the path for the logo to display at the top of the surveys. If left blank, no logo will be displayed.</span><br>
<option <% If strLogoAlignment = SUR_LOGO_ALIGNMENT_LEFT Then Response.Write("selected") End If %> value="<%=SUR_LOGO_ALIGNMENT_LEFT%>"><%=SUR_LOGO_ALIGNMENT_LEFT%></option>
<option <% If strLogoAlignment = SUR_LOGO_ALIGNMENT_RIGHT Then Response.Write("selected") End If %> value="<%=SUR_LOGO_ALIGNMENT_RIGHT%>"><%=SUR_LOGO_ALIGNMENT_RIGHT%></option>
<option <% If strLogoAlignment = SUR_LOGO_ALIGNMENT_TOP Then Response.Write("selected") End If %> value="<%=SUR_LOGO_ALIGNMENT_TOP%>"><%=SUR_LOGO_ALIGNMENT_TOP%></option>
<option <% If strSurveyAlignment = SUR_SURVEY_ALIGNMENT_CENTER Then Response.Write("selected") End If %> value="<%=SUR_SURVEY_ALIGNMENT_CENTER%>"><%=SUR_SURVEY_ALIGNMENT_CENTER%></option>
<option <% If strSurveyAlignment = SUR_SURVEY_ALIGNMENT_LEFT Then Response.Write("selected") End If %> value="<%=SUR_SURVEY_ALIGNMENT_LEFT%>"><%=SUR_SURVEY_ALIGNMENT_LEFT%></option>
<option <% If strDisplayBorderYN = SUR_BOOLEAN_NEGATIVE Then Response.Write "selected" End If %> value="<%=SUR_BOOLEAN_NEGATIVE%>"><%=SUR_BOOLEAN_NEGATIVE_DISPLAY%></option>
<option <% If strDisplayBorderYN = SUR_BOOLEAN_POSITIVE Then Response.Write "selected" End If %> value="<%=SUR_BOOLEAN_POSITIVE%>"><%=SUR_BOOLEAN_POSITIVE_DISPLAY%></option>
</select>
</td>
</tr>
<tr>
<td valign="top" class="NormalBold">
<label for="txtProgressFirstColor">Progress First Color:</label>
</td>
<td valign="top" class="Normal">
<input value="<%=strProgressFirstColor%>" type="text" maxlength="7" name="txtProgressFirstColor" id="txtProgressFirstColor" style="width:75px"> <img onClick="javascript:displayColorPicker('frmTemplate', 'txtProgressFirstColor');" border="0" src="Resources/Images/ColorPicker.gif" alt="Click here to select a color" onMouseOver="this.style.cursor='hand'">
'This routine renders the combo values for the font weight. The value passed to this routine is selected.
Sub RenderFontWeightComboValues(strFontWeight)
%>
<option <% If strFontWeight = SUR_FONT_WEIGHT_BOLD Then Response.Write "selected" End If %> value="<%=SUR_FONT_WEIGHT_BOLD%>"><%=SUR_FONT_WEIGHT_BOLD%></option>
<option <% If strFontWeight = SUR_FONT_WEIGHT_NORMAL Then Response.Write "selected" End If %> value="<%=SUR_FONT_WEIGHT_NORMAL%>"><%=SUR_FONT_WEIGHT_NORMAL%></option>
<%
End Sub
'This routine renders the combo values for the font family. The value passed to this routine is selected.
Sub RenderFontFamilyComboValues(strFontFamily)
%>
<option <% If strFontFamily = SUR_FONT_FAMILY_ARIAL_BLACK Then Response.Write "selected" End If %> value="<%=SUR_FONT_FAMILY_ARIAL_BLACK%>"><%=SUR_FONT_FAMILY_ARIAL_BLACK%></option>
<option <% If strFontFamily = SUR_FONT_FAMILY_ARIAL Then Response.Write "selected" End If %> value="<%=SUR_FONT_FAMILY_ARIAL%>"><%=SUR_FONT_FAMILY_ARIAL%></option>
<option <% If strFontFamily = SUR_FONT_FAMILY_BROWSER_DEFAULT Then Response.Write "selected" End If %> value="<%=SUR_FONT_FAMILY_BROWSER_DEFAULT%>"><%=SUR_FONT_FAMILY_BROWSER_DEFAULT%></option>
<option <% If strFontFamily = SUR_FONT_FAMILY_COMIC_SANS_MS Then Response.Write "selected" End If %> value="<%=SUR_FONT_FAMILY_COMIC_SANS_MS%>"><%=SUR_FONT_FAMILY_COMIC_SANS_MS%></option>
<option <% If strFontFamily = SUR_FONT_FAMILY_COURIER_NEW Then Response.Write "selected" End If %> value="<%=SUR_FONT_FAMILY_COURIER_NEW%>"><%=SUR_FONT_FAMILY_COURIER_NEW%></option>
<option <% If strFontFamily = SUR_FONT_FAMILY_GEORGIA Then Response.Write "selected" End If %> value="<%=SUR_FONT_FAMILY_GEORGIA%>"><%=SUR_FONT_FAMILY_GEORGIA%></option>
<option <% If strFontFamily = SUR_FONT_FAMILY_IMPACT Then Response.Write "selected" End If %> value="<%=SUR_FONT_FAMILY_IMPACT%>"><%=SUR_FONT_FAMILY_IMPACT%></option>
<option <% If strFontFamily = SUR_FONT_FAMILY_SMALL Then Response.Write "selected" End If %> value="<%=SUR_FONT_FAMILY_SMALL%>"><%=SUR_FONT_FAMILY_SMALL%></option>
<option <% If strFontFamily = SUR_FONT_FAMILY_TIMES_NEW_ROMAN Then Response.Write "selected" End If %> value="<%=SUR_FONT_FAMILY_TIMES_NEW_ROMAN%>"><%=SUR_FONT_FAMILY_TIMES_NEW_ROMAN%></option>
<option <% If strFontFamily = SUR_FONT_FAMILY_TREBUCHET_MS Then Response.Write "selected" End If %> value="<%=SUR_FONT_FAMILY_TREBUCHET_MS%>"><%=SUR_FONT_FAMILY_TREBUCHET_MS%></option>
<option <% If strFontFamily = SUR_FONT_FAMILY_VERDANA Then Response.Write "selected" End If %> value="<%=SUR_FONT_FAMILY_VERDANA%>"><%=SUR_FONT_FAMILY_VERDANA%></option>