<% Public Function SendMail(strEmailAddress, strEmailBody) Set objCDOMail = Server.CreateObject("CDONTS.NewMail") With objCDOMail 'Who the e-mail is from .From = strEmailAddress & " <" & strEmailAddress & ">" 'Who the e-mail is sent to .To = "enquires@three-l.net" 'To = "abh@fuj.co.uk" 'The subject of the e-mail .Subject = "Query from website guest" 'The main body of the e-amil .Body = strEmailBody 'Set the e-mail body format (0=HTML 1=Text) .BodyFormat = 1 'Set the mail format (0=MIME 1=Text) .MailFormat = 0 'Importance of the e-mail (0=Low, 1=Normal, 2=High) .Importance = 2 'Send the e-mail .Send End With 'Release the object (this has to be done with each email for CDONTS) Set objCDOMail = Nothing end function if not request.form("First_Name")="" then dim reply reply = "Message sent from webserver on " & now() & vbcrlf reply = reply & "Forename: " & request.form("First_Name") & vbcrlf reply = reply & "Surname: " & request.form("Last_Name") & vbcrlf reply = reply & "Company: " & request.form("txtCompany") & vbcrlf reply = reply & "Position: " & request.form("txtPosition") & vbcrlf reply = reply & "Employees: " & request.form("chk7") & vbcrlf reply = reply & "Telephone: " & request.form("txtTele") & vbcrlf reply = reply & "Email: " & request.form("txtEMail") & vbcrlf reply = reply & "Interests: " & vbcrlf reply = reply & " Training: "& request.form("chk6") & vbcrlf reply = reply & " Advice: "& request.form("chk1") & vbcrlf reply = reply & " Innovation: "& request.form("chk4") & vbcrlf reply = reply & " New Business: "& request.form("chk2") & vbcrlf reply = reply & " Sponsored: "& request.form("chk5") & vbcrlf reply = reply & "Contact: " & request.form("chk3") & vbcrlf SendMail "webenquires@three-l.net", reply response.redirect "index.htm" end if %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=unicode"> <META content="MSHTML 6.00.2800.1400" name=GENERATOR> <SCRIPT LANGUAGE=javascript> <!-- function checkme() { var strReply=""; var isOK=true; if (form1.First_Name.value=="") { isOK=false; strReply = strReply + "Please enter your forename.\n"; } if (form1.Last_Name.value=="") { isOK=false; strReply = strReply + "Please enter your surname.\n"; } if (form1.txtCompany.value=="") { isOK=false; strReply = strReply + "Please enter your company.\n"; } if (form1.txtEmail.value=="") { isOK=false; strReply = strReply + "Please enter your email address.\n"; } if (isOK) { form1.chk1.value = form1.chkadvice.checked; form1.chk2.value = form1.chkbus.checked; form1.chk3.value = form1.chkcont.checked; form1.chk4.value = form1.chkinn.checked; form1.chk5.value = form1.chkspon.checked; form1.chk6.value = form1.chktrain.checked; form1.chk7.value = form1.cmbEmp.value; form1.submit(); } else { alert(strReply); return false; } } //--> </SCRIPT> <html> <link href="css/3lstyle.css" rel="stylesheet" type="text/css"> <head> <title>layout.gif</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <!--Fireworks MX 2004 Dreamweaver MX 2004 target. Created Wed Feb 11 14:37:11 GMT-0600 (Central Standard Time) 2004--> <script language="JavaScript" type="text/JavaScript"> <!-- <!-- function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc; } function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} } function MM_findObj(n, d) { //v4.01 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n]; for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); if(!x && d.getElementById) x=d.getElementById(n); return x; } function MM_swapImage() { //v3.0 var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3) if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];} } //--> </script> </head> <body bgcolor="#ffffff" background="images/bckgry.jpg" topmargin="0" marginheight="0" onLoad="MM_preloadImages('images/smmo.jpg','images/trnmo.jpg','images/admo.jpg','images/abmo.jpg','images/como.jpg')"> <div align="center" id="layout"> <table width="760" border="0" cellpadding="0" cellspacing="0" bgcolor="#D9D9D9"> <!--DWLayoutTable--> <!-- fwtable fwsrc="3l.png" fwbase="layout.gif" fwstyle="Dreamweaver" fwdocid = "32969826" fwnested="0" --> <tr> <td width="124"><img src="images/spacer.gif" width="124" height="1" border="0" alt=""></td> <td width="30"><img src="images/spacer.gif" width="30" height="1" border="0" alt=""></td> <td width="94"><img src="images/spacer.gif" width="94" height="1" border="0" alt=""></td> <td width="37"><img src="images/spacer.gif" width="37" height="1" border="0" alt=""></td> <td width="57"><img src="images/spacer.gif" width="57" height="1" border="0" alt=""></td> <td width="30"><img src="images/spacer.gif" width="30" height="1" border="0" alt=""></td> <td width="69"><img src="images/spacer.gif" width="69" height="1" border="0" alt=""></td> <td width="55"><img src="images/spacer.gif" width="55" height="1" border="0" alt=""></td> <td width="106"><img src="images/spacer.gif" width="106" height="1" border="0" alt=""></td> <td width="34"><img src="images/spacer.gif" width="34" height="1" border="0" alt=""></td> <td width="114"><img src="images/spacer.gif" width="114" height="1" border="0" alt=""></td> <td width="10"><img src="images/spacer.gif" width="10" height="1" border="0" alt=""></td> <td width="4"><img src="images/spacer.gif" width="1" height="1" border="0" alt=""></td> </tr> <tr> <td colspan="4"><img src="images/layout_1.gif" alt="" name="layout_1" width="285" height="18" border="0" usemap="#layout_1Map"></td> <td colspan="7"><img name="layout_2" src="images/layout_2.gif" width="465" height="18" border="0" alt=""></td> <td><img name="layout_3" src="images/layout_3.gif" width="10" height="18" border="0" alt=""></td> <td><img src="images/spacer.gif" width="1" height="18" border="0" alt=""></td> </tr> <tr> <td colspan="4"><img name="layout_4" src="images/layout_4.jpg" width="285" height="86" border="0" alt=""></td> <td><img name="layout_5" src="images/layout_5.jpg" width="57" height="86" border="0" alt=""></td> <td colspan="2"><img name="layout_6" src="images/layout_6.gif" width="99" height="86" border="0" alt=""></td> <td colspan="4"><img name="layout_7" src="images/layout_7.gif" width="309" height="86" border="0" alt=""></td> <td><img name="layout_8" src="images/layout_8.gif" width="10" height="86" border="0" alt=""></td> <td><img src="images/spacer.gif" width="1" height="86" border="0" alt=""></td> </tr> <tr> <td><a href="training.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Training','','images/trnmo.jpg',1)"><img src="images/training.jpg" alt="Training" name="Training" width="124" height="34" border="0"></a></td> <td colspan="2"><a href="advice.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Advice','','images/admo.jpg',1)"><img src="images/advice.jpg" alt="Advice" name="Advice" width="124" height="34" border="0"></a></td> <td colspan="3"><a href="about.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('About','','images/abmo.jpg',1)"><img src="images/about.jpg" alt="About" name="About" width="124" height="34" border="0"></a></td> <td colspan="2"><a href="contact.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Contact','','images/como.jpg',1)"><img src="images/contact.jpg" alt="Contact" name="Contact" width="124" height="34" border="0"></a></td> <td colspan="2"><img name="layout_13" src="images/mnuspc.jpg" width="140" height="34" border="0" alt=""></td> <td colspan="2"><a href="sitemap.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Site_map','','images/smmo.jpg',1)"><img src="images/sitemap.jpg" alt="Site Map" name="Site_map" width="124" height="34" border="0"></a></td> <td><img src="images/spacer.gif" width="1" height="34" border="0" alt=""></td> </tr> <tr> <td colspan="11"><img name="layout_15" src="images/layout_15.gif" width="750" height="10" border="0" alt=""></td> <td><img name="layout_16" src="images/layout_16.gif" width="10" height="10" border="0" alt=""></td> <td><img src="images/spacer.gif" width="1" height="10" border="0" alt=""></td> </tr> <tr> <td colspan="2"><img name="layout_17" src="images/layout_17.gif" width="154" height="30" border="0" alt=""></td> <td colspan="7"><img name="layout_18" src="images/layout_18.gif" width="448" height="30" border="0" alt=""></td> <td colspan="2"><img name="layout_19" src="images/layout_19.gif" width="148" height="30" border="0" alt=""></td> <td><img name="layout_20" src="images/layout_20.gif" width="10" height="30" border="0" alt=""></td> <td><img src="images/spacer.gif" width="1" height="30" border="0" alt=""></td> </tr> <tr> <td colspan="2" rowspan="2" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#d9d9d9"> <!--DWLayoutTable--> <tr> <td width="154" height="356">&nbsp;</td> </tr> </table></td> <td colspan="7" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"> <!--DWLayoutTable--> <tr> <td width="448" height="20" valign="top" bgcolor="#FFFFFF"><h1>Booking and Enquiry form</h1></td> </tr> <tr> <td height="313" valign="top"><FORM action="booking.asp" method=POST id=form1 name=form1> <TABLE width="100%" border=0 align=center cell Padding=0 cellSpacing=0 bgcolor="#FFFFFF"> <TR> <TD align=bottom>Forename(s)</TD> <TD align=bottom><INPUT id=First_Name name=First_Name style="WIDTH: 342px; HEIGHT: 22px" size=44></TD></TR> <TR> <TD align=bottom>Surname</TD> <TD align=bottom><INPUT id=Last_Name name=Last_Name style="WIDTH: 341px; HEIGHT: 22px" size=44></TD></TR> <TR> <TD align=bottom>Company</TD> <TD align=bottom><INPUT id=txtCompany name=txtCompany style="WIDTH: 339px; HEIGHT: 22px" size=43></TD></TR> <TR> <TD align=bottom>Position</TD> <TD align=bottom><INPUT id=txtPosition name=txtPosition style="WIDTH: 338px; HEIGHT: 22px" size=43></TD></TR> <TR> <TD align=bottom>No Of Employees</TD> <TD align=bottom><SELECT id=cmbEmp name=cmbEmp> <OPTION value="1-5" selected>1-5</OPTION> <option value="6-10">6-10</option> <option value="11-50">11-50</option> <option value="50+">50+</option> </SELECT></TD></TR> <TR> <TD align=bottom>Telephone</TD> <TD align=bottom><INPUT id=txtTele name=txtTele style="WIDTH: 339px; HEIGHT: 22px" size=43></TD></TR> <TR> <TD align=bottom>Email</TD> <TD align=bottom><INPUT id=txtEmail name=txtEmail style="WIDTH: 338px; HEIGHT: 22px" size=43></TD></TR> <TR> <TD align=bottom>Interested In (Please tick all thart apply)</TD> <TD align=bottom> <P><INPUT id=chktrain type=checkbox name=checkbox1 style="WIDTH: 20px; HEIGHT: 20px">&nbsp;Training<br> <INPUT id=chkadvice type=checkbox name=checkbox2>&nbsp;Advice/Coaching<br> <INPUT id=chkinn type=checkbox name=checkbox3>&nbsp;Innovation<br> <INPUT id=chkbus type=checkbox name=checkbox4>&nbsp;New Business<br> <INPUT id=chkspon type=checkbox name=checkbox5>&nbsp;Sponsered Places</P> </TD></TR> <TR> <TD align=bottom> Contact</TD> <TD align=bottom><INPUT id=chkcont title="" type=checkbox name=checkbox6> Yes</TD> </TR> <TR> <TD align=bottom><INPUT id=but type=button value=Submit name=but onclick="Javascript: checkme();"> </TD> <TD align=bottom><INPUT id=reset1 type=reset value=Reset name=reset1></TD></TR> </TABLE> <input type=hidden name=chk1> <input type=hidden name=chk2> <input type=hidden name=chk3> <input type=hidden name=chk4> <input type=hidden name=chk5> <input type=hidden name=chk6> <input type=hidden name=chk7> </FORM></td> </tr> </table></td> <td colspan="4" rowspan="2" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#d9d9d9"> <!--DWLayoutTable--> <tr> <td width="162" height="356">&nbsp;</td> </tr> </table></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td colspan="11" valign="top"><img name="layout_25" src="images/layout_25.gif" width="750" height="25" border="0" alt=""></td> <td valign="top"><img name="layout_26" src="images/layout_26.gif" width="10" height="25" border="0" alt=""></td> <td>&nbsp;</td> </tr> <tr> <td height="25" colspan="12" valign="top" bgcolor="#E2E2E2"><div align="center"><a href="training.htm">Training</a> :: <a href="advice.htm">Advice</a> :: <a href="about.htm">About</a> :: <a href="contact.htm">Contact</a> :: <a href="sitemap.htm">Site Map</a> :: <a href="booking.asp">Book Now </a><br> </div></td> <td></td> </tr> <tr> <td height="13" colspan="12" valign="top" bgcolor="#E3E3E3"><div align="center">Copyright Love life Limited 2004 - All rights Reserved </div></td> <td></td> </tr> </table> </div> <map name="layout_1Map"> <area shape="rect" coords="1,1,60,17" href="index.htm"> </map> </body> </html>