<!--

var lbHomeowner=false;
var lbTenant=false;
var lbSecured=false;
var lbUnsecured=false;
var lbGoodCredit=false;
var lbBadCredit=false;

var lsFullURL=window.location.href;
var lsDomain=lsFullURL.replace("http://","");
lsDomain=lsDomain.replace("www.","");
lsDomain=lsDomain.split("/")[0];

function Homeowner()
{
	lbHomeowner=true;
	Stage2();
}	

function Tenant()
{
	lbTenant=true;
	Stage2();
}	

function GoodCredit()
{
	lbGoodCredit=true;
	Stage3();
}	

function BadCredit()
{
	lbBadCredit=true;
	Stage3();
}	

function Secured()
{
	lbSecured=true;
	Stage4();
}

function Unsecured()
{
	lbUnsecured=true;
	Stage4();
}

function Stage1()
{
	pAppPrompt.innerHTML="<b>Please Choose:</b>";
	spStage1.className="spStageHL";
//	spStage2.className="spStage";
//	spStage3.className="spStage";
	spStage4.className="spStage";

	divStage1.style.display="inline";
	divStage2.style.display="none";
	divStage3.style.display="none";
	divStage4.style.display="none";
	
	lbHomeowner=false;
	lbTenant=false;
	lbSecured=false;
	lbUnsecured=false;
	lbGoodCredit=false;
	lbBadCredit=false;
}

function Stage2()
{
	spStage1.className="spStage";
//	spStage2.className="spStageHL";
	divStage1.style.display="none";
//	divStage2.style.display="inline";
	Stage4();
}

function Stage3()
{
	spStage2.className="spStage";
	spStage3.className="spStageHL";
	divStage2.style.display="none";
	divStage3.style.display="inline";
}

function Stage4()
{
	//produce options
	
	if (lbHomeowner)
	{
		pAppPrompt.innerHTML="<b>Homeowner Loan Application Form:</b>";
		pResults.innerHTML='<br/><img src="http://affil'+'iate.marketrixuk.com/scripts/sb.php?a_aid=112&amp;a_bid=b1e0807f" width="1" height="1" border="0" alt="loans application"><iframe src="http://tenantloansuk.com/index_iframe.php?a_aid=ff1ec7ab&data1=&data2=&data3=&thankyou=" marginwidth="1" marginheight="1" name="Application" frameborder="" width="425" height="800"><a target="_blank" href="http://www.tenantloansuk.com?a_aid=ff1ec7ab">Click Here To Apply Now</a></iframe>';

/*
		if (lbGoodCredit)
		{
			if (lbUnsecured)
			{
				//capital one 8
				
				//funding network 20
			}
			else
			{
				//capital one 50

				//loans.co.uk 55
				
				//funding network 20
				
			}
		}
*/

	}
	else
	{
		pAppPrompt.innerHTML="<b>Tenant Loan Application Form:</b>";
		pResults.innerHTML='<br/><img src="http://affil'+'iate.marketrixuk.com/scripts/sb.php?a_aid=112&amp;a_bid=b1e0807f" width="1" height="1" border="0" alt="loans application"><iframe src="http://tenantloansuk.com/index_iframe.php?a_aid=ff1ec7ab&data1=&data2=&data3=&thankyou=" marginwidth="1" marginheight="1" name="Application" frameborder="" width="425" height="800"><a target="_blank" href="http://www.tenantloansuk.com?a_aid=ff1ec7ab">Click Here To Apply Now</a></iframe>';
	}
	spStage1.className="spStage";
//	spStage2.className="spStage";
//	spStage3.className="spStage";
	spStage4.className="spStageHL";
	divStage1.style.display="none";
	divStage2.style.display="none";
	divStage3.style.display="none";
	divStage4.style.display="inline";
}

function StartAgain()
{
	Stage1();
}

// -->
