
function __Form_input_by_name(name, index) { 

                     try {

							var input_ret;
							var input_collection = document.getElementsByName(name);

							if ( !isNaN(index) ) {
								input_ret = input_collection[index];
							}
							else {
								if ( input_collection.length > 1 ) {
									input_ret = input_collection;
								}
								else {
									input_ret = input_collection[0];
								}
							}

							return input_ret;
                      }
                      catch (e) {
                            return null;
                      }

					}

function validate_form_NewClient_info_sheet() {

	var cur_input;
	var input_messages = new Array();

	try {
		//--------contact_name-------//

if ( cur_input = __Form_input_by_name('contact_name') ) {
							if ( (cur_input.value == '' ) ) { 

alert( 'Please enter your name' );
if ( typeof(cur_input.focus) != 'undefined' ) {
							try { cur_input.focus(); } catch(e) {} 
					       }

if ( typeof(validation_hook_false) == 'function' ) { validation_hook_false(); }

return false;}
}
//--------end contact_name-------//

		//--------contact_email-------//

if ( cur_input = __Form_input_by_name('contact_email') ) {
							if ( (cur_input.value == '' ) ) { 

alert( 'Please enter your email address' );
if ( typeof(cur_input.focus) != 'undefined' ) {
							try { cur_input.focus(); } catch(e) {} 
					       }

if ( typeof(validation_hook_false) == 'function' ) { validation_hook_false(); }

return false;}
}
//--------end contact_email-------//


if ( typeof(validation_hook_true) == 'function' ) { if ( validation_hook_true() ) { return true; } else { if ( typeof(validation_hook_false) == 'function' ) { validation_hook_false(); }

 return false; } }
	}
	catch(e) {
		return true;
	}
	return true;
}

