function check_form() {
var ok = 1;
$('.error_msg').html('');
var input_file0 = document.getElementById("file0").value;
var isRight = checkImgType(input_file0, 0, 1);
if (isRight == 0 && input_file0) {
var div_info = document.getElementById("info");
div_info.innerHTML = "The file is not in the right format! ";
ok = 0;
}
var fields = [['job_opportunity', 'Passions Network Job Opportunity'], ['email', 'Your email'], ['work_experience', 'Work experience'], ['confirm_number', 'Confirmation Number']];
for( var i = 0; i < fields.length ; i ++ ) {
var field = fields[i];
if ( $('[name=' + field[0] + ']').length == 0 ) {
continue;
}
if ( ! $('[name=' + field[0] + ']').val().trim() ) {
if ( $('#error_' + field[0] ).length > 0 ) {
$('#error_' + field[0] ).css('display', 'block');
$('#error_' + field[0] ).html('"' + field[1] + '" is required.');
}
ok = 0;
}
}
if ( !ok ) {
return false;
}
document.getElementById("pleaseWait").value = "Please wait...";
document.getElementById("pleaseWait").disabled = true;
return true;
}
JOBS AVAILABLE FOR BLOGGERS, WRITERS AND MARKETING MANAGERS |
|
BiCupid is seeking experienced part-time bloggers, and marketing managers. If you are interested in joining a growing dating / social network, please send a synopsis of your experience with contact information or your resume.
|
|
|