function validateForm(form1) { //This is the name of the function
   
if (form1.contactFirst.value == "") { //This checks to make sure the field is not empty
   alert("First Name is required to process this form."); //Informs user of empty field
   form1.contactFirst.focus( ); //This focuses the cursor on the empty field
   return false; //This prevents the form from being submitted
   }
if (form1.email.value == "") { //This checks to make sure the field is not empty
   alert("Email is required to process this form."); //Informs user of empty field
   form1.email.focus( ); //This focuses the cursor on the empty field
   return false; //This prevents the form from being submitted
   } 
if (form1.captcha.value == "") { //This checks to make sure the field is not empty
   alert("Captcha is required to process this form."); //Informs user of empty field
   form1.captcha.focus( ); //This focuses the cursor on the empty field
   return false; //This prevents the form from being submitted
   }   
}
function validateContactUs(form1) { //This is the name of the function
   
if (form1.fname.value == "") { //This checks to make sure the field is not empty
   alert("First Name is required to process this form."); //Informs user of empty field
   form1.fname.focus( ); //This focuses the cursor on the empty field
   return false; //This prevents the form from being submitted
   }
if (form1.Email.value == "") { //This checks to make sure the field is not empty
   alert("Email is required to process this form."); //Informs user of empty field
   form1.Email.focus( ); //This focuses the cursor on the empty field
   return false; //This prevents the form from being submitted
   }   
if (form1.captcha.value == "") { //This checks to make sure the field is not empty
   alert("Captcha is required to process this form."); //Informs user of empty field
   form1.captcha.focus( ); //This focuses the cursor on the empty field
   return false; //This prevents the form from being submitted
   }   
}
function validateContactLive(form1) { //This is the name of the function
   
if (form1.fname.value == "") { //This checks to make sure the field is not empty
   alert("First Name is required to process this form."); //Informs user of empty field
   form1.fname.focus( ); //This focuses the cursor on the empty field
   return false; //This prevents the form from being submitted
   }
if (form1.Email.value == "") { //This checks to make sure the field is not empty
   alert("Email is required to process this form."); //Informs user of empty field
   form1.Email.focus( ); //This focuses the cursor on the empty field
   return false; //This prevents the form from being submitted
   }   
if (form1.captcha.value == "") { //This checks to make sure the field is not empty
   alert("Captcha is required to process this form."); //Informs user of empty field
   form1.captcha.focus( ); //This focuses the cursor on the empty field
   return false; //This prevents the form from being submitted
   }   
}

function HidePic2()
{
	document.getElementById('tooltipID').style.visibility = "visible";
	var offleft = document.getElementById('right').offsetLeft;
	var browserName=navigator.appName; 
	//alert("hi"+browserName);
	if (browserName=="Microsoft Internet Explorer")
	{ 
		//var offleft = document.getElementById('content').offsetLeft;
		var leftlen = offleft-250;
	}
	else 
	{ 
		var leftlen = offleft-250;
	}
	document.getElementById("tooltipID").style.left=leftlen+"px";
}
function HidePic3()
{
	document.getElementById("tooltipID").style.visibility = "hidden";	
}
function validateForm_apply(form1) { //This is the name of the function
   
if (form1.contactFirst.value == "") { //This checks to make sure the field is not empty
   alert("First Name is required to process this form."); //Informs user of empty field
   form1.contactFirst.focus( ); //This focuses the cursor on the empty field
   return false; //This prevents the form from being submitted
   }
if (form1.email.value == "") { //This checks to make sure the field is not empty
   alert("Email is required to process this form."); //Informs user of empty field
   form1.email.focus( ); //This focuses the cursor on the empty field
   return false; //This prevents the form from being submitted
   }   
}
function validateForm_applynow(form1) { //This is the name of the function
   
if (form1.ChurchName.value == "") { //This checks to make sure the field is not empty
   alert("Church Name is required to process this form."); //Informs user of empty field
   form1.ChurchName.focus( ); //This focuses the cursor on the empty field
   return false; //This prevents the form from being submitted
   }
if (form1.ContactPerson.value == "") { //This checks to make sure the field is not empty
   alert("Name of person to Contact is required to process this form."); //Informs user of empty field
   form1.ContactPerson.focus( ); //This focuses the cursor on the empty field
   return false; //This prevents the form from being submitted
   }
if (form1.ChurchFounded.value == "") { //This checks to make sure the field is not empty
   alert("Year of church founded is required to process this form."); //Informs user of empty field
   form1.ChurchFounded.focus( ); //This focuses the cursor on the empty field
   return false; //This prevents the form from being submitted
   }
if (form1.LastYear.value == "") { //This checks to make sure the field is not empty
   alert("Gross Income of last year is required to process this form."); //Informs user of empty field
   form1.LastYear.focus( ); //This focuses the cursor on the empty field
   return false; //This prevents the form from being submitted
   }
if (form1.Last2Years.value == "") { //This checks to make sure the field is not empty
   alert("Gross Income of last 2 years is required to process this form."); //Informs user of empty field
   form1.Last2Years.focus( ); //This focuses the cursor on the empty field
   return false; //This prevents the form from being submitted
   }
if (form1.Last3Years.value == "") { //This checks to make sure the field is not empty
   alert("Gross Income of last 3 years is required to process this form."); //Informs user of empty field
   form1.Last3Years.focus( ); //This focuses the cursor on the empty field
   return false; //This prevents the form from being submitted
   }
if (form1.LoanAmount.value == "") { //This checks to make sure the field is not empty
   alert("Loan Amount is required to process this form."); //Informs user of empty field
   form1.LoanAmount.focus( ); //This focuses the cursor on the empty field
   return false; //This prevents the form from being submitted
   }
if (form1.email.value == "") { //This checks to make sure the field is not empty
   alert("Email is required to process this form."); //Informs user of empty field
   form1.email.focus( ); //This focuses the cursor on the empty field
   return false; //This prevents the form from being submitted
   }
}


