document.write("<SCRIPT LANGUAGE='JavaScript1.2' SRC='/scripts/check_form_base.js'></SCRIPT>");

function check_contact_form()  {

// need to check last_name name address city state zip email
// name
    if  (!hasValue(document.contact.name, "TEXT" )) {
        if  (!onError(document.contact, document.contact.name, document.contact.name.value, "Please enter your name."))
        {
         document.contact.name.focus();
         return false; 
        }
    }

// email 
    if  (!hasValue(document.contact.email, "TEXT" )) {
        if  (!onError(document.contact, document.contact.email, document.contact.email.value, "Please enter your email address."))
        {
           document.contact.email.focus();
           return false; 
        }
    }

// question 
    if  (!hasValue(document.contact.question, "TEXT" )) {
        if  (!onError(document.contact, document.contact.question, document.contact.question.value, "Please enter your question or comment."))
        {
           document.contact.question.focus();
           return false; 
        }
    }
} // end of function check_contact_form

function check_login_form() {
// username
    if  (!hasValue(document.login.username, "TEXT" )) {
        if  (!onError(document.login, document.login.username, document.login.username.value, "Please enter a username."))
        {
         document.login.username.focus();
         return false; 
        }
    }
	// password
	if  (!hasValue(document.login.password, "TEXT" )) {
		if  (!onError(document.login, document.login.password, document.login.password.value, "Please enter a password."))
		{
		 document.login.password.focus();
		 return false; 
		}
	}
}

function check_users_form() {
// username
    if  (!hasValue(document.save_user.username, "TEXT" )) {
        if  (!onError(document.save_user, document.save_user.username, document.save_user.username.value, "Please enter a username."))
        {
         document.save_user.username.focus();
         return false; 
        }
    }
// password
    if  (!hasValue(document.save_user.password, "TEXT" )) {
        if  (!onError(document.save_user, document.save_user.password, document.save_user.password.value, "Please enter a password."))
        {
         document.save_user.password.focus();
         return false; 
        }
    }
}

function check_consultant_form() {
// title
    if  (!hasValue(document.save_consultant.full_name, "TEXT" )) {
        if  (!onError(document.save_consultant, document.save_consultant.full_name, document.save_consultant.full_name.value, "Please enter a name."))
        {
         document.save_consultant.full_name.focus();
         return false; 
        }
    }
	
// title
    if  (!hasValue(document.save_consultant.email, "TEXT" )) {
        if  (!onError(document.save_consultant, document.save_consultant.email, document.save_consultant.email.value, "Please enter an email address."))
        {
         document.save_consultant.email.focus();
         return false; 
        }
    }
}


function check_industry_form() {
// title
    if  (!hasValue(document.save_industry.name, "TEXT" )) {
        if  (!onError(document.save_industry, document.save_industry.name, document.save_industry.name.value, "Please enter a name."))
        {
         document.save_industry.name.focus();
         return false; 
        }
    }
}


function check_jobs_form() {
// title
    if  (!hasValue(document.save_jobs.title, "TEXT" )) {
        if  (!onError(document.save_jobs, document.save_jobs.title, document.save_jobs.title.value, "Please enter a title."))
        {
         document.save_jobs.title.focus();
         return false; 
        }
    }
}

function check_application_form() {
// name
    if  (!hasValue(document.submit_application.my_name, "TEXT" )) {
        if  (!onError(document.submit_application, document.submit_application.my_name, document.submit_application.my_name.value, "Please enter a name."))
        {
         document.submit_application.my_name.focus();
         return false; 
        }
    }
	
// email
    if  (!hasValue(document.submit_application.my_email, "TEXT" )) {
        if  (!onError(document.submit_application, document.submit_application.my_email, document.submit_application.my_email.value, "Please enter an email."))
        {
         document.submit_application.my_email.focus();
         return false; 
        }
    }

// verify
    if  (!hasValue(document.submit_application.verify, "TEXT" ) || document.submit_application.verify.value != 'E4U6T') {
        if  (!onError(document.submit_application, document.submit_application.verify, document.submit_application.verify.value, "Please enter correct verification."))
        {
         document.submit_application.verify.focus();
         return false; 
        }
    }
}

function check_mail_list_form() {
// email
    if  (!hasValue(document.subscrbe_mailing_list.email, "TEXT" )) {
        if  (!onError(document.subscrbe_mailing_list, document.subscrbe_mailing_list.email, document.subscrbe_mailing_list.email.value, "Please enter an email."))
        {
         document.subscrbe_mailing_list.email.focus();
         return false; 
        }
    }

// verify
    if  (!hasValue(document.subscrbe_mailing_list.verify, "TEXT" ) || document.subscrbe_mailing_list.verify.value != 'E4U6T') {
        if  (!onError(document.subscrbe_mailing_list, document.subscrbe_mailing_list.verify, document.subscrbe_mailing_list.verify.value, "Please enter correct verification."))
        {
         document.subscrbe_mailing_list.verify.focus();
         return false; 
        }
    }
}

function check_open_position_form(){
//verify
	if  (!hasValue(document.open_position.verify, "TEXT" ) || document.open_position.verify.value != 'E4U6T') {
        if  (!onError(document.open_position, document.open_position.verify, document.open_position.verify.value, "Please enter correct verification code."))
        {
         document.open_position.verify.focus();
         return false; 
        }
    }
	
	
}