Problem med placering af kode
GoddagInde på siten Detsocialeindeks.dk har jeg under punktet publikationer flyttet rundt på emnet "Download materiale" og "bestil materiale on-linie". Nu virker det sidste så ikke længere.
Tror selv at det har noget at gøre med følgende kode som jeg ikke kan finde ud af at placere:
<%If mode = 2 Then 'Confirmation%>
<tr>
<td valign="top" width="570" align="left"><script language="javascript">
<!-- alert('Tusind tak for din bestilling!');
//-->
</script></td>
</tr>
<%Else%>
Dette og så kodestumpen <%End If%> tror jeg det er galt med. Hele sitens koder ser således ud som nedenstående. Er der nogen der kan hjælpe mig med at løse mysteriet således at man igen kan bestille on-linie ?
<%@ Language=VBScript %>
<!--#include file="conn_open.asp"-->
<!--#include file="ADOVBS.inc"-->
<!--#include file="IASUtil.asp"-->
<%
mode = Request("mode")
email = request.cookies("dsi")("email")
%>
<html>
<head>
<title>DSI</title>
<script language="JavaScript" src="js/print.js"></script>
<script LANGUAGE="Javascript">
<!-- Hide from old browsers
var bName2 = navigator.appName;
var bVer2 = parseInt(navigator.appVersion);
if(bName2=="Netscape"){
document.write('<link rel="stylesheet" href="css/dsi_ns.css" type="text/css">');
}
else{
document.write('<link rel="stylesheet" href="css/dsi.css" type="text/css">');
}
// Stop hiding from old browsers -->
</script>
<script
LANGUAGE="JavaScript">
<!-- HIDE FROM OTHER BROWSERS
function validate(theForm)
{
if (theForm.firstname.value == "")
{
alert("Navn required. Thank you.");
theForm.firstname.focus();
return (false);
}
if (theForm.address.value == "")
{
alert("Adresse required. Thank you.");
theForm.address.focus();
return (false);
}
if (theForm.zip.value == "")
{
alert("PostNr required. Thank you.");
theForm.zip.focus();
return (false);
}
if (theForm.city.value == "")
{
alert("By required. Thank you.");
theForm.city.focus();
return (false);
}
return (true);
}
// STOP HIDING FROM OTHER BROWSERS -->
</script>
</head>
<body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0" bgcolor="white"
background="images/bg.gif">
<table border="0" cellpadding="0" cellspacing="0" width="580">
<tr>
<td valign="top" width="10"><img height="14" src="images/1x1pix_trans.gif" width="10"
border="0"></td>
<td width="570"></td>
</tr>
<tr>
<td width="10" rowspan="8"><img height="14" src="images/1x1pix_trans.gif" width="10"
border="0"></td>
<td valign="top" width="570"><img height="10" src="images/header/nav_header_publ_1.gif"
width="220" border="0"></td>
</tr>
<tr>
<td valign="top" width="570"><table border="0" cellpadding="0" cellspacing="0"
width="100%">
<tr>
<td rowspan="3"><img height="36" src="images/header/header_publ.gif" width="254"
border="0"></td>
<td align="left"><img src="images/1x1pix_trans.gif" width="10" height="4" border="0"></td>
</tr>
<tr>
<td align="right"><a href="java script:void(printArticle());"><img
src="images/print_knap.gif" width="84" height="13" border="0"></a></td>
</tr>
<tr>
<td><img src="images/1x1pix_trans.gif" width="10" height="16" border="0"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td valign="top" width="570" align="left"><img height="15"
src="images/header/header_best_online.gif" width="202" border="0"><br>
<br>
Ved at udfylde felterne nedenfor, kan du få tilsendt trykt materiale fra Sekretariatet
for Det Sociale Indeks<br>
<br>
<b>NB:</b> Bestilles over 10 eksemplarer af Indekset ekspederes disse torsdag i ugen.<br>
<br>
<table border="0" cellpadding="0" cellspacing="0" width="570">
<tr>
<td><form action="insert_member.asp" method="get" onsubmit="return validate(this);">
</form>
</td>
<td> </td>
</tr>
<tr>
<td width="44"><input name="socialeindeks" size="4" maxlength="4" class="input35"></td>
<td width="526">stk. af Det Sociale Indeks (inkl. Pointskemaet)</td>
</tr>
<tr>
<td colspan="2"><img height="10" src="images/1x1pix_trans.gif" width="10" border="0"></td>
</tr>
<tr>
<td width="44"><input name="presentation" size="4" maxlength="4" class="input35"></td>
<td width="526">stk. af 'Vejen mod Det Sociale Indeks'</td>
</tr>
<tr>
<td colspan="2"><img height="10" src="images/1x1pix_trans.gif" width="10" border="0"></td>
</tr>
<tr>
<td width="44"><input name="dialog" size="4" maxlength="4" class="input35"></td>
<td width="526">stk. af 'Dialog til forbedring – erfaringer med Det Sociale Indeks'</td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0">
<TBODY>
<tr>
<td valign="top" colspan="2"><img height="10" src="images/1x1pix_trans.gif" width="10"
border="0"></td>
</tr>
<tr>
<td width="100" valign="top"><img height="24" src="images/header/form_virks.gif"
width="100" border="0"></td>
<td valign="top" align="left"><input name="business" size="24" class="input175"></td>
</tr>
<tr>
<td width="100" valign="top"><img height="24" src="images/header/form_titel.gif"
width="100" border="0"></td>
<td valign="top" align="left"><input name="title" size="24" class="input175"></td>
</tr>
<tr>
<td width="100" valign="top"><img height="24" src="images/header/form_navn.gif"
width="100" border="0"></td>
<td valign="top" align="left"><input name="firstname" size="24" class="input175"></td>
</tr>
<tr>
<td width="100" valign="top"><img height="24" src="images/header/form_adr.gif" width="100"
border="0"></td>
<td valign="top" align="left"><input name="address" size="24" class="input175"></td>
</tr>
<tr>
<td width="100" valign="top"><img height="24" src="images/1x1pix_trans.gif" width="10"
border="0"></td>
<td valign="top" align="left"><input name="address2" size="24" class="input175"></td>
</tr>
<tr>
<td width="100" valign="top"><img height="24" src="images/header/form_postnr.gif"
width="100" border="0"></td>
<td valign="top" align="left"><input name="zip" size="8" maxlength="4" class="input35"></td>
</tr>
<tr>
<td width="100" valign="top"><img height="24" src="images/header/form_by.gif" width="100"
border="0"></td>
<td valign="top" align="left"><input name="city" size="24" class="input175"></td>
</tr>
<tr>
<td valign="top" colspan="2"><img height="10" src="images/1x1pix_trans.gif" width="10"
border="0"></td>
</tr>
<tr>
<td width="100" valign="top"></td>
<td valign="top" align="right"><input type="image" src="images/bestil.gif" width="59"
name="f1" value="send" height="17" border="0"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td valign="top" width="570" align="left"><img height="25" src="images/greyspacer.gif"
width="100%" border="0"> </td>
</tr>
<tr>
<td valign="top" width="570" align="left"><img height="15"
src="images/header/header_dl_mat.gif" width="170" border="0"><br>
<br>
</td>
</tr>
<tr>
<td valign="top" width="570" align="left"><table border="0" cellpadding="10"
cellspacing="0" width="570">
<tr>
<td bgcolor="#ededed">For at læse pdf dokumenter skal du have <a
href="http://www.adobe.com/products/acrobat/readstep2.html" target="_new">Adobe Acrobat
Reader, som du kan hente her.</a><br>
</td>
</tr>
</table>
<p><br>
</td>
</tr>
<tr>
<td valign="top" width="570" align="left"><table border="0" cellpadding="0"
cellspacing="0" width="570">
<tr>
<td valign="top" width="20"><img height="15" src="images/pdf_ikon.gif" width="15"
border="0"></td>
<td valign="top">Det Sociale Indeks</td>
<td valign="top" align="right" width="127"><a href="pdf/det_sociale_indeks.pdf"
target="_new"><img height="17" src="images/dl_pdf.gif" width="98" border="0"></a></td>
</tr>
<tr>
<td valign="top" colspan="3"><img height="10" src="images/1x1pix_trans.gif" width="10"
border="0"></td>
</tr>
<tr>
<td valign="top" width="20"><img height="15" src="images/pdf_ikon.gif" width="15"
border="0"></td>
<td valign="top">Pointskemaet til Det Sociale Indeks<br>
(følger med hvis du bestiller materialet on-line)</td>
<td valign="top" align="right" width="127"><a href="pdf/pointskema.pdf" target="_new"><img
height="17" src="images/dl_pdf.gif" width="98" border="0"></a></td>
</tr>
<tr>
<td valign="top" colspan="3"><img height="10" src="images/1x1pix_trans.gif" width="10"
border="0"></td>
</tr>
<tr>
<td valign="top" width="20"><img src="images/excel_ikon.gif" width="16" height="15"
border="0"></td>
<td valign="top">Pointskema Excel udgave</td>
<td align="right" width="127"><a href="pdf/pointskema.xls" target="_new"><img height="17"
src="images/dl_excel.gif" width="127" border="0"></a></td>
</tr>
<tr>
<td valign="top" colspan="3"><img height="10" src="images/1x1pix_trans.gif" width="10"
border="0"></td>
</tr>
<tr>
<td valign="top" width="20"><img height="15" src="images/pdf_ikon.gif"></td>
<td valign="top">Vejen mod Det Sociale Indeks</td>
<td align="right" width="127"><a href="pdf/vejen_mod_dsi.pdf" target="_new"><img
height="17" src="images/dl_pdf.gif" width="98" border="0"></a></td>
</tr>
<tr>
<td valign="top" colspan="3"><img height="10" src="images/1x1pix_trans.gif" width="10"
border="0"></td>
</tr>
<tr>
<td valign="top" width="20"><img height="15" src="images/pdf_ikon.gif"></td>
<td valign="top">Dialog til forbedring – erfaringer med Det Sociale Indeks</td>
<td align="right" width="127"><a href="pdf/dialogtilforbedring.pdf" target="_new"><img
height="17" src="images/dl_pdf.gif" width="98" border="0"></a></td>
</tr>
</table>
</td>
</tr>
<tr>
<td valign="top" width="570" align="left"><img height="25" src="images/greyspacer.gif"
width="100%" border="0"></td>
</tr>
<%If mode = 2 Then 'Confirmation%>
<tr>
<td valign="top" width="570" align="left"><script language="javascript">
<!--
alert('Tusind tak for din bestilling!');
//-->
</script></td>
</tr>
<%Else%>
</table>
<table>
<tr>
<td valign="top" width="570" align="left"></td>
</tr>
<tr>
<td valign="top" width="570" align="left"><img height="36"
src="images/header/header_foredrag.gif" width="254" border="0"></td>
</tr>
<tr>
<td valign="top" width="570" align="left">Sekretariatet kommer gerne ud og holder oplæg
om Det Sociale Indeks. Ring og hør nærmere om mulighederne på tlf: 33 91 97 96.</td>
</tr>
</table>
<%End If%>
<table>
<tr>
<td valign="top" width="10" align="left"><img height="10" src="images/1x1pix_trans.gif"
width="10" border="0"></td>
</tr>
</table>
</body>
</html>
