% @Language="VBScript" %>
<% Option Explicit %>
<%
Dim fname, lname, social_sec, status, birthdate, phone_home, phone_work
Dim current_address, current_city, current_state, current_zip, country
Dim perm_address, perm_city, perm_state, perm_zip
Dim referred_doc, referred_pat
Dim phoenix, mesa, scottsdale, new_times, arizona, internet, billboard, office, other, other2
Dim allergy, illness, medication
Dim nose, chin, cheeks, eyelids, face, rejuv, ears, collagen, breast
Dim tummy, glycolic, lipo, facial, body, laser
Dim condition, chosen, when, payment, docs, article, friends, friends2, object
Dim happy, insurance, insurance2
Dim error_string, post, success
Function Tab(n)
Tab = String(n,vbTab)
End Function
fname = Request.Form("fname")
lname = Request.Form("lname")
social_sec = Request.Form("social_sec")
status = Request.Form("status")
birthdate = Request.Form("birthdate")
phone_home = Request.Form("phone_home")
phone_work = Request.Form("phone_work")
current_address = Request.Form("current_address")
current_city = Request.Form("current_city")
current_state = Request.Form("current_state")
current_zip = Request.Form("current_zip")
country = Request.Form("country")
perm_address = Request.Form("perm_address")
perm_city = Request.Form("perm_city")
perm_state = Request.Form("perm_state")
perm_zip = Request.Form("perm_zip")
referred_doc = Request.Form("referred_doc")
referred_pat = Request.Form("referred_pat")
phoenix = Request.Form("phoenix")
mesa = Request.Form("mesa")
scottsdale = Request.Form("scottsdale")
new_times = Request.Form("new_times")
arizona = Request.Form("arizona")
internet = Request.Form("internet")
billboard = Request.Form("billboard")
office = Request.Form("office")
other = Request.Form("other")
other2 = Request.Form("other2")
allergy = Request.Form("allergy")
illness = Request.Form("illness")
medication = Request.Form("medication")
nose = Request.Form("nose")
chin = Request.Form("chin")
cheeks = Request.Form("cheeks")
eyelids = Request.Form("eyelids")
face = Request.Form("face")
rejuv = Request.Form("rejuv")
ears = Request.Form("ears")
collagen = Request.Form("collagen")
breast = Request.Form("breast")
tummy = Request.Form("tummy")
glycolic = Request.Form("glycolic")
lipo = Request.Form("lipo")
facial = Request.Form("facial")
body = Request.Form("body")
laser = Request.Form("laser")
condition = Request.Form("condition")
chosen = Request.Form("chosen")
when = Request.Form("when")
payment = Request.Form("payment")
docs = Request.Form("docs")
article = Request.Form("article")
friends = Request.Form("friends")
friends2 = Request.Form("friends2")
object = Request.Form("object")
happy = Request.Form("happy")
insurance = Request.Form("insurance")
insurance2 = Request.Form("insurance2")
post = Request.Form("post")
error_string=""
If fname = "" Then
error_string = error_string & "Please enter a first name. "
End If
If lname = "" Then
error_string = error_string & "Please enter a last name. "
End If
If social_sec = "" Then
error_string = error_string & "Please enter your social security number. "
End If
If birthdate = "" Then
error_string = error_string & "Please enter a birthdate. "
ElseIf Not IsDate(birthdate) Then
error_string = error_string & "Invalid birthdate entered. "
End If
If error_string = "" And post = "T" Then
Dim objMail, Message
Dim pickS, pickM, pickW, pickD
Dim birthday, ssn
Dim cash, cashier, card
Dim docsy, docsn, articley, articlen, friendsy, friendsn
Dim objecty, objectn, insurancey, insurancen
Dim city_state_zip, city_state_zip2, line
success = "T"
If status = "S" Then
pickS = "X"
Else
pickS = "--"
End If
If status = "M" Then
pickM = "X"
Else
pickM = "--"
End If
If status = "W" Then
pickW = "X"
Else
pickW = "--"
End If
If status = "D" Then
pickD = "X"
Else
pickD = "--"
End If
birthday = FormatDateTime(birthdate,2)
If InStr(social_sec,"-") = 0 Then
ssn = Left(social_sec,3) & "-" & Mid(social_sec,4,2) & "-" & Mid(social_sec,6)
Else
ssn = social_sec
End If
If phoenix ="Y" Then
phoenix = "X"
Else
phoenix = "-"
End If
If mesa ="Y" Then
mesa = "X"
Else
mesa = "-"
End If
If scottsdale ="Y" Then
scottsdale = "X"
Else
scottsdale = "-"
End If
If new_times ="Y" Then
new_times = "X"
Else
new_times = "-"
End If
If arizona ="Y" Then
arizona = "X"
Else
arizona = "-"
End If
If internet ="Y" Then
internet = "X"
Else
internet = "-"
End If
If billboard ="Y" Then
billboard = "X"
Else
billboard = "-"
End If
If office ="Y" Then
office = "X"
Else
office = "-"
End If
If other ="Y" Then
other = "X"
Else
other = "-"
End If
If nose = "Y" Then
nose = "X"
Else
nose = "-"
End If
If chin = "Y" Then
chin = "X"
Else
chin = "-"
End If
If cheeks = "Y" Then
cheeks = "X"
Else
cheeks = "-"
End If
If eyelids = "Y" Then
eyelids = "X"
Else
eyelids = "-"
End If
If face = "Y" Then
face = "X"
Else
face = "-"
End If
If rejuv = "Y" Then
rejuv = "X"
Else
rejuv = "-"
End If
If ears = "Y" Then
ears = "X"
Else
ears = "-"
End If
If collagen = "Y" Then
collagen = "X"
Else
collagen = "-"
End If
If breast = "Y" Then
breast = "X"
Else
breast = "-"
End If
If tummy = "Y" Then
tummy = "X"
Else
tummy = "-"
End If
If laser = "Y" Then
laser = "X"
Else
laser = "-"
End If
If glycolic = "Y" Then
glycolic = "X"
Else
glycolic = "-"
End If
If lipo = "Y" Then
lipo = "X"
Else
lipo = "-"
End If
If facial = "Y" Then
facial = "X"
Else
facial = "-"
End If
If body = "Y" Then
body = "X"
Else
body = "-"
End If
If payment = "C" Then
cash = "X"
Else
cash = "-"
End If
If payment = "H" Then
cashier = "X"
Else
cashier = "-"
End If
If payment = "A" Then
card = "X"
Else
card = "-"
End If
If docs = "Y" Then
docsy = "X"
Else
docsy = "-"
End If
If docs = "N" Then
docsn = "X"
Else
docsn = "-"
End If
If article = "Y" Then
articley = "X"
Else
articley = "-"
End If
If article = "N" Then
articlen = "X"
Else
articlen = "-"
End If
If friends = "Y" Then
friendsy = "X"
Else
friendsy = "-"
End If
If friends = "N" Then
friendsn = "X"
Else
friendsn = "-"
End If
If object = "Y" Then
objecty = "X"
Else
objecty = "-"
End If
If object = "N" Then
objectn = "X"
Else
objectn = "-"
End If
If insurance = "Y" Then
insurancey = "X"
Else
insurancey = "-"
End If
If insurance = "N" Then
insurancen = "X"
Else
insurancen = "-"
End If
city_state_zip = current_city & ", " & current_state & " " & current_zip
city_state_zip2 = perm_city & ", " & perm_state & " " & perm_zip
line = "---------------------------------------------------------------"
Message = Tab(4) & "The Blumberg Center" & vbCrLf
Message = Message & Tab(4) & " Patient Form" & vbCrLf
Message = Message & vbCrLf
Message = Message & line & vbCrLf
Message = Message & Tab(4) & "PATIENT INFO" & vbCrLf
Message = Message & line & vbCrLf
Message = Message & fname & " " & lname & vbCrLf
Message = Message & pickS & " Single " & pickM & " Married " & pickW & " Wid " & pickD & " Div" & vbCrLf
Message = Message & vbCrLf
Message = Message & "Soc. Sec. # " & ssn & vbCrLf
Message = Message & vbCrLf
Message = Message & "Date of Birth: " & birthday & vbCrLf
Message = Message & vbCrLf
Message = Message & "Home Phone # " & phone_home & " Work Phone # " & phone_work & vbCrLf
Message = Message & vbCrLf
Message = Message & "Present Address:" & vbCrLf
Message = Message & current_address & vbCrLf
Message = Message & city_state_zip & vbCrLf
Message = Message & country & vbCrLf
Message = Message & vbCrLf
Message = Message & "Permanent Address:" & vbCrLf
Message = Message & perm_address & vbCrLf
Message = Message & city_state_zip2 & vbCrLf
Message = Message & vbCrLf
Message = Message & line & vbCrLf
Message = Message & Tab(4) & "REFERRAL INFO" & vbCrLf
Message = Message & line & vbCrLf
Message = Message & "Referred by Dr.: " & referred_doc & " Patient Referral: " & referred_pat & vbCrLf
Message = Message & vbCrLf
Message = Message & line & vbCrLf
Message = Message & Tab(4) & "OTHER INFO" & vbCrLf
Message = Message & line & vbCrLf
Message = Message & "How did you hear about us?" & vbCrLf
Message = Message & vbCrLf
Message = Message & "Yellow Pages: " & phoenix & " Phoenix " & mesa & " Mesa " & scottsdale & " Scottsdale" & vbCrLf
Message = Message & new_times & " New Times " & arizona & " Today's Arizons Woman" & vbCrLf
Message = Message & internet & " Internet " & billboard & " Billboard " & office & " Office" & vbCrLf
Message = Message & other & " Other: " & other2 & vbCrLf
Message = Message & vbCrLf
Message = Message & line & vbCrLf
Message = Message & Tab(4) & "MEDICATION INFO" & vbCrLf
Message = Message & line & vbCrLf
Message = Message & "Any known allergies to medication? " & allergy & vbCrLf
Message = Message & vbCrLf
Message = Message & "Any known illnesses/diseases? " & illness & vbCrLf
Message = Message & vbCrLf
Message = Message & "List all the medications currently being used, including across" & vbCrLf
Message = Message & "the counter products:" & vbCrLf
Message = Message & medication & vbCrLf
Message = Message & vbCrLf
Message = Message & line & vbCrLf
Message = Message & Tab(4) & "SURGERY INFO" & vbCrLf
Message = Message & line & vbCrLf
Message = Message & "Please check the type of surgery you are considering:" & vbCrLf
Message = Message & vbCrLf
Message = Message & nose & " Nose " & chin & " Chin " & cheeks & " Cheeks " & eyelids & " Eyelids " & face & " Face " & vbCrLf
Message = Message & rejuv & " Facial Rejuvenation " & ears & " Ears " & collagen & " Collagen/Gortex/Lip Advancement " & vbCrLf
Message = Message & breast & " Breast Augmentation " & tummy & " Tummy Tuck " & laser & " Laser " & vbCrLf
Message = Message & glycolic & " Glycolic Washes " & lipo & " Liposuction " & facial & " Facial " & body & " Body " & vbCrLf
Message = Message & vbCrLf
Message = Message & "What don't you like about the above conditions?" & vbCrLf
Message = Message & condition & vbCrLf
Message = Message & vbCrLf
Message = Message & "Why have you chosen the Blumberg Center?" & vbCrLf
Message = Message & chosen & vbCrLf
Message = Message & vbCrLf
Message = Message & "When do you expect to have the surgical procedure(s)?" & vbCrLf
Message = Message & when & vbCrLf
Message = Message & vbCrLf
Message = Message & line & vbCrLf
Message = Message & Tab(4) & "PAYMENT INFO" & vbCrLf
Message = Message & line & vbCrLf
Message = Message & "Method of Payment (Deposit required to reserve specific surgical date)." & vbCrLf
Message = Message & cash & " Cash " & cashier & " Cashier's Check " & card & " Credit Card" & vbCrLf
Message = Message & vbCrLf
Message = Message & line & vbCrLf
Message = Message & Tab(4) & "ADDITIONAL INFO" & vbCrLf
Message = Message & line & vbCrLf
Message = Message & "Check the following answers:" & vbCrLf
Message = Message & docsy & " Yes " & docsn & " No Have you consulted any other doctor about this?" & vbCrLf
Message = Message & articley & " Yes " & articlen & " No Have you read any article(s) about cosmetic surgery?" & vbCrLf
Message = Message & friendsy & " Yes " & friendsn & " No Have any friends or family had cosmetic surgery? If yes, what was done?" & vbCrLf
Message = Message & friends2 & vbCrLf
Message = Message & objecty & " Yes " & objectn & " No Do you understand that the object of cosmetic surgery is improvement, NOT perfection?" & vbCrLf
Message = Message & vbCrLf
Message = Message & "If you have cosmetic surgery, who do you think will be the happiest with the results?" & vbCrLf
Message = Message & happy & vbCrLf
Message = Message & vbCrLf
Message = Message & insurancey & " Yes " & insurancen & " No Do you have health insurance? If yes, what kind?" & vbCrLf
Message = Message & insurance2 & vbCrLf
Message = Message & line
Set objMail = CreateObject("CDONTS.NewMail")
objMail.From="forms@blumbergcenter.com"
objMail.To="pblumb9952@aol.com"
' objMail.To="josh@webplexus.com"
objMail.Subject="Blumberg Center Patient Form"
objMail.BodyFormat=1
objMail.MailFormat=1
objMail.Body=Message
objMail.Send
Set objMail = Nothing
End If
' Response.Write(Request.Form)
' Response.End
%>