<% 'ado_debug=1 Dim i Dim rs Dim aStates Dim aCreditCode Dim sLeadGUID Dim sAction sLeadGUID = GetValue("LeadGUID",Request.Cookies("LeadGUID")) sAction = GetValue("txtaction","") If GetValue("First_Name","") <> "" Then If inStr(GetValue("First_Name",""),"http:") Then Response.End End If End If If sAction <> "" Then Call FormInit Call LoadForm If GetValue("IPAddress","") = "" Then Call SetValue("IPAddress",Request.ServerVariables("REMOTE_ADDR")) If inStr(GetValue("FRM_DATABASE",""), "IPAddress") <= 0 Then Call SetValue("FRM_DATABASE",GetValue("FRM_DATABASE","") & ",IPAddress") End If End If If GetValue("home_phone","") = "" Then Call SetValue("home_phone",lCase(GetValue("HPhone1","")) & GetValue("HPhone2","") & GetValue("HPhone3","")) Call SetValue("home_phone",StripChars(GetValue("home_phone",""),"~`!@#$%^&*()_+-={}|[]\;'"":<>?,./abcdefghijklmnopqrstuvwxyz")) If len(GetValue("home_phone","")) <> 10 Then Call SetError("home_phone") Call SetError("HPhone1") End If If GetValue("work_phone","") = "" Then Call SetValue("work_phone",lCase(GetValue("WPhone1","")) & GetValue("WPhone2","") & GetValue("WPhone3","")) If GetValue("loan_purpose_code","") = "H" Then Call SetValue("Loan_Amount",GetValue("mkt_val","")) If GetValue("mort_bal","") = "" Then Call SetValue("mort_bal",GetValue("mkt_val","")) If GetValue("loan_amount","") = "" Then Call SetValue("Loan_Amount",GetValue("mort_bal","")) Call SetValue("LeadGUID",CreateGuid()) Call SetValue("Site_ID",GetValue("Site_ID","249294")) If Not bWasError Then Call SetValue("Status","P") Set rs = ExecuteSQL(MakeExecuteSQL("spLeadSave",GetValue("FRM_DATABASE",""))) Call SetValue("LeadGUID",rs.Fields("LeadGUID").Value) Response.Cookies("LeadGUID") = "" Response.Cookies("HeaderFile") = GetValue("HeaderFile","") Response.Cookies("HeaderFile").Expires = (Date()+1) Response.Cookies("FooterFile") = GetValue("FooterFile","") Response.Cookies("FooterFile").Expires = (Date()+1) Set rs = ExecuteSQL("SELECT first_name, last_name, email, ISNULL(home_phone, work_phone) as phone from leads_hold where LeadGUID='" & GetValue("LeadGUID","") & "'") If not rs.EOF Then aLead = rs.GetRows() Call ShutDownAdo ' Export to Mailchimp Call GetPage("http://54.176.159.91/lib/posts/export_mailchimp.php?LeadGUID="&GetValue("LeadGUID", "")) 'response.redirect("/lib/newform/thankyou.asp?tocredit="&GetValue("ToCredit","")&"&minapp="&GetValue("WordpressApp",GetValue("MiniApp",GetValue("MiniApp2","0")))&"&Site_ID="&GetValue("Site_ID","")&"&fname="&aLead(0,0)&"&lname="&aLead(1,0)&"&email="&aLead(2,0)&"&pp1="&Mid(aLead(3,0), 1, 3)&"&pp2="&Mid(aLead(3,0), 4, 3)&"&pp3="&Mid(aLead(3,0), 7, 4)&"&straddr="&GetValue("address1","")&"&city="&GetValue("city","")&"&state="&GetValue("state","")&"&zip="&GetValue("zip","")) response.redirect("/lib/creative/credit/Confirmation_redesign.asp?Adwords="&GetValue("Adwords","")&"&tocredit="&GetValue("ToCredit","")&"&minapp="&GetValue("WordpressApp",GetValue("MiniApp",GetValue("MiniApp2","0")))&"&Site_ID="&GetValue("Site_ID","")&"&fname="&aLead(0,0)&"&lname="&aLead(1,0)&"&email="&aLead(2,0)&"&pp1="&Mid(aLead(3,0), 1, 3)&"&pp2="&Mid(aLead(3,0), 4, 3)&"&pp3="&Mid(aLead(3,0), 7, 4)&"&straddr="&GetValue("address1","")&"&city="&GetValue("city","")&"&state="&GetValue("state","")&"&zip="&GetValue("zip","")&"&grs_mth_inc="&GetValue("grs_mth_inc","")) response.end End If End If Set rs = ExecuteSQL("exec spFormState") If not rs.EOF Then aStates = rs.GetRows() Set rs = nothing Call ShutdownADO ' ********************************************************************************** ' Import header, if one is available dim fs dim sHeader Dim sFooter set fs=Server.CreateObject("Scripting.FileSystemObject") if fs.FileExists(sPath&"app_header.asp")=true And fs.FileExists(sPath&"app_footer.asp")=true then 'response.write("File c:\asp\introduction.asp exists!") Set objFSO = Server.CreateObject("Scripting.FileSystemObject") Set objText = objFSO.OpenTextFile(sPath&"app_header.asp") getFileContents = objText.ReadAll response.write(getFileContents) objText.Close Set objText = objFSO.OpenTextFile(sPath&"app_footer.asp") getFileContents = objText.ReadAll sFooter=getFileContents objText.Close Set objText = Nothing Set objFSO = Nothing else %> <% end if set fs=nothing 'sSiteId=249294 %> <% sThankYouURL="https://www.nationwidemortgages.net/lib/thankyouMobile.asp"%>
Get Approved Today With Any Credit Grade
<% If Not bWasError Then %> 0% <% Else %> 75% <% End If %>
"> "> "> <% If nPriority <> "" Then %> <% Else %> <% End If %>
">
Loan Type:

State:

What's Your Credit Grade?

Purchase Price of Home
Select Closest Value

Mortgage Balance:
">

Last Step
Get Matched with Lenders - Free Quote

" style="<%=IIF(WasError("first_name"), "border-color:#FF0000;", "")%>">
" style="<%=IIF(WasError("last_name"), "border-color:#FF0000;", "")%>">
" style="<%=IIF(WasError("address1"), "border-color:#FF0000;", "")%>">
" style="<%=IIF(WasError("city"), "border-color:#FF0000;", "")%>">
" style="<%=IIF(WasError("zip"), "border-color:#FF0000;", "")%>">
" style="<%=IIF(WasError("HPhone1"), "border-color:#FF0000;", "")%>"> " style="<%=IIF(WasError("HPhone2"), "border-color:#FF0000;", "")%>"> " style="<%=IIF(WasError("HPhone3"), "border-color:#FF0000;", "")%>">
" style="<%=IIF(WasError("Email"), "border-color:#FF0000;", "")%>">
" style="<%=IIF(WasError("WPhone1"), "border-color:#FF0000;", "")%>"> " style="<%=IIF(WasError("WPhone2"), "border-color:#FF0000;", "")%>"> " style="<%=IIF(WasError("WPhone3"), "border-color:#FF0000;", "")%>">

Monthly Income (Total for Household)

We will contact you with a confirmation email shortly
<% If sFooter<>"" Then response.write(sFooter) Else %> <%End If%>