/* ---------------------------------------------------- */
/* JQuery												*/
/* ---------------------------------------------------- */
$jQuery(document).ready(function() 
{
 	var container = $jQuery('div.form_error_container');
		// validate the form when it is submitted
		$jQuery("#application").validate({
			focusInvalid: false,
			errorContainer: container,
			errorLabelContainer: $jQuery("ol", container),
			wrapper: 'li',
			meta: "validate"
	});


});


/* Simple field checking form */
function checkForm ( form ) {
	
	/* File Upload check */
	if (form.cvfile.value == "") {
		alert( "Please select your CV to upload." );
		form.cvfile.focus();
		return false ;
	}
	
	return true ;
}