<!-- 
document.write('<table border="1" style="width:100%;background-color:#E5E3DF" bordercolor="#000000"><tr><td style="padding:10px">');
document.write('<form name="frmCommercialLoans" method="POST" action="eform-commercial.php">');
document.write('<table border="0" style="width:100%;background-color:#E5E3DF">');
document.write('<tr><td style="width:40%"></td><td style="width:8px" rowspan="17"></td><td style="width:60%"></td></tr>');
document.write('<tr><td class="lAF">*Business Name</td><td class="lAF"><input class="inAF" type="text" name="businessname" maxlength="40"/></td></tr>');
document.write('<tr><td class="lAF">*Business Type</td><td class="lAF">');
document.write('<select class="inAF" name="businesstype"><option value="" selected="selected">Please Select Answer</option><option value="Private Limited Company">Private Limited Company</option>');
document.write('<option value="Public Limited Company">Public Limited Company</option><option value="Limited Liability Partnership">Limited Liability Partnership</option>');
document.write('<option value="Sole Trader">Sole Trader</option><option value="Other">Other</option></select></td></tr>');
document.write('<tr><td class="lAF">*UK Based Company</td><td class="lAF"><select class="inAF" name="ukbased"><option value="" selected="selected">Yes/No</option>');
document.write('<option value="Yes">Yes</option><option value="No">No</option></select></td></tr>');
document.write('<tr><td class="lAF">*Loan Amount</td><td class="lAF"><input class="inAF" type="text" name="loanamount" maxlength="9" size="9"/>&pound;</td></tr>');
document.write('<tr><td class="lAF">*Loan Purpose</td><td class="lAF"><select class="inAF" name="loanpurpose"><option value="" selected="selected">Please Select</option><option value="Working Capital">Working Capital</option><option value="Equipment">Equipment</option><option value="Start-up Loan">Start-up Loan</option><option value="Advertising">Advertising</option><option value="Expansion">Expansion</option><option value="Refinance">Refinance</option><option value="Franchise Funding">Franchise Funding</option><option value="Commercial Mortgage">Commercial Mortgage</option><option value="Bridging Loan">Bridging Loan</option><option value="Other">Other</option></select></td></tr>');
document.write('<tr><td class="lAF">*Contact Name</td><td class="lAF"><input class="inAF" type="text" name="contactname" maxlength="40"/></td></tr>');
document.write('<tr><td class="lAF">*E-mail</td><td class="lAF"><input class="inAF" type="text" name="email" maxlength="50"/></td></tr>');
document.write('<tr><td class="lAF">*1st Line of Address</td><td class="lAF"><input class="inAF" type="text" name="addr_line1" maxlength="40"/></td></tr>');
document.write('<tr><td class="lAF">*PostCode</td><td class="lAF"><input class="inAF" type="text" name="postcode"  maxlength="12"/></td></tr>');
document.write('<tr><td class="lAF">Contact Phone</td><td class="lAF"><input class="inAF" type="text" name="contacttel" maxlength="30"/> * One </td></tr>');
document.write('<tr><td class="lAF">Mobile Phone</td><td class="lAF"><input class="inAF" type="text" name="mobiletel" maxlength="30"/> * Req.</td></tr>');
document.write('<tr><td class="lAF">Property Value</td><td class="lAF"><input class="inAF" type="text" name="propertyvalue" maxlength="9" size="9"/>&pound;</td></tr>');
document.write('<tr><td class="lAF">Current Mortgage</td><td class="lAF"><input class="inAF" type="text" name="currentmortgage" maxlength="9" size="9"/>&pound;</td></tr>');
document.write('<tr><td class="lAF">Best Time to Call</td><td class="lAF"><select class="inAF" name="timetocall"><option value="Any" selected="selected">Please select</option>');
document.write('<option value="Any">Any</option><option value="Morning">Morning</option><option value="Afternoon">Afternoon</option><option value="Evening">Evening</option></select></td></tr>');


document.write('<tr><td class="lAF">I have read &amp; I accept the <a class="aAppform" href="#" onclick="window.open(\'http://www.help-finance.co.uk/common/terms-loan.html\',\'_blank\',\'width=540,top=0,left=0,resizable,scrollbars,height=210\'); return false;"><b><u>Terms/DPA ');
document.write('Statement</u></b></a></td><td><select class="inAF" name="readterms"><option value="Y" selected="selected">Yes</option><option value="N">No</option></select></td></tr>');


document.write('<tr style="height:5px"><td colspan="4"></td></tr>');
document.write('<tr><td colspan="4" style="text-align:center"><input type="button" class="inButton" value="Submit Commercial Loan Application" name="Submit" onClick="ValidateForm();"/>');
document.write('</td></tr> ');
document.write('<tr style="height:10px"><td colspan="4"></td></tr></table></form>');
document.write('</td></tr></table>');

function ValidateForm() {
	with (document.frmCommercialLoans)
	{
		if (businessname.value == "") {
			alert("Please enter your Business Name.");
			businessname.focus();
			return false;
		}
		if (businesstype.selectedIndex == 0) {
			alert("Please select Business Type.");
			businesstype.focus();
			return false;
		}

		if (ukbased.selectedIndex == 0) {
			alert("Please select UK Based Company Y/N.");
			ukbased.focus();
			return false;
		}
		if (ukbased.selectedIndex == 2) {
			alert("Applications not accepted from Non UK Based companies.");
			ukbased.focus();
			return false;
		}
		if (loanamount.value == "") {
			alert("Please enter Loan Amount.");
			loanamount.focus();
			return false;
		}
		if (loanpurpose.selectedIndex == 0) {
			alert("Please select Loan Purpose.");
			loanpurpose.focus();
			return false;
		}
		if (contactname.value == "") {
			alert("Please enter a Contact Name.");
			contactname.focus();
			return false;
		}
		if (email.value.indexOf("@") == "-1" || email.value.indexOf(".") == "-1"){

			alert("Please enter your email address - '@' or '.' missing.");
			email.focus();
			return false; 
		}

		//check that 1st line of address and postcode entered	
		if (addr_line1.value=="") {
		 	alert("Please enter the first line of your address");
			addr_line1.focus();
			return false;
		}
		if (postcode.value=="") {
		 	alert("Please enter your postcode");
			postcode.focus();
			return false;
		}
				   
		if (contacttel.value=="" && mobiletel.value=="") {
			alert("Please enter a Telephone Number.");
			contacttel.focus();
			return false;
		}

		if (readterms.value=="No") {
			alert("Please read our terms and data protection statement and select 'Yes' if you agree to them.");
			readterms.focus();
			return false;
		}

		
		document.frmCommercialLoans.submit();
	}
}

//-->
