<%@ LANGUAGE=VBScript%>
<%Option Explicit
  Response.Buffer = True
  Response.ExpiresAbsolute = Now() - 1
  Response.Expires = 0
  Response.CacheControl = "no-cache"
'Page Created by Greg DeWeerd of Weerd Designs
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Contact - Ron Sall Body Werx Online! Zeeland, MI 49464</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="keywords" content="Custom Hot Rod, Hot Rod, Ron Sall, Body Werx, HotRod, Body Shop, Zeeland, MI"/>
<meta name="description" content="Located in Zeeland MI, Ron Sall Body Berx has been in the Custom Hot rod Restoration Business for over 35 years.  Take a look at what we have to offer!"/>
<meta name="author" content="Weerd Designs, Grand Rapids"/>
<link rel="stylesheet" type="text/css" href="css/layout.css">
<link rel="stylesheet" type="text/css" href="css/formatting.css">
<script type="text/javascript" src="Scripts/mainfunctions.js"></script>
</head>
<body style="background-color:#000000;">
<div id="main">
	<div id="bodyWerxLogo">
	</div>
	<div id="topRight">
	</div>
	<div id="topLeftLinks">
	</div>
	<div id="topLinks"><img src="images/links/linksfillerleft.gif" /><img id="homeLink" class="TopImageLinks" src="images/links/homeoff.gif" onmouseover="DisplayMainLinks(this.id,'on','home');" 
        onmouseout="DisplayMainLinks(this.id,'out','home');"  onclick="window.location='/home.asp'"/><img id="pictureLink" class="TopImageLinks" src="images/links/picturesoff.gif" onmouseover="DisplayMainLinks(this.id,'on','pictures');" 
        onmouseout="DisplayMainLinks(this.id,'out','pictures');" onclick="window.location='/slideshow/pictures.aspx'"/><img id="aboutUsLink" class="TopImageLinks" src="images/links/aboutusoff.gif" onmouseover="DisplayMainLinks(this.id,'on','aboutus');" 
        onmouseout="DisplayMainLinks(this.id,'out','aboutus');" onclick="window.location='/about.asp'"/><img id="contactLink" class="TopImageLinks" src="images/links/contactusoff.gif" onmouseover="DisplayMainLinks(this.id,'on','contactus');" 
        onmouseout="DisplayMainLinks(this.id,'out','contactus');" onclick="window.location='/contact.asp'"/><img src="images/links/linksfillerright.gif" /></div>
	<div id="topRightLinks">
	</div>
	<div id="container" >
<P align="center"><STRONG>Ron Sall Body Werx</STRONG><BR>6484 Chicago Dr.<BR>Zeeland, MI  49464 </P>
<P align="center"><STRONG>Telephone</STRONG><BR>Local: (616)879-0291<BR> </P>
<%
Dim visited
Dim firstname 
Dim lastname
Dim email
Dim phone
Dim otherinfo
Dim formcomplete
Dim Errormsg
dim HTMLBODY
Dim name

visited = request("visited")
firstname = request("firstname")
lastname = request("lastname")
email = request("email")
phone = request("phone")
otherinfo = request("otherinfo")
formcomplete=0
if visited = 1 then 
 	Dim re
  	Dim re2
  	Set re = new RegExp
  	set re2 = new RegExp
  	'Email Validation 
  	re.pattern = "^[a-zA-Z][\w\.-]*[a-zA-Z0-9]@[a-zA-Z0-9][\w\.-]*[a-zA-Z0-9]\.[a-zA-Z][a-zA-Z\.]*[a-zA-Z]$"
  	'Phone validation 
  	re2.Pattern="^[01]?\s*[\(\.-]?(\d{3})[\)\.-]?\s*(\d{3})[\.-](\d{4})$"
	If re2.Test(phone) = false and re.Test(email)=false Then
		Errormsg=Errormsg & "Provide an e-mail address or  a phone number including area code(111-111-1111)<BR />"
		formcomplete =2
	End if  
	If Errormsg = "" Then 
		formcomplete =1
	End if 
	
	
	If formcomplete =  1 then 'Send Mail 
	HTMLBODY = "<!DOCTYPE HTML PUBLIC""-//IETF//DTD HTML//EN"">"
