function checkFields() {
	var amount=document.getElementById('amount').value;
	var purpose=document.getElementById('purpose').value;
	var homeowner=document.getElementById('homeowner').value;
	
	if (amount==0 || purpose==0 || purpose==1 || homeowner==0) {
		document.getElementById('errormsg').style.visibility="visible";
		//alert('Make sure you select all the fields:\n\n - Loan Amount \n - Loan Purpose \n - Home Owner?');
		return false;
	} else {
		document.getElementById('errormsg').style.visibility="hidden";
	}
	return true;
	
}