function golargeimage(oog,eeg,ig,imagealt)
{
var winpops=window.open("goimage.php?imagealt=" + imagealt + "&image=" + oog + "&width=" + eeg + "&height=" +ig,"","resizable=1,width=100,height=100")

return false;
}

function validateform(checkform)
{
	
	if (checkform.homeowner.selectedIndex == 0)
	{
		alert("Please choose a HOME OWNER option");
		checkform.homeowner.focus();
		return (false);
	}



	if (checkform.loanamount.value == "")
	{
		alert("Please enter a valid LOAN AMOUNT");
		checkform.loanamount.focus();
		return (false);
	}


	
	if (checkform.term.selectedIndex == 0)
	{
		alert("Please choose a TERM option");
		checkform.term.focus();
		return (false);
	}


	
	if (checkform.loanmortgage.selectedIndex == 0)
	{
		alert("Please choose if LOAN or MORTGAGE");
		checkform.loanmortgage.focus();
		return (false);
	}


	
	if (checkform.type.selectedIndex == 0)
	{
		alert("Please choose a TYPE");
		checkform.type.focus();
		return (false);
	}


	
	if (checkform.purpose.selectedIndex == 0)
	{
		alert("Please choose a PURPOSE");
		checkform.purpose.focus();
		return (false);
	}


	
	if (checkform.title.selectedIndex == 0)
	{
		alert("Please choose a TITLE");
		checkform.title.focus();
		return (false);
	}



	if (checkform.firstname.value == "")
	{
		alert("Please enter a valid FIRST NAME");
		checkform.firstname.focus();
		return (false);
	}



	if (checkform.lastname.value == "")
	{
		alert("Please enter a valid LAST NAME");
		checkform.lastname.focus();
		return (false);
	}



	if (checkform.dob.value == "")
	{
		alert("Please enter a valid DATE OF BIRTH");
		checkform.dob.focus();
		return (false);
	}



	if (checkform.hometel.value == "")
	{
		alert("Please enter a valid HOME TEL");
		checkform.hometel.focus();
		return (false);
	}



	if (checkform.email.value == "")
	{
		alert("Please enter a valid EMAIL");
		checkform.email.focus();
		return (false);
	}



	if (checkform.address.value == "")
	{
		alert("Please enter a valid ADDRESS");
		checkform.address.focus();
		return (false);
	}




	if (checkform.postcode.value == "")
	{
		alert("Please enter a valid POSTCODE");
		checkform.postcode.focus();
		return (false);
	}



	if (checkform.employment.value == "")
	{
		alert("Please enter a valid EMPLOYMENT");
		checkform.employment.focus();
		return (false);
	}

		
	if (checkform.adversecredit.selectedIndex == 0)
	{
		alert("Please choose an ADVERSE CREDIT option");
		checkform.adversecredit.focus();
		return (false);
	}





	if (checkform.creditsearch.selectedIndex == 0)
	{
		alert("Is it OK to carry out a credit search");
		checkform.creditsearch.focus();
		return (false);
	}



	return (true);
} 


