<!--
function trim(s) {
s = s.replace(/^\s*/,'').replace(/\s*$/, '');
return s;
}
function CommaRem(str) {
re = /,/gi;
RetVal = str.replace(re, "")
return RetVal
}
function Validate() {	
Obj = document.forms[0].home_status;
if (trim(Obj.value) != "UK Homeowner with Mortgage") { alert("*Please make sure you are a UK Homeowner With A Mortgage to fill in this form.*");Obj.focus();return false; }
Obj = document.forms[0].loan_purpose;
if (trim(Obj.value) == "") { alert("*Please select Your Desired Loan Purpose.*");Obj.focus();return false; }
Obj = document.forms[0].title;
if (trim(Obj.value) == "") { alert("*Please select Your Title.*");Obj.focus();return false; }
Obj = document.forms[0].firstname;
if (trim(Obj.value) == "") { alert("*Please fill in Your First Name.*");Obj.focus();return false; }
Obj = document.forms[0].surname;
if (trim(Obj.value) == "") { alert("*Please fill in Your Surname.*");Obj.focus();return false; }
Obj = document.forms[0].phone;
if (trim(Obj.value) == "") { alert("*Please fill in Your Daytime Phone Number.*");Obj.focus();return false; }
Obj = document.forms[0].emp_status;
if (trim(Obj.value) == "") { alert("*Please fill in Employment Status.*");Obj.focus();return false; }
Obj = document.forms[0].yearly_income;
if (trim(Obj.value) == "") { alert("*Please select Your Yearly Income.*");Obj.focus();return false; }
Obj = document.forms[0].email;
if (trim(Obj.value) == "") { alert("*Please fill in Your Email Address.*");Obj.focus();return false; }
Obj = document.forms[0].dob_day1;
if (trim(Obj.value) == "") { alert("*Please select the Day for Your Date Of Birth.*");Obj.focus();return false; }
Obj = document.forms[0].dob_month1;
if (trim(Obj.value) == "") { alert("*Please select the Month for Your Date Of Birth.*");Obj.focus();return false; }
Obj = document.forms[0].dob_year1;
if (trim(Obj.value) == "") { alert("*Please select the Year for Your Date Of Birth.*");Obj.focus();return false; }
Obj = document.forms[0].time_call;
if (trim(Obj.value) == "") { alert("*Please select the Best Time to Receive a Call from Our Loan Advisor.*");Obj.focus();return false; }
Obj = document.forms[0].marital_status;
if (trim(Obj.value) == "") { alert("*Please select Your Marital Status.*");Obj.focus();return false; }
if (trim(Obj.value) == "Married" || trim(Obj.value) == "Living with Partner") {
Obj = document.forms[0].title2;
if (trim(Obj.value) == "") { alert("*Please fill in Your Partner's Title.*");Obj.focus();return false; }
Obj = document.forms[0].firstname2;
if (trim(Obj.value) == "") { alert("*Please fill in Your Partner's First Name.*");Obj.focus();return false; }
Obj = document.forms[0].surname2;
if (trim(Obj.value) == "") { alert("*Please fill in Your Partner's Surname.*");Obj.focus();return false; }
Obj = document.forms[0].dob_day12;
if (trim(Obj.value) == "") { alert("*Please select the Day for Your Partner's Date Of Birth.*");Obj.focus();return false; }
Obj = document.forms[0].dob_month12;
if (trim(Obj.value) == "") { alert("*Please select the Month for Your Partner's Date Of Birth.*");Obj.focus();return false; }
Obj = document.forms[0].dob_year12;
if (trim(Obj.value) == "") { alert("*Please select the Year for Your Partner's Date Of Birth.*");Obj.focus();return false; }
Obj = document.forms[0].emp_status2;
if (trim(Obj.value) == "") { alert("*Please fill in Your Partner's Employment Status.*");Obj.focus();return false; }
Obj = document.forms[0].yearly_income2;
if (trim(Obj.value) == "") { alert("*Please fill in Your Partner's Yearly Income.*");Obj.focus();return false; }
}
Obj = document.forms[0].property_value;
if (trim(Obj.value) == "") { alert("*Please fill in the Current Property Value of Your Home.*");Obj.focus();return false; }
Obj = document.forms[0].mortgage_company;
if (trim(Obj.value) == "") { alert("*Please Tell us the Name of Your Mortgage Lender.*");Obj.focus();return false; }
Obj = document.forms[0].mortgage_outstanding;
if (trim(Obj.value) == "") { alert("*Please select the Amount Outstanding on Your Mortgage.*");Obj.focus();return false; }
Obj = document.forms[0].monthly_payments;
if (trim(Obj.value) == "") { alert("*Please select Your Monthly Mortgage Payment.*");Obj.focus();return false; }
Obj = document.forms[0].no_street;
if (trim(Obj.value) == "") { alert("*Please fill in Your House or Flat Number.*");Obj.focus();return false; }
Obj = document.forms[0].postcode;
if (trim(Obj.value) == "") { alert("*Please fill in Your Postcode.*");Obj.focus();return false; }
}
function ShowInput1() {
if (document.forms[0].marital_status.value == "Married" || document.forms[0].marital_status.value == "Living with Partner" ) {
document.getElementById("input1").innerHTML = '<br><table align="center" width="440" border="0" cellpadding="2" cellspacing="1" bgcolor="#e4e5da" class="style8" style="border: #293b43 1px solid"><tr><td><strong>&nbsp;&nbsp;&nbsp;Partner Information</strong></td></tr><tr><td class="style8"><div align="right"><strong>Title</strong></div></td><td><select name="title2" class="field"><option value=""></option><option value="Mr">Mr</option><option value="Mrs">Mrs</option><option value="Miss">Miss</option><option value="Ms">Ms</option></select></td></tr><tr><td><div align="right"><strong>First Name</strong></div></td><td><input type="text" name="firstname2" class="field" style="border:1px solid #5EB3E5" size="20"></td></tr><tr><td><div align="right"><strong>Surname</strong></div></td><td><input type="text" name="surname2" class="field" style="border:1px solid #5EB3E5" size="20"></td></tr><tr><td><div align="right"><strong>Date of Birth (DD/MM/YYYY):</strong></div></td><td> <input name="dob_day12" class="field" size="2" type="text" maxlength="2"> <span class="style8">/</span> <input name="dob_month12" class="field" size="2" maxlength="2" type="text"> <span class="style8">/</span><input name="dob_year12" class="field" size="2" maxlength="4" type="text"> </tr><tr><td><div align="right"><strong>Employment Status</strong></div></td><td><select name="emp_status2" class="field"><option value="Employed FT">Employed FT</option><option value="Employed PT">Employed PT</option><option value="Househusband">Househusband</option><option value="Housewife">Housewife</option><option value="Retired">Retired</option><option value="Self Employed">Self Employed</option><option value="Student">Student</option><option value="Unemployed">Unemployed</option></select></td></tr><tr><td><div align="right"><strong>Yearly Income: <strong></div></td><td><input type="text" name="yearly_income2" class="field" style="border:1px solid #5EB3E5; margin-bottom:5px"></td></tr></table></td></tr></table>'; 
} else {
document.getElementById("input1").innerHTML = '';
}
}
function ReDirect1() {
if (document.forms[0].home_status.value == "Tenant") {
window.location='http://www.loanthrifty.com/unsecured-loan.php'; }
if (document.forms[0].home_status.value == "UK Homeowner with No Mortgage") {
window.location='http://scripts.affiliatefuture.com/AFClick.asp?affiliateID=33397&merchantID=870&programmeID=2807&mediaID=0&tracking=mortgage&url=http://www.westpointmortgages.biz/quotation.html'; }
}
function ReDirect2() {
if (document.forms[0].loan_purpose.value == "Remortgage") {
window.location='http://www.loanthrifty.com/remortgage-loans.php'; }
}

//-->
