<%@ language="javascript" %> <% if(Request.Form("isPost")=="yes"){ var strResult=isBot(); if(strResult=="false"){ var leadSite="instantcashloans.org.uk"; var strDataForOurService=Request.Form+""+"&was_accepted=&leadsite="+leadSite; var isPostToPTP=true; var strRedirectURL=""; main(); } }else{ var strFirstName = Session("firstname"); var strLastName = Session("lastname"); var strAddress = Session("address"); var strPostcode = Session("postcode"); var strEmailAddress = Session("email"); var strTelephone = Session("telephone"); var strMobile = Session("mobile"); var strLoanAmount = Session("loanamount"); var intDOBDD = parseInt(Session("day")); var intDOBMM = Session("month"); var intDOBYYYY = parseInt(Session("year")); var strSiteName = Session("leadSite"); } %> <% // functions function isBot(){ var strPhone=Request.Form("phone1")+""; var intPhoneLen=strPhone.length; var strReturnValue=""; if(intPhoneLen<11){ strReturnValue="true"; }else if(isNaN(strPhone)){ strReturnValue="true"; }else{ strReturnValue="false"; } return strReturnValue; } function main(){ // get appropriate data into XML form for MEM var strMEMData=getXMLForMEM(); // get appropriate data for PTP var strPTPData=getDataForPTP(); // print values //print(strMemData,strPtpData,strDataForOurService); // post data to MEM and receive response var strMEMResponse=postFormToMEM(strMEMData); // get appropriate values from MEM Response Code var strResultValues=getValuesFromMEMResponse(strMEMResponse); // checking whether a form needs a post to PTP or not var arrTemp=strResultValues.split("}"); if(arrTemp[0]=="-1"){ strDataForOurService+="&was_accepted_MEM=e&message="+arrTemp[1]; isPostToPTP=true; }else if(arrTemp[0]=="0"){ strDataForOurService+="&was_accepted_MEM=n&message="+arrTemp[1]; isPostToPTP=true; }else{ strDataForOurService+="&was_accepted_MEM=y&message="+arrTemp[1]; isPostToPTP=false; strRedirectURL=arrTemp[2]; postResultToOurService(strDataForOurService,"MEMPTP"); Response.Redirect(strRedirectURL); } // posting form to PTP if MEM=error/rejected if(isPostToPTP){ var strPTPResponse=postFormToPTP(strPTPData); if(strPTPResponse=="Accepted"){ strDataForOurService+="&was_accepted_PTP=y"; strRedirectURL="thankyou.html?a"; postResultToOurService(strDataForOurService,"MEMPTP"); }else{ strDataForOurService+="&was_accepted_PTP=n&redirected_to_wageday=y"; strRedirectURL="ApplicationForm_W.asp"; defineSessionValues(strDataForOurService); } } Response.Redirect(strRedirectURL); } function echo(strValue){ Response.Write(strValue); } function getDateOptions(){ for(var i=1;i<32;i++){ if(intDOBDD == i){ Response.Write(""); }else{ Response.Write(""); } } } function getMonthOptions(){ var arrMonths = ["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]; for(var i=0;i<12;i++){ var y=i+1; if(intDOBMM == y){ Response.Write(""); }else{ Response.Write(""); } } } function getYearOptions(){ var intStartYear=1900; var objDate = new Date(); var intPresentYear = objDate.getFullYear(); var intEndYear = intPresentYear - 20; for(var i=intStartYear;i"+i+""); }else{ Response.Write(""); } } } function getXMLForMEM(){ var strEmpTime=parseInt(Request.Form("empYear"))+parseInt(Request.Form("empMonth")); var strDate=Request.Form("dobDay")+"/"+Request.Form("dobMonth")+"/"+Request.Form("dobYear"); var strCardType=Request.Form("cardType")+""; if(strCardType=="MA"){ strCardType="SW"; } var strData = ''+'\n\r'; strData += ''+'\n\r'; strData += ''+'\n\r'; strData += ''+Request.Form("brokerCode")+''+'\n\r'; strData += ''+Request.Form("title")+''+'\n\r'; strData += ''+Request.Form("firstName")+''+'\n\r'; strData += ''+Request.Form("middleName")+''+'\n\r'; strData += ''+Request.Form("surname")+''+'\n\r'; strData += ''+Request.Form("houseName")+''+'\n\r'; strData += '
'+Request.Form("address")+'
'+'\n\r'; strData += ''+Request.Form("city")+''+'\n\r'; strData += ''+Request.Form("county")+''+'\n\r'; strData += ''+Request.Form("postcode")+''+'\n\r'; strData += ''+strDate+''+'\n\r'; strData += ''+Request.Form("phone1")+''+'\n\r'; strData += ''+Request.Form("phone3")+''+'\n\r'; strData += ''+Request.Form("email")+''+'\n\r'; var strType = Request.Form("employmentType"); if(strType != "FT" && strType != "PT"){ strType = "NA" }else{ strType = Request.Form("employmentType"); } strData += ''+strType+''+'\n\r'; strData += ''+Request.Form("employerName")+''+'\n\r'; strData += ''+Request.Form("phone2")+''+'\n\r'; strData += ''+strEmpTime+''+'\n\r'; strData += ''+parseInt(Request.Form("netMonthlyPay"))+''+'\n\r'; strData += ''+Request.Form("payFrequency")+''+'\n\r'; strData += ''+Request.Form("payDay")+''+'\n\r'; strData += ''+Request.Form("directDeposit")+''+'\n\r'; strData += ''+strCardType+''+'\n\r'; strData += ''+parseInt(Request.Form("loanAmount"))+''+'\n\r'; strData += '
'+'\n\r'; strData += '
'+'\n\r'; return strData; } function getDataForPTP(){ var strDataURL=""; strDataURL+="Vendor="+Request.Form("Vendor"); strDataURL+="&AcceptRedirect="+Server.URLEncode(Request.Form("AcceptRedirect")); strDataURL+="&RejectRedirect="+Server.URLEncode(Request.Form("RejectRedirect")); strDataURL+="&BusyWait="+Server.URLEncode(Request.Form("BusyWait")); strDataURL+="&firstName="+Server.URLEncode(Request.Form("firstName")); strDataURL+="&lastName="+Server.URLEncode(Request.Form("surname")); strDataURL+="&dobDay="+Server.URLEncode(Request.Form("dobDay")); strDataURL+="&dobMonth="+Server.URLEncode(Request.Form("dobMonth")); strDataURL+="&dobYear="+Server.URLEncode(Request.Form("dobYear")); strDataURL+="&gender="+Server.URLEncode(Request.Form("gender")); strDataURL+="&unitNumber="+Server.URLEncode(Request.Form("unitNumber")); strDataURL+="&streetNumber="+Server.URLEncode(Request.Form("houseName")); strDataURL+="&streetName="+Server.URLEncode(Request.Form("houseName")); strDataURL+="&streetType="+Server.URLEncode(Request.Form("address")); strDataURL+="&city="+Server.URLEncode(Request.Form("city")); strDataURL+="&county="+Server.URLEncode(Request.Form("county")); strDataURL+="&country="+Server.URLEncode(Request.Form("country")); strDataURL+="&zipCode="+Server.URLEncode(Request.Form("postcode")); var strPhone=new String(Request.Form("phone1")); var strArea=""; var strExch=""; var strNumb=""; for(var i=0;i3 && i<8){ strExch+=strPhone.charAt(i); }else{ strNumb+=strPhone.charAt(i); } } strDataURL+="&homeArea="+Server.URLEncode(strArea); strDataURL+="&homeExch="+Server.URLEncode(strExch); strDataURL+="&homeNumb="+Server.URLEncode(strNumb); strDataURL+="&emailAdd="+Server.URLEncode(Request.Form("email")); strDataURL+="&employer="+Server.URLEncode(Request.Form("employerName")); var strPhone1=new String(Request.Form("phone2")); var strArea=""; var strExch=""; var strNumb=""; for(var i=0;i3 && i<8){ strExch+=strPhone1.charAt(i); }else{ strNumb+=strPhone1.charAt(i); } } strDataURL+="&workArea="+Server.URLEncode(strArea); strDataURL+="&workExch="+Server.URLEncode(strExch); strDataURL+="&workNumb="+Server.URLEncode(strNumb); var strDeposit=Request.Form("directDeposit"); var strDepositValue=""; if(strDeposit=="0" || strDeposit=="1"){ strDepositValue+="true"; }else{ strDepositValue+="false"; } strDataURL+="&directDebit="+Server.URLEncode(strDepositValue); var strIncomeSource = ""; if(Request.Form("employmentType") == "FT"){ strIncomeSource = "1"; }else if(Request.Form("employmentType") == "PT"){ strIncomeSource = "8"; }else{ strIncomeSource = Request.Form("employmentType"); } strDataURL+="&incomeSource="+Server.URLEncode(strIncomeSource); strDataURL+="&netIncome="+Server.URLEncode(Request.Form("netMonthlyPay")); strDataURL+="&nationalID="+Server.URLEncode(Request.Form("nationalID")); var strPayFreq=Request.Form("payFrequency"); var strPayValue=""; if(strPayFreq=="2"){ strPayValue="1"; }else if(strPayFreq=="3"){ strPayValue="2"; }else if(strPayFreq=="4"){ strPayValue="3"; }else if(strPayFreq=="1"){ strPayValue="4"; } strDataURL+="&payFrequency="+Server.URLEncode(strPayValue); return strDataURL; } function defineSessionValues(strOurData){ var strEmpTime=parseInt(Request.Form("empYear"))+parseInt(Request.Form("empMonth")); Session("title")=Request.Form("title")+""; Session("firstName")=Request.Form("firstName")+""; Session("lastName")=Request.Form("surname")+""; Session("dob")=Request.Form("dobDay")+"/"+Request.Form("dobMonth")+"/"+Request.Form("dobYear")+""; Session("streetAddress")=Request.Form("address")+""; Session("town")=Request.Form("city")+""; Session("postcode")=Request.Form("postcode")+""; Session("homeTel")=Request.Form("phone1")+""; Session("email")=Request.Form("email")+""; Session("employerName")=Request.Form("employerName")+""; Session("employerTel")=Request.Form("phone2")+""; Session("timeEmployed")=strEmpTime; Session("pay")=Request.Form("netMonthlyPay")+""; Session("paymentFrequency")=Request.Form("payFrequency")+""; Session("bankCard")=Request.Form("cardType")+""; Session("loanAmount")=Request.Form("loanAmount")+""; Session("strOurData")=strOurData; } function postFormToMEM(strDataSend){ var objXMLHTTP = Server.CreateObject("Msxml2.ServerXMLHTTP"); var strServiceURL = "https://www.memcapital.com/MEMXMLApplication/application.aspx"; objXMLHTTP.open("POST",strServiceURL,false); objXMLHTTP.setRequestHeader("Content-Type","text/xml"); objXMLHTTP.send(strDataSend); var strResponse=objXMLHTTP.responseText; return strResponse; } function getValuesFromMEMResponse(strCodedResponse){ var strResult=""; var strResponse=new String(strCodedResponse); var intStartCode=strResponse.indexOf("")+6; var intEndCode=strResponse.indexOf(""); strResult+=strResponse.substring(intStartCode,intEndCode)+"}"; var intStartMsg=strResponse.indexOf("")+9; var intEndMsg=strResponse.indexOf(""); strResult+=strResponse.substring(intStartMsg,intEndMsg)+"}"; var intStartURL=strResponse.indexOf("")+5; var intEndURL=strResponse.indexOf(""); var strTemp=strResponse.substring(intStartURL,intEndURL); if(strResponse.substring(intStartCode,intEndCode)==1){ var arrTemp=strTemp.split("["); var strTemp1=arrTemp[2]; var arrTemp1=strTemp1.split("]"); strResult+=arrTemp1[0]; } return strResult; } function postFormToPTP(strPostData){ var objXMLHTTP_PTP = Server.CreateObject("Msxml2.ServerXMLHTTP"); var strServiceURL_PTP = "http://leadsuk.blizzardi.com/whiteboxeyesPTP/acceptlead.aspx"; objXMLHTTP_PTP.open("POST",strServiceURL_PTP,false); objXMLHTTP_PTP.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); objXMLHTTP_PTP.send(strPostData); return objXMLHTTP_PTP.responseText; } function postResultToOurService(strLead,strType){ try{ var objXMLHTTP_Log = Server.CreateObject("Msxml2.XMLHTTP"); var strServiceURL_Log = "http://94.136.39.80/loanhub/payday/main.php"; objXMLHTTP_Log.open("POST",strServiceURL_Log,false); objXMLHTTP_Log.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); var strData=strLead+""; strData+="&lead_ip="+Server.URLEncode(Request.ServerVariables("REMOTE_ADDR")); strData+="&lead_type="+strType; strData+="&lead_site=instantcashloans.org.uk"; strData+="&lead_id="+Request.Form("email"); objXMLHTTP_Log.send(strData); //echo(objXMLHTTP_Log.responseText); }catch(ex){ var strError = "/////// ERROR IN POSTING RESULT TO SERVICE /////\r\n"; strError += ex.description + "\r\n"; strError += "for " + Request.Form+""; logError(strError); } } function print(mem,ptp,ourData){ echo(mem); echo("
"); echo(ptp); echo("
"); echo(ourData); } %> Complete Application Form Complete Application Form
Instant Cash Loans
Home About Us Contact Us Services Resources FAQs Sitemap
Please Fill Details Below To Complete Your Application
Title:
First Name:
Middle Name:
Last Name:
Date Of Birth:
Gender:
E-mail Address:
Unit Number:
House Name:
Address:
City/Town:
County:
Country:
Postcode:
Home Telephone :
Mobile :
Employment Type:
Employer Name:
Office Telephone :
Time At Employer
Net Monthly Pay: £
Pay Frequency:
NIN:
Pay Date:
Direct Deposit:
Card Type:
Loan Amount: £

Home | About Us | Contact Us | Services | Resources | FAQs | Privacy Policy | Sitemap

THINK CAREFULLY BEFORE SECURING OTHER DEBTS AGAINST YOUR HOME.YOUR HOME MAY BE REPOSSESSED IF YOU DO NOT KEEP UP REPAYMENTS ON A MORTGAGE OR ANY OTHER DEBT SECURED ON IT.

© Copyright 2006-2007, All Rights Reserved. www.instantcashloans.org.uk