Hjælp - Haster !!!!!!!
<html><head>
<title>e-mail</title>
<base target="rbottom">
<script language="javascript">
function SubmitPage()
{
//-- Hvis data er korrekte
if (validate())
{
//--send formen
document.form1.txtaction.value = "submit";
document.form1.submit();
}
}
function validate()
{
FejlTekst = "";
//--kigger efter om navn er udfyldt
if (document.form1.Navn.value.length == 0){
document.form1.Navn.focus();
document.form1.Navn.select();
FejlTekst = FejlTekst + "Du skal udfylde feltet navn!\n\n";
}
//--kigger efter om adresse er udfyldt
if (document.form1.adresse.value.length == 0){
document.form1.adresse.focus();
document.form1.adresse.select();
FejlTekst = FejlTekst + "Du skal udfylde feltet adresse!\n\n";
}
//--kigger efter om Telefonnummer er udfyldt
if (document.form1.telefonnr.value.length == 0){
document.form1.telefonnr.focus();
document.form1.telefonnr.select();
FejlTekst = FejlTekst + "Du skal udfylde feltet telefonnummer!\n\n";
}
//--kigger efter om postnummer og by er udfyldt
if (document.form1.postogby.value.length == 0){
document.form1.postogby.focus();
document.form1.postogby.select();
FejlTekst = FejlTekst + "Du skal udfylde feltet postnummer og by!\n\n";
}
if (FejlTekst != ""){
alert(FejlTekst);
return false;
}
else {
return true;
}
}
function StartUp()
{
//-- sætter fokus på den første tekstboks
document.form1.FirmaNavn.focus();
}
</script>
</head>
<body topmargin="0" leftmargin="0" background="../images/bg-blaa.jpg" OnLoad="StartUp();">
<form method="POST" target="_self" name="form1" onSubmit action="--WEBBOT-SELF--">
<!--webbot bot="SaveResults" startspan S-Email-Format="TEXT/PRE"
S-Email-Address="mig@selv.dk" B-Email-Label-Fields="TRUE"
B-Email-Subject-From-Field="FALSE"
S-Email-Subject="kommentar"
S-Builtin-Fields="Date Time REMOTE_USER"
U-Confirmation-Url="min_mail_conf.htm" --><input TYPE="hidden" NAME="VTI-GROUP" VALUE="0"><!--webbot
bot="SaveResults" endspan --><table border="0" width="337" height="406" cellspacing="0" cellpadding="0">
<input type="hidden" name="txtaction" value>
<tr>
<td valign="bottom" width="309" colspan="3" height="21"></td>
</tr>
<tr>
<td valign="bottom" width="309" colspan="3" height="21"><strong><font face="Arial">Ja tak.
Jeg vil vide mere <input type="checkbox" name="Videmere" value="ON" id="videmere"></font> </strong></td>
</tr>
<tr>
<td valign="bottom" width="309" colspan="3" height="9"></td>
</tr>
<tr>
<td width="296" valign="top" height="25"><div align="left"><p><small><font face="Arial">navn:</font></small></td>
<td width="16" valign="bottom" height="25"></td>
<td width="165" valign="top" height="25"><div align="left"><p><font face="Arial"><input name="navn" size="21" id="Navn"></font></td>
</tr>
<tr>
<td width="296" valign="top" height="25"><div align="left"><p><small><font face="Arial">Att.:</font></small></td>
<td width="16" valign="bottom" height="25"></td>
<td width="165" valign="top" height="25"><div align="left"><p><font face="Arial"><input name="navn" size="21" id="Navn"></font></td>
</tr>
<tr>
<td width="296" valign="top" height="25"><div align="left"><p><small><font face="Arial">Adresse:</font></small></td>
<td width="16" valign="top" height="25"></td>
<td width="165" valign="top" height="25"><div align="left"><p><font face="Arial"><input name="adresse" size="21" id="Adresse"></font></td>
</tr>
<tr>
<td width="296" valign="top" height="25"><div align="left"><p><small><font face="Arial">Postnr.
& By:</font></small></td>
<td width="16" valign="bottom" height="25"></td>
<td width="165" valign="top" height="25"><div align="left"><p><font face="Arial"><input name="postby" size="21" id="postogby"></font></td>
</tr>
<tr>
<td width="296" valign="top" height="25"><div align="left"><p><small><font face="Arial">Telefonnr.:</font></small></td>
<td width="16" valign="top" height="25"></td>
<td width="165" valign="top" height="25"><div align="left"><p><font face="Arial"><input name="telefon" size="21" id="telefonnr"></font></td>
</tr>
<tr>
<td width="296" valign="top" height="25"><div align="left"><p><small><font face="Arial">e-Mail:</font></small></td>
<td width="16" valign="bottom" height="25"></td>
<td width="165" valign="top" height="25"><div align="left"><p><font face="Arial"><input name="email" size="21" id="emailadd"></font></td>
</tr>
<tr>
<td width="296" valign="top" height="144"><div align="left"><p><small><font face="Arial">Jeg
er interesseret i:</font></small></td>
<td width="16" valign="top" height="144"></td>
<td width="165" valign="top" height="144"><div align="left"><p><font face="Arial"><textarea cols="19" name="kommentar" rows="7"></textarea></font>
</div>
</td>
</tr>
<tr>
<td width="477" valign="top" colspan="3" height="34"><div align="left"><p><small><font face="Arial">Jeg vil gerne tilmeldes</font></small> <input type="checkbox" name="tilmelding" value="ON"><br>
<small><font face="Arial">(Husk at angive dit nr)</font></small> <small><small><small><small><input name="T1" size="11" style="HEIGHT: 22px; WIDTH: 89px"></small></small></small></small><br>
</td>
</tr>
<tr>
<td width="477" valign="top" colspan="3" height="27"><blockquote>
<blockquote>
<p><font face="Arial"><input type="button" value="Indsend" name="btnsubmit" OnClick="SubmitPage();"></font></p>
</blockquote>
</blockquote>
</td>
</tr>
</table>
</form>
</body>
</html>