 function process()
{
	var input = new Array(
		['title', 'Please select a salutation', 'STRING(2)'],
		['firstname', 'Please enter your first name', 'STRING(3)'],
		['lastname', 'Please enter your last name', 'STRING(3)'],
		['company', 'Please enter your company name', 'STRING(3)'],
		['job', 'Please enter your title', 'STRING(3)'],
		['company_type', 'Please select your company type name', 'STRING(2)'],
		['country', 'Please select your country', 'STRING(2)'],
		['state', 'Please select your state', 'STRING(2)'],
		['phone', 'Please enter your phone number', 'STRING(3)'],
		['email1', 'Please enter your email', 'EMAIL'],
		['email1', 'Please re-enter your email', 'EMAIL'],
		['email1', 'Please ensure both emails are the same', 'MATCH(email2)'],
		['password1', 'Please choose a password', 'STRING(3)'],
		['password2', 'Please re-enter the password', 'STRING(3)'],
		['password2', 'Please ensure both passwords are the same', 'MATCH(password2)'],
		['referral', 'Please select how did you hear about Archpel', 'STRING(2)']
	);

	validate(document.form, input);
}

 function on_change_title() {
    if (document.form.job.value=='Other') {
       document.form.job_other.style.display='block';
    } else {
       document.form.job_other.style.display='none';
    }
//    document.form.job_other.style.width='20px';
 }
 function on_change_company_type() {
    if (document.form.company_type.value=='Other') {
       document.form.company_type_other.style.display='block';
    } else {
       document.form.company_type_other.style.display='none';
    }
//    document.form.company_type_other.style.width='20px';
 }
