<<include "parseEmailAddr.incl";local submit_status;local Name, mailfrom, Address, City, State, Zip, Phone, Comments, lid;iff undefined(Name)     then Name = "";iff undefined(mailfrom) then mailfrom = "";iff undefined(Address)  then Address = "";iff undefined(City)     then City = "";iff undefined(State)    then State = "";iff undefined(Zip)      then Zip = "";iff undefined(Phone)    then Phone = "";iff undefined(FAX)      then FAX = "";iff undefined(Comments) then Comments = "";local email_check = goodEmailAddress(mailfrom);function printForm (err_cond)	err_msg = "";	if err_cond then		err_msg = "<br>				<strong style=\"color: #8C0039\">" &				((mailfrom = "") ? "&#149; Please include an e-mail address so that your request may be processed properly. Thank you." : email_check) &				"</strong>";	end if;	<<<table width=600 align=center>	<tr>	<td align=center>		<p><img src="/graphics/TBryanlogo.gif" width=218 height=83 alt=""></p>		<hr>		<font size="+1"><i>For Experienced and Personalized Service</i></font>		<hr>	</td>	</tr>	<tr>	<td>		<h3 align="center">Complete this form to request more information from Tim about real estate in San Luis Obispo County</h3>		<form method=post action="{template_name}">{defined(lid) ? "			<input type=\"hidden\" name=\"lid\" value=\"" & lid & "\">" : ""}			<table align=center cellpadding=3>			<tr>				<td align=right><p>Your name:</p></td>				<td align=left><p><input type=text size=70 name="Name" value="{Name}"></p></td>			</tr>			<tr>				<td align=right valign="top"><p>E-mail:</p></td>				<td align=left valign="top"><p><input type=text size=70 name="mailfrom" value="{mailfrom}">{err_msg}</p></td>			</tr>			<tr>				<td align=right><p>Address:</p></td>				<td align=left><p><input type=text size=70 name="Address" value="{Address}"></p></td>			</tr>			<tr>				<td align=right><p>City:</p></td>				<td align=left>					<p>					<input type=text size=45 name="City" value="{City}">					State:<input type=text size=2 name="State" value="{State}">					Zip:<input type=text size=10 name="Zip" value="{Zip}"></p>				</td>			</tr>			<tr>				<td align=right><p>Phone:</p></td>				<td align=left>					<p>					<input type=text size=12 name="Phone" value="{Phone}">					FAX:<input type=text size=12 name="FAX" value="{FAX}"></p>				</td>			</tr>			<tr>				<td align=right valign=top><p>Comments:</p></td>				<td align=left><p><textarea name="Comments" rows=10 cols=70>{Comments}</textarea></p></td>			</tr>			<tr>				<td align=right></td>				<td align=right>					<p>					<input type="reset" value=" Reset ">					<input type="submit" name="submit_status" value=" Send Request "></p>				</td>			</tr>			</table>		</form>		<p>		Any personal information that you submit with this form will be used only to respond to		your request for information. It will not be shared with anyone other than Tim Bryan.</p>	</td>	</tr>	<tr>	<td align=right>		<p>		<a href="/" onmouseover="window.status='Back to Tim\'s Home Page';return true">		<img src="/graphics/MainPage.gif" width=115 height=40 border=0 alt="Main Page"></a></p>	</td>	</tr></table>>>end function;function sendRequest ()	if mailfrom != "" && email_check = "" then		the_message = "This visitor to your web site has requested further information" & 		               (defined(lid) ? " (after viewing listing #" & lid & ")" : "") & ":   Name: " & Name & "   Address: " & Address & "         " & City & " " & State & " " & Zip & "          E-mail: " & mailfrom & "   Phone: " & Phone & "    FAX: " & FAX & (Comments != "" ? " " & Name & " had these comments:" & Comments : "");		sendEmail("riddler.homes-magazine.com", "tim@timbryan.com", mailfrom, "Request for Information", the_message);	<<<p><a href="/"><img src="/graphics/TBryanlogoSmall.gif" alt="Tim Bryan" border="0"></a></p>	<p>	Thank you for your interest, {Name}. Your request for information has	been E-mailed to me and I will respond as  soon as possible.</p>>>	else		printForm(1);	end if;end function;>><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"			"http://www.w3.org/TR/REC-html40/loose.dtd"><html><head>	<title>Paso Robles Real Estate - Land - Tim Bryan - Realtor</title>	<meta name="keywords" content="Tim Bryan real estate property home homes house houses land acreage Paso Robles Templeton Atascadero"></head><body bgcolor="#FFFFFF" link="#004A84" vlink="#DD0000"><<if undefined(submit_status) then	printForm(0);else	sendRequest();end if;>></body></html>