/*
 ==============================================================================
 | FUNCTIONS.JS
 | Javascript (JS) for Voyager Credit Services
 | ----------------------------------------------------------------------------
 | Author:			FocalBase Internet Solutions
 | Creation Date:	06.07.2005
 | Last Updated:	06.09.2005
 | ----------------------------------------------------------------------------
 | Copyright (c) 2005  Focalbase Internet Solutions.
 | All rights reserved.
 | ----------------------------------------------------------------------------
 | Version: v1
 | $Id:
 | ----------------------------------------------------------------------------
 | Notes: Javascript document for project.
 ==============================================================================
*/



/* 
This code is Copyright (c) 1996 Nick Heinle and Athenia Associates, 
all rights reserved. In order to receive the right to license this 
code for use on your site the original code must be copied from the
Web site webreference.com/javascript/. License is granted to user to 
reuse this code on their own Web site if and only if this entire copyright
notice is included. Code written by Nick Heinle of webreference.com.
*/

/* rate quote form */

function quoteCheck() 
{
	 
	if (document.quoteform.Contact_Name.value == "") 
	{
	alert("Please Enter Your Name.");
	return false;
	}

	if (document.quoteform.Contact_Address.value == "") 
	{
	alert("Please Enter Your Address.");
	return false;
	}

	if (document.quoteform.Contact_City.value == "") 
	{
	alert("Please Enter Your City.");
	return false;
	}

	if (document.quoteform.Contact_State.value == "") 
	{
	alert("Please Enter Your State.");
	return false;
	}

	if (document.quoteform.Contact_Zip.value == "") 
	{
	alert("Please Enter Your Zip.");
	return false;
	}

	if (document.quoteform.Contact_Email.value.indexOf("@") == -1 ||
	 document.quoteform.Contact_Email.value == "") 
	{
	alert("Please Include a Proper E-mail Address.");
	return false;             
	}

	if (document.quoteform.Contact_Home_Phone.value == "")
	{
	alert("Please Enter Your Phone Number.");
	return false;
	}	 

}


/* contact form */

function contactCheck() 
{
	 
	if (document.contactform.First_Name.value == "") 
	{
	alert("Please Enter Your First Name.");
	return false;
	}

	 if (document.contactform.Questions.value == "") 
	{
	alert("Please Enter Your Questions or Comments.");
	return false;
	}

}


/* application form */

function applyCheck() 
{
	
	/* applicant */

	if (document.applyform.Applicant_First_Name.value == "") 
	{
	alert("Please Enter Applicant First Name.");
	return false;
	}

	if (document.applyform.Applicant_Last_Name.value == "") 
	{
	alert("Please Enter Applicant Last Name.");
	return false;
	}

	if (document.applyform.Applicant_Home_Phone.value == "") 
	{
	alert("Please Enter Applicant Home Phone.");
	return false;
	}

	if (document.applyform.Applicant_Email.value.indexOf("@") == -1 ||
		document.applyform.Applicant_Email.value == "") 
	 {
	 alert("Please Include a Proper Applicant Email Address.");
	 return false;             
	 }

	if (document.applyform.Applicant_Address.value == "") 
	{
	alert("Please Enter Applicant Address.");
	return false;
	}

	if (document.applyform.Applicant_City.value == "") 
	{
	alert("Please Enter Applicant City.");
	return false;
	}

	if (document.applyform.Applicant_State.value == "") 
	{
	alert("Please Enter Applicant State.");
	return false;
	}

	if (document.applyform.Applicant_Zip.value == "") 
	{
	alert("Please Enter Applicant Zip.");
	return false;
	}

	/* co-applicant */

	if (document.applyform.CoApplicant_First_Name.value == "") 
	{
	alert("Please Enter Co-Applicant First Name.");
	return false;
	}

	if (document.applyform.CoApplicant_Last_Name.value == "") 
	{
	alert("Please Enter Co-Applicant Last Name.");
	return false;
	}

	if (document.applyform.CoApplicant_Home_Phone.value == "") 
	{
	alert("Please Enter Co-Applicant Home Phone.");
	return false;
	}

	if (document.applyform.CoApplicant_Email.value.indexOf("@") == -1 ||
		document.applyform.CoApplicant_Email.value == "") 
	 {
	 alert("Please Include a Proper Co-Applicant Email Address.");
	 return false;             
	 }

	if (document.applyform.CoApplicant_Address.value == "") 
	{
	alert("Please Enter Co-Applicant Address.");
	return false;
	}

	if (document.applyform.CoApplicant_City.value == "") 
	{
	alert("Please Enter Co-Applicant City.");
	return false;
	}

	if (document.applyform.CoApplicant_State.value == "") 
	{
	alert("Please Enter Co-Applicant State.");
	return false;
	}

	if (document.applyform.CoApplicant_Zip.value == "") 
	{
	alert("Please Enter Co-Applicant Zip.");
	return false;
	}

}