HTMLBODY = HTMLBODY & "<html>"
HTMLBODY = HTMLBODY & "<head>"
HTMLBODY = HTMLBODY & "<title>This is a Request for Contact</title>"
HTMLBODY = HTMLBODY & "</head>"
HTMLBODY = HTMLBODY & "<body bgcolor=""FFFFFF"">"
HTMLBODY = HTMLBODY & "<strong>Name:</strong> " & firstname & " " & lastname & " <br />&nbsp;<br />"
HTMLBODY = HTMLBODY & "<strong>Phone Number:</strong> " & phone & "<br />&nbsp;<br />"
HTMLBODY = HTMLBODY & "<strong>Email Address:</strong> "& email & "<br />&nbsp;<br />"
HTMLBODY = HTMLBODY & "<div style=""width:300px;""><strong>Additional Comments:</strong><br />"
HTMLBODY = HTMLBODY & otherinfo &"</div>"
HTMLBODY = HTMLBODY & "</body>"
HTMLBODY = HTMLBODY & "</html>"
%>
<!--
METADATA
TYPE="typelib"
UUID="CD000000-8B95-11D1-82DB-00C04FB1625D"
NAME="CDO for Windows 2000 Library"
-->
<%
Dim cdoConfig
Set cdoConfig = CreateObject("CDO.Configuration")

With cdoConfig.Fields
.Item(cdoSendUsingMethod) = cdoSendUsingPort
.Item(cdoSMTPServer) = "mail.bodywerxonline.com"
.Update
End With
Dim cdoMessage
Set cdoMessage = CreateObject("CDO.Message")

With cdoMessage
Set .Configuration = cdoConfig
if email="" then email="noemail@bodywerxonline.com"
.From = email
.To = "rsbwerx@yahoo.com"
.Subject = "Website Contact"
.HTMLBody = HTMLBODY
.Send
End With

Set cdoMessage = Nothing
Set cdoConfig = Nothing
	
	
	
	End if 
End if 
if formcomplete=1 then 
	%>
	<h2>Thank you for submitting your form <% =firstname%>.</h2>  <p>Someone will be in contact with you shortly.  Depending on the volume of emails you can expect to hear back from us within 24 hours or less.</p>
	<%
End If
if formcomplete=2 then 
	Response.write("<br/><br/><p style=' color:#FF0000; font-weight:bold;background-color:#FFFF66;'>" & Errormsg & "</p>")
End if 
if formcomplete <> 1 then 
%>
<form name="form1" method="post" action="contact.asp" class="formtext">
<input type="hidden" name="visited" value="1" />
    <div align="center" class="">
    <table width="75%" border="0" cellspacing="0" cellpadding="1" class="formtext">
      <tr>
        <td  class="formlables" width="25%">First name </td>
        <td  class="formboxes" width="75%"><input type="text" name="firstname" value="<% =firstname%>"/></td>
      </tr>
      <tr >
        <td class="formlables">Last Name</td>
        <td class="formboxes"><input name="lastname" type="text" value="<% =lastname%>"/></td>
      </tr>
            <tr >
        <td class="formlables">Phone Number </td>
        <td class="formboxes"><input type="text" name="phone" value="<% =phone%>"/></td>
      </tr>
               <tr >
        <td class="formlables">E-mail address</td>
        <td class="formboxes"> <input type="text" name="email" value="<% =email%>"/></td>
      </tr>


      <tr>
        <td colspan="2">Other Information<br />
          <textarea name="otherinfo" cols="70" rows="4"><% =otherinfo%>
          </textarea></td>
      </tr>
       <tr>
       <td width="25%" class="formtextarea"><input  class="buttontype"  name="Reset Form" type="reset" value="Reset Form" />
       </td>
        <td width="75%" class="formtextarea"><input  class="buttontype" name="Submit" type="submit" value="Submit" />
        </td>
      </tr>

    </table>

</div>
<%
End if
%>


     <div id="bottom">
	</div>
    <div id="CopyrightandLinks"><a class="link2" href = "/home.asp">Home</a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<a class="link2" href = "/slideshow/pictures.aspx">Pictures</a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<a class="link2" href = "/about.asp">About Us</a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<a class="link2" href = "/contact.asp">Contact Us</a><br /><a class="link2" href="/copyright.asp">Copyright © <% Response.Write Year(now) %></a> Ron Sall Body Werx </div>
    
  </div>
	
</div>
</body>
</html>