DIRECTOR - TECHNICAL SERVICES - PAKISTAN INSTITUTE OF ACCOUNTANTS (2023)

DIRECTOR - TECHNICAL SERVICES - PAKISTAN INSTITUTE OF ACCOUNTANTS (1)

CA Pakistan Career Portal

DIRECTOR - TECHNICAL SERVICES

Local:Headquarters (Carachi)

Data :07.04.2023

Category

TECHNICAL SERVICES

order type

Permanent

employment level

THE DIRECTOR


professional responsibility

  • Plan, review, adopt and report accounting, auditing and sustainability reporting standards.
  • Support and advise members and companies on technical questions and emerging problems.
  • Act as secretary of the Accounting Standards Board
  • Lead and assist institute technical and other standard-setting committees.
  • Providing information on technical matters referred to the Institute.
  • Overseeing the development of local standards and technical publications, including Islamic Finance Standards, in coordination with local and international standard setters.
  • Represent ICAP and work with regulators such as SECP, SBP, FBR.
  • Coordination and cooperation with national and international standard setters, IFAC, member organizations and regional organizations on technical issues.
  • Facilitate the creation of financial and corporate invoices.
  • Answering questions about the implementation of standards in coordination with the chairs of the relevant bodies and committees.
(Video) Amazon Se lakho kamanay ka dawa kernay waly Hafiz Ahmed ky office main iqrar ul hassan ka chappa!

job requirements

The ideal candidate should be a Chartered Accountant with at least 10 years of experience in a Chartered Accountant Firm with a sound knowledge of IFRS/ISA, tax and corporate law. In addition, preference will be given to applicants with work experience in a practical corporate, research and/or technical role.


Skills Required

Attachment

Download

You must log in to apply for this job.

get connected Record

Thanks

Job successfully applied

my dashboard Close

(Video) How to become an Accountant in 30 Days and make Money? Chartered Accountant vs Accountant Explained

complete my profile

Close Edit

Press Enter to search

Suggestions:

Site search results

ice creamon the pages

about John Smith

T

ice creamRelated topics

through pages

(Video) Tell Me About Yourself | Best Answer (from former CEO)
ice creamMusic

through mixed sides

ice creamno facebook

on Facebook

we tweetice cream

via twitter

activated circlesice cream

from googleplus

ยฉ CopyrightCA Pakistan

'; var tableHeader = ''; var tableBody = ''; for (var i = 0; i < list.length; i++) { //alert(JSON.stringify(list[i])); CorpoTabela = CorpoTabela + ''+''+''+''+''; if (list[i].is_default == '0') { tableBody = tableBody + ''; } Else { document.getElementById("default_resume").value = list[i].id; CorpoTabela = CorpoTabela + ''; } /*+ ''*/ /*tableBody = tableBody + '';*/ tablebody = tablebody + ''; } var end of table = '
#Continueletter of introductionabstract titleCover letter titleStandardEdit Shutdown
' + (i + 1) + ''+'Continue'+'letter of introduction' + lista[i].resume name + '' + lista[i].cover_letter + '

DIRECTOR - TECHNICAL SERVICES - PAKISTAN INSTITUTE OF ACCOUNTANTS (4)DIRECTOR - TECHNICAL SERVICES - PAKISTAN INSTITUTE OF ACCOUNTANTS (5)


DIRECTOR - TECHNICAL SERVICES - PAKISTAN INSTITUTE OF ACCOUNTANTS (6)DIRECTOR - TECHNICAL SERVICES - PAKISTAN INSTITUTE OF ACCOUNTANTS (7)


'; //alert(html+tableHeader+tableBody+tableEnd); document.getElementById("myDocumentsList").innerHTML = tabletop + tableHeader + tableBody + tableEnd; } } }); } else if (currentTab == '3') { //EXPERIรŠNCIA DE TRABALHO var lista = []; var profileForm = document.forms['regForm']; perfilForm.reset(); profileForm.elements['exp_from'].max = aktuellesDatum; profileForm.elements['exp_to'].max = aktuellesDatum; $.ajax({ type: 'GET', url: getRouteUrl('profile-professional-exp'), data: '', cache: false, contentType: false, processData: false, dataType: 'JSON', success: function (data) { //alert(JSON.stringify(data)); if (data.data.length > 0) { list = data.data; expList = list; //user=data[0]; //getState( user.country,user.state); // getCity(user.state,user.city); /**/ var tabletop = '

List of work experience

'; var tableHeader = ''; var tableBody = ''; for (var i = 0; i < list.length; i++) { //alert(list[i].countryName); var nome da posiรงรฃo = ''; var nome do estado = ""; var NomeCidade = ""; var countryName = ""; for (var j = 0; j < job_type_list.length; j++) { if (job_type_list[j].id == list[i].position_type) list[i].positionName = job_type_list[j].name; } CorpoTabela = CorpoTabela + ''+''+''+''+''+''+''+''; if (list[i].exp_to != '' && list[i].exp_to != null) tableBody = tableBody + ''; else BodyTable = BodyTable + ''; /*tableBody = tableBody + ''*/ tablebody = tablebody + '' //document.getElementById('editExp['+i+']').onclick = editExp(list[i]); cityName = ''; country name = ''; } var end of table = '
#titlePursueDesignationorder typeLandCityVonForEdit Shutdown
' + (i + 1) + '' + lista[i].job_title + '' + list[i].companyname + '' + liste[i].position + '' + lista[i].positionsname + '' + Liste[i].Landesname + '' + list[i].city_name + '' + lista[i].exp_from + '' + lista[i].exp_to + 'WAS

DIRECTOR - TECHNICAL SERVICES - PAKISTAN INSTITUTE OF ACCOUNTANTS (8)DIRECTOR - TECHNICAL SERVICES - PAKISTAN INSTITUTE OF ACCOUNTANTS (9)


DIRECTOR - TECHNICAL SERVICES - PAKISTAN INSTITUTE OF ACCOUNTANTS (10)DIRECTOR - TECHNICAL SERVICES - PAKISTAN INSTITUTE OF ACCOUNTANTS (11)


(Video) FUTURE OF ACCOUNTANCY & FINANCE: THE DIGITAL REVOLUTION
'; //alert(html+tableHeader+tableBody+tableEnd); document.getElementById("workExperenceList").innerHTML = tabletop + tableHeader + tableBody + tableEnd; } } }); } else if (currentTab == '2') { $.ajax({ type: 'GET', url: 'https://career.icap.org.pk/newportalfinal/profiledata', data: '', cache: false, contentType: false, processData: false, dataType: 'JSON', success: function (data) { if (data.found == '1') { user = data.data; // alert(JSON.stringify(user )); //populateYearList('') getState(user.country, user.state, 'state'); getCity(user.state, user.city, 'city'); var profileForm = document.forms['regForm' ]; profileForm.reset(); var src = "https://career.icap.org.pk/newportalfinal/application/public/"; //var src = "https://career.icap.org.pk/ newportalfinal/"; document.getElementById('imageSrc').src = src + user.profile_photo; //profileForm.elements['imageSrc'].src= user.profile_photo; profileForm.elements['firstName'].value = user .first_name; profileForm.elements['middle_name'].value = user.middle_name; profileForm.elements['lastName'].value = user.last_name; profileForm.elements['primaryContact'].value = user.primaryContact; profileForm. elementos['mobileNumber'].value = user.mobileNumber; profileForm.elements['candidateEmail'].value = user.candidateEmail; profileForm.elements['Adresse'].value = user.location; profileForm.elements['cnic'].value = user.cnic; profileForm.elements['Benutzer_Land'].Wert = Benutzer.Land; profileForm.elements['state'].value = user.state; profileForm.elements['city'].value = user.city; profileForm.elements['dob'].value = user.dob; profileForm.elements['postalCode'].value = user.postalCode; profileForm.elements['familyWorkingAt'].checked = (user.familyWorkingAt == '1') ? verdadeiro falso; profileForm.elements['vollstรคndiger_Name'].value = user.vollstรคndiger_Name; profileForm.elements['location_family'].value = user.location_family; profileForm.elements['Beziehung_Benutzer'].Wert = Benutzer.Beziehung; if (user.familyWorkingAt == '1') { document.getElementById('familyWorkingAtShow').style.display = 'flex'; } profileForm.elements['condiรงรตes'].checked = (user.conditions == '1') ? verdadeiro falso; profileForm.elements['currUnEmployed'].checked = (user.currUnEmployed == '1') ? verdadeiro falso; profileForm.elements['publish'].checked = (user.publish == '1') ? verdadeiro falso; } } }); } else if (currentTab == '4') { // EDUCAร‡รƒO var lista = []; var profileForm = document.forms['regForm']; perfilForm.reset(); profileForm.elements['edu_from'].max = aktuellesDatum; profileForm.elements['edu_to'].max = aktuelles Datum; /* getState(usuรกrio.paรญs,usuรกrio.estado); getCity(user.state,user.city);*/ populateEducationDegreeDropDown(); $.ajax({ type: 'GET', url: getRouteUrl('profile-professional-edu'), data: '', cache: false, contentType: false, processData: false, dataType: 'JSON', success: function (data) { //alert(JSON.stringify(data)); if (data.data.length > 0) { list = data.data; eduList = list; //user=data[0]; //getState( user.country,user.state); // getCity(user.state,user.city); /**/ var tabletop = '

education list

'; var tableHeader = ''; var tableBody = ''; for (var i = 0; i < list.length; i++) { //alert(JSON.stringify(list[i])); CorpoTabela = CorpoTabela + ''+''+''+''+''+''+''+''; if (list[i].certificate_url != '' && list[i].certificate_url != null) { tableBody = tableBody + ''; /*tableBody= tableBody + ''; */ } else { tableBody = tableBody + ''; } CorpoTable = CorpoTable + ''; /*tableBody= tableBody + ''*/ } var end of table = '
#TrainingInstitutUseVonForLandCityAttachmentsEdit Shutdown
' + (i + 1) + '' + List[i].Education + '' + list[i].school_name + '' + lista[i].grade_cgpa + '' + list[i].de + '' + lista[i].a + '' + Liste[i].Landesname + '' + list[i].city_name + ''+'Download'+'Download'+'WAS

DIRECTOR - TECHNICAL SERVICES - PAKISTAN INSTITUTE OF ACCOUNTANTS (12)DIRECTOR - TECHNICAL SERVICES - PAKISTAN INSTITUTE OF ACCOUNTANTS (13)


DIRECTOR - TECHNICAL SERVICES - PAKISTAN INSTITUTE OF ACCOUNTANTS (14)DIRECTOR - TECHNICAL SERVICES - PAKISTAN INSTITUTE OF ACCOUNTANTS (15)


'; //alert(html+tableHeader+tableBody+tableEnd); document.getElementById("educationList").innerHTML = tabletop + tableHeader + tableBody + tableEnd; } } }); } else if (currentTab == '5') { // CERTIFICADO PROFISIONAL var list = []; var profileForm = document.forms['regForm']; perfilForm.reset(); profileForm.elements['certificate_from'].max = aktuellesDatum; profileForm.elements['certificate_to'].max = aktuellesDatum; $.ajax({ type: 'GET', url: getRouteUrl('profile-professional-cer'), data: '', cache: false, contentType: false, processData: false, dataType: 'JSON', success: function (data) { if (data.data.length > 0) { list = data.data; certificateList = list; //user=data[0]; //getState(user.country,user.state); // getCity (user.state,user.city); /**/ populateYearList('certification_year'); var tabletop = '

List of professional certificates

'; var tableHeader = ''; var tableBody = ''; for (var i = 0; i < list.length; i++) { tableBody = tableBody + ''+''+''+''+''+''+''; if (list[i].certificate_url != '' && list[i].certificate_url != null) { tableBody = tableBody + ''; /*tableBody= tableBody + ''; */ } else { tableBody = tableBody + ''; } /*tableBody= tableBody + ''*/ tablebody = tablebody + ''; } var end of table = '
#certificationsVonForOnce againInstitutDescriptionAttachmentsEdit Shutdown
' + (i + 1) + '' + List[i].CertificateName + '' + list[i].de + '' + lista[i].a + '' + lista[i].certificationyear + '' + list[i].institutsname + '' + list[i].description.substring(0, 50) + ''+'Download'+'Download'+'WAS

DIRECTOR - TECHNICAL SERVICES - PAKISTAN INSTITUTE OF ACCOUNTANTS (16)DIRECTOR - TECHNICAL SERVICES - PAKISTAN INSTITUTE OF ACCOUNTANTS (17)


DIRECTOR - TECHNICAL SERVICES - PAKISTAN INSTITUTE OF ACCOUNTANTS (18)DIRECTOR - TECHNICAL SERVICES - PAKISTAN INSTITUTE OF ACCOUNTANTS (19)


'; //alert(html+tableHeader+tableBody+tableEnd); document.getElementById("professionalCertificateList").innerHTML = tabletop + tableHeader + tableBody + tableEnd; } } }); } else if (currentTab == '6') { //PROFISSIONAL ASSOCIAร‡ร•ES var list = []; var profileForm = document.forms['regForm']; perfilForm.reset(); $.ajax({ type: 'GET', url: getRouteUrl('profile-membership-awards'), data: '', cache: false, contentType: false, processData: false, dataType: 'JSON', success: function (data) { if (data.data.length > 0) { list = data.data; memberShipAwardsList = list; populateYearList('memberships_year'); //user=data[0]; //getState(user.country,user .state); // getCity(user.state,user.city); /**/ var tabletop = '

List of professional associations

'; var tableHeader = ''; var tableBody = ''; variabel j = 1; for (var i = 0; i < list.length; i++) { if (list[i].memberships != '' && list[i].awards == null) { tableBody = tableBody + ''+''+'' if (list[i].document_url != '' && list[i].document_url != null) { tableBody = tableBody + ''; /*tableBody = tableBody + '';*/ } else { tableBody = tableBody + ''; } CorpoTable = CorpoTable + '' /*tableBody= tableBody + '';*/j++; } } var end of table = '
#associationsOnce againAttachmentsEdit Shutdown
'+j+'' + list[i].associations + '' + liste[i].was + ''+'Download'+'Download'+'WAS

DIRECTOR - TECHNICAL SERVICES - PAKISTAN INSTITUTE OF ACCOUNTANTS (20)DIRECTOR - TECHNICAL SERVICES - PAKISTAN INSTITUTE OF ACCOUNTANTS (21)


DIRECTOR - TECHNICAL SERVICES - PAKISTAN INSTITUTE OF ACCOUNTANTS (22)DIRECTOR - TECHNICAL SERVICES - PAKISTAN INSTITUTE OF ACCOUNTANTS (23)


'; //alert(html+tableHeader+tableBody+tableEnd); document.getElementById("memberShipList").innerHTML = tabletop + tableHeader + tableBody + tableEnd; } } }); } else if (currentTab == '7') { //PRรŠMIOS E CONQUISTAS var list = []; var profileForm = document.forms['regForm']; perfilForm.reset(); $.ajax({ type: 'GET', url: getRouteUrl('profile-membership-awards'), data: '', cache: false, contentType: false, processData: false, dataType: 'JSON', success: function (data) { if (data.data.length > 0) { list = data.data; memberShipAwardsList = list; populateYearList('awards_year'); //user=data[0]; //getState(user.country,user .state); // getCity(user.state,user.city); /**/ var tabletop = '

List of awards and achievements

'; var tableHeader = ''; var tableBody = ''; variabel j = 1; for (var i = 0; i < list.length; i++) { if (list[i].awards != '' && list[i].memberships == null) { tableBody = tableBody + ''+''+'' if (list[i].document_url != '' && list[i].document_url != null) { tableBody = tableBody + ''; /*tableBody = tableBody + '';*/ } else { tableBody = tableBody + ''; } /*tableBody= tableBody + ''*/ tablebody = tablebody + ''; j++; } } var end of table = '
#Awards/AchievementsOnce againAttachmentsEdit Shutdown
'+j+'' + list[i].awards + '' + liste[i].was + ''+'Download'+'Download'+'WAS

DIRECTOR - TECHNICAL SERVICES - PAKISTAN INSTITUTE OF ACCOUNTANTS (24)DIRECTOR - TECHNICAL SERVICES - PAKISTAN INSTITUTE OF ACCOUNTANTS (25)


DIRECTOR - TECHNICAL SERVICES - PAKISTAN INSTITUTE OF ACCOUNTANTS (26)DIRECTOR - TECHNICAL SERVICES - PAKISTAN INSTITUTE OF ACCOUNTANTS (27)


'; //alert(html+tableHeader+tableBody+tableEnd); document.getElementById("awardsAndAchievment").innerHTML = tabletop + tableHeader + tableBody + tableEnd; } } }); } else if (currentTab == '8') { //PROFESSIONELLE REFERENZEN var list = []; var profileForm = document.forms['regForm']; profileForm.reset(); $.ajax({ type: 'GET', url: getRouteUrl('profile-references'), data: '', cache: false, contentType: false, processData: false, dataType: 'JSON', success: function (data ) { // alert(JSON.stringify(data)); if (data.data.length > 0) { list = data.data; referenceList = list; //user=data[0]; //getState(user. country,user.state); // getCity(user.state,user.city); /**/ var tabletop = '

Professional reference list

'; var tableHeader = ''; var tableBody = ''; for (var i = 0; i < list.length; i++) { tableBody = tableBody + ''+''+''+''+'' /*+ ''*/ +''; } var end of table = '
#Full nameRelationshipphone numberE-Mail-AddresseEdit Shutdown
' + (i + 1) + '' + liste[i].name1 + '' + list[i].relationship + '' + list[i].phone1 + '' + lista[i].email1 + '

DIRECTOR - TECHNICAL SERVICES - PAKISTAN INSTITUTE OF ACCOUNTANTS (28)DIRECTOR - TECHNICAL SERVICES - PAKISTAN INSTITUTE OF ACCOUNTANTS (29)


DIRECTOR - TECHNICAL SERVICES - PAKISTAN INSTITUTE OF ACCOUNTANTS (30)DIRECTOR - TECHNICAL SERVICES - PAKISTAN INSTITUTE OF ACCOUNTANTS (31)


(Video) ๐—”๐—น๐—น ๐—ฃ๐—ฎ๐—ธ๐—ถ๐˜€๐˜๐—ฎ๐—ป ๐—–๐—ต๐—ฎ๐—ฟ๐˜๐—ฒ๐—ฟ๐—ฒ๐—ฑ ๐—”๐—ฐ๐—ฐ๐—ผ๐˜‚๐—ป๐˜๐—ฎ๐—ป๐˜๐˜€ ๐—–๐—ผ๐—ป๐—ณ๐—ฒ๐—ฟ๐—ฒ๐—ป๐—ฐ๐—ฒ ๐Ÿฎ๐Ÿฌ๐Ÿฎ๐Ÿฎ
'; //alert(html+tableHeader+tableBody+tableEnd); document.getElementById("professionalReferences").innerHTML = tabletop + tableHeader + tableBody + tableEnd; } } }); } else if (currentTab == '9') { /*getDataPrivacy*/ var BenefitHTML = ''; var profileForm = document.forms['regForm']; perfilForm.reset(); for (var i = 0; i < otherBenefitArr.length; i++) { benefรญcioHTML = benefรญcioHTML + '

'+'

'+'

' + outroBenefitArr[i].name + '

'; } document.getElementById("benefitArray").innerHTML = benefitHTML; $.ajax({ type: 'GET', url: getRouteUrl('profile-data-privacy'), data: '', cache: false, contentType: false, processData: false, dataType: 'JSON', success: function (res) { //dataPrivacy.otherBenefits = otherBenefits.data; var data = res.data[0]; dataPrivacy.data_privacy_id = data.id; dataPrivacy.isAgree = data.agree; dataPrivacy.can_join = data.can_join; dataPrivacy.contact_this = data.contact_this; dataPrivacy.relocate = data.relocate; dataPrivacy.data_privacy = data.data_privacy; // alert(JSON.stringify(data)); $.ajax({ type: 'GET', url: getRouteUrl('profile-other-benefit'), data: '', cache: false, contentType: false, processData: false, dataType: 'JSON', success: function (res) { var data = res.data; dataPrivacy.other_benefits_id = data.id; dataPrivacy.current_salary = data.current_salary; dataPrivacy.expected_salary = data.expected_salary; dataPrivacy.other_benefits = data.other_benefits; /*dataPrivacy.hasOtherBenefit = (data.other_benefits!='' && data. other_benefits!=null) ? true : false;*/ var benefitArray = JSON.parse(data.benefits); if (benefitArray == null || benefitArray == '') benefitArray = []; for (var j = 0; j < otherBenefitArr.length; j++) { for (var i = 0; i < benefitArray.length; i++) { if (benefitArray[i] == 'medical_allowance_opd' && otherBenefitArr[j].id == 1) { otherBenefitArr[j].value = true; } if (benefitArray[i] == 'incentive_bonus' && otherBenefitArr[j].id == 2) { otherBenefitArr[j].value = true; } if (benefitArray[i] == 'gratuity' && otherBenefitArr[j].id == 3) { otherBenefitArr[j].value = true; } if (benefitArray[i] == 'provident_fund' && otherBenefitArr[j].id == 4) { otherBenefitArr[j].value = true; } } } for (var j = 0; j < otherBenefitArr.length; j++) { if (otherBenefitArr[j].value) document.getElementById('benefit[' + j + ']').checked = true; } // alert(JSON.stringify(dataPrivacy)); var profileForm = document.forms['regForm']; profileForm.elements['relocate'].checked = (dataPrivacy.relocate == '1') ? true : false; profileForm.elements['can_join'].value = dataPrivacy.can_join; profileForm.elements['dataPrivacy_contact_this'].checked = (dataPrivacy.contact_this == '1') ? true : false; profileForm.elements['current_salary'].value = dataPrivacy.current_salary; profileForm.elements['expected_salary'].value = dataPrivacy.expected_salary; //profileForm.elements['benefitArray'].value= dataPrivacy.benefitArray; profileForm.elements['Other'].checked = (dataPrivacy.other_benefits != '') ? true : false; profileForm.elements['other_benefits'].value = dataPrivacy.other_benefits; profileForm.elements['isAgree'].checked = (dataPrivacy.isAgree == '1') ? true : false; if (dataPrivacy.other_benefits != '') { document.getElementById('otherfileds').style.display = 'block'; } } }) } }); } // Otherwise, display the correct tab: showTab(currentTab); } function onFileChange(type) { //alert(document.getElementById('resume_url').value); if (type == 'profilePhoto') { var input = document.getElementById('profilePhoto'); var reader = new FileReader(); reader.onload = function (e) { //console.log(e.target.result); user.profile_photo = e.target.result.split(',')[1]; //console.log($scope.user.profile_photo); }; reader.readAsDataURL(input.files[0]); } if (type == 'resume') { //$scope.resume.resume_url = document.getElementById('resume_url').value; var input = document.getElementById('resume_url'); var reader = new FileReader(); reader.onload = function (e) { resume.resume_url = e.target.result.split(',')[1]; }; reader.readAsDataURL(input.files[0]); } if (type == 'cover_letter') { var input = document.getElementById('cover_letter_url'); var reader = new FileReader(); reader.onload = function (e) { resume.cover_letter_url = e.target.result.split(',')[1]; }; reader.readAsDataURL(input.files[0]); } if (type == 'edu_scanned_copy') { var input = document.getElementById('edu_scanned_copy'); var reader = new FileReader(); reader.onload = function (e) { educationalExperience.edu_scanned_copy = e.target.result.split(',')[1]; }; reader.readAsDataURL(input.files[0]); } if (type == 'certificate_scanned_copy') { var input = document.getElementById('certificate_scanned_copy'); var reader = new FileReader(); reader.onload = function (e) { professionalCertificate.certificate_scanned_copy = e.target.result.split(',')[1]; }; reader.readAsDataURL(input.files[0]); } if (type == 'memberships_certificate') { var input = document.getElementById('memberships_certificate'); var reader = new FileReader(); reader.onload = function (e) { MembershipsAwards.memberships.certificate_url = e.target.result.split(',')[1]; }; reader.readAsDataURL(input.files[0]); } if (type == 'awards_certificate') { var input = document.getElementById('awards_certificate'); var reader = new FileReader(); reader.onload = function (e) { //console.log(e.target.result); MembershipsAwards.awards.certificate_url = e.target.result.split(',')[1]; }; reader.readAsDataURL(input.files[0]); } } function readURL(input) { if (input.files && input.files[0]) { var reader = new FileReader(); reader.onload = function (e) { //alert(e.target.result); $('#imageSrc') .attr('src', e.target.result) //.width(150) //.height(200); }; reader.readAsDataURL(input.files[0]); } } function imagechange() { document.getElementById('profilePhoto').click(); } function ProfileSave() { if (!validateFormNew()) return false; $.ajaxSetup({ headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') } }); var target = document.createElement("div"); document.body.appendChild(target); var spinner = new Spinner(overlayOpt).spin(target); var overlay = iosOverlay({ text: "Saving...", spinner: spinner }); var data1 = {}; var profileForm = document.forms['regForm']; //document.getElementById('imageSrc').src=document.getElementById('imageSrc').src+data.profile_photo; //profileForm.elements['imageSrc'].src= user.profile_photo; data1.first_name = profileForm.elements['firstName'].value; data1.middle_name = profileForm.elements['middle_name'].value; data1.last_name = profileForm.elements['lastName'].value; data1.primaryContact = profileForm.elements['primaryContact'].value; data1.mobileNumber = profileForm.elements['mobileNumber'].value; data1.candidateEmail = profileForm.elements['candidateEmail'].value; data1.location = profileForm.elements['address'].value; data1.address = profileForm.elements['address'].value; data1.cnic = profileForm.elements['cnic'].value; data1.country = profileForm.elements['user_country'].value; data1.state = profileForm.elements['state'].value; data1.city = profileForm.elements['city'].value; data1.dob = profileForm.elements['dob'].value; data1.postalCode = profileForm.elements['postalCode'].value; data1.familyWorkingAt = (profileForm.elements['familyWorkingAt'].checked == true) ? '1' : '0'; data1.conditions = (profileForm.elements['conditions'].checked == true) ? '1' : '0'; data1.currUnEmployed = (profileForm.elements['currUnEmployed'].checked == true) ? '1' : '0'; data1.publish = (profileForm.elements['publish'].checked == true) ? '1' : '0'; data1.profile_photo = user.profile_photo; data1.email = profileForm.elements['candidateEmail'].value; data1.phone = null; data1.id = user.id; data1.user_id = user.user_id; data1._token = profileForm.elements['_token'].value; if (data1.familyWorkingAt == '1') { data1.full_name = profileForm.elements['full_name'].value; data1.location_family = profileForm.elements['location_family'].value; data1.relationship = profileForm.elements['relationship_user'].value; } else { data1.full_name = ''; data1.location_family = ''; data1.relationship = ''; }//alert(JSON.stringify(data)); $.ajax({ type: 'POST', url: getRouteUrl('profile-save-account'), data: data1, dataType: 'json', success: function (res) { overlay.update({ icon: "https://career.icap.org.pk/newportalfinal/assets/iosOverlay/img/check.png", text: "Success!!" }); profileForm.reset(); //user.expId = 0; nextPrev(0); window.setTimeout(function () { overlay.hide(); }, 1000); }, error: function (err) { //alert(JSON.stringify(err)); /*overlay.update({ icon: "https://career.icap.org.pk/newportalfinal/assets/iosOverlay/img/cross.png", text: "Failure!!" });*/ overlay.update({ icon: "https://career.icap.org.pk/newportalfinal/assets/iosOverlay/img/check.png", text: "Success!!" }); window.setTimeout(function () { overlay.hide(); }, 1000); } }); } function workExperienceSave() { if (!validateFormNew()) return false; $.ajaxSetup({ headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') } }); var target = document.createElement("div"); document.body.appendChild(target); var spinner = new Spinner(overlayOpt).spin(target); var overlay = iosOverlay({ text: "Saving...", spinner: spinner }); var data2 = {}; var profileForm = document.forms['regForm']; data2.job_title = profileForm.elements['job_title'].value; data2.employer = profileForm.elements['company_name'].value; data2.currently_working = (profileForm.elements['currently_working'].checked == true) ? '1' : '0'; data2.company_name = profileForm.elements['company_name'].value; data2.employer_type = profileForm.elements['employer_type'].value; data2.country = profileForm.elements['professionalExperience_country'].value; data2.state = profileForm.elements['professionalExperience_state'].value; data2.city = profileForm.elements['professionalExperience_city'].value; data2.position = profileForm.elements['position'].value; data2.position_type = profileForm.elements['position_type'].value; //data2.reason_leaving =profileForm.elements['reason_leaving'].value; //data2.responsibilities =profileForm.elements['responsibilities'].value; var select = profileForm.elements['responsibilities']; var options = select.options; var result = []; for (var i = 0; i < options.length; i++) { var opt = options[i]; if (opt.selected) { result.push(opt.value); } } if (result.length > 0) { data2.responsibilities = result.toString(); profileForm.elements['responsibilities'].value = result.toString(); } else { data2.responsibilities = ''; profileForm.elements['responsibilities'].value = ''; } data2.user_id = user.user_id; data2._token = profileForm.elements['_token'].value; if (data2.currently_working == '1') { data2.exp_from = profileForm.elements['exp_from'].value; data2.exp_to = ''; data2.reason_leaving = ''; } else { data2.exp_from = profileForm.elements['exp_from'].value; data2.exp_to = profileForm.elements['exp_to'].value; data2.reason_leaving = profileForm.elements['reason_leaving'].value; } data2.job_description = 'NA'; //data2.job_description = 'NA'; data2.valid_notification = '1'; data2.post_qualification = 'NA'; data2.contact_this = 'NA'; data2.can_join = 'NA'; data2.relocate = 'NA'; if (user.expId) { data2.id = user.expId; } //alert(JSON.stringify(data2)); $.ajax({ type: 'POST', url: getRouteUrl('profile-save-experience'), data: data2, dataType: 'json', success: function (data) { //alert('Work Experience Update Successfully'); overlay.update({ icon: "https://career.icap.org.pk/newportalfinal/assets/iosOverlay/img/check.png", text: "Success!!" }); profileForm.reset(); user.expId = 0; nextPrev(0); window.setTimeout(function () { overlay.hide(); }, 1000); }, error: function () { overlay.update({ icon: "https://career.icap.org.pk/newportalfinal/assets/iosOverlay/img/cross.png", text: "Failure!!" }); window.setTimeout(function () { overlay.hide(); }, 1000); } }); } function myDocumentSave() { if (!validateFormNew()) return false; $.ajaxSetup({ headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') } }); // alert(JSON.stringify(resume)); var target = document.createElement("div"); document.body.appendChild(target); var spinner = new Spinner(overlayOpt).spin(target); var overlay = iosOverlay({ text: "Saving...", spinner: spinner }); var data3 = {}; var resumeForm = document.forms['regForm']; data3.resume_name = resumeForm.elements['resume_name'].value; data3.cover_letter = resumeForm.elements['cover_letter'].value; data3.resume_url = resume.resume_url; data3.cover_letter_url = resume.cover_letter_url; data3.city = 'null'; data3.valid_notification = '1'; data3._token = resumeForm.elements['_token'].value; if (user.resumeId) { data3.id = user.resumeId; } //alert(JSON.stringify(data3.cover_letter_url)); $.ajax({ type: 'POST', url: "https://career.icap.org.pk/newportalfinal/profile/saveResume", data: data3, dataType: 'JSON', success: function (data) { //alert('My Document Update Successfully'); overlay.update({ icon: "https://career.icap.org.pk/newportalfinal/assets/iosOverlay/img/check.png", text: "Success!!" }); resumeForm.reset(); user.resumeId = 0; nextPrev(0); window.setTimeout(function () { overlay.hide(); }, 1000); }, error: function (err) { overlay.update({ icon: "https://career.icap.org.pk/newportalfinal/assets/iosOverlay/img/cross.png", text: "Failure!!" }); window.setTimeout(function () { overlay.hide(); }, 1000); //alert(JSON.stringify(err)); } }); } function makeDefault(index) { var item = resumeList[index]; if (document.getElementById('default[' + index + ']').checked) { item.is_default = true; } else { item.is_default = false; } $.ajaxSetup({ headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') } }); $.ajax({ type: 'POST', url: "https://career.icap.org.pk/newportalfinal/profile/setDefaultResume", data: item, dataType: 'json', success: function (data) { //alert(JSON.stringify(data)); nextPrev(0); }, error: function (err) { //alert(JSON.stringify(err)); } }); } function educationSave() { if (!validateFormNew()) return false; $.ajaxSetup({ headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') } }); var target = document.createElement("div"); document.body.appendChild(target); var spinner = new Spinner(overlayOpt).spin(target); var overlay = iosOverlay({ text: "Saving...", spinner: spinner }); var data4 = {}; var educationForm = document.forms['regForm']; data4.education = educationForm.elements['education'].value; data4.school_name = educationForm.elements['school_name'].value; data4.grade_cgpa = educationForm.elements['grade_cgpa'].value; data4.field_of_study = educationForm.elements['field_of_study'].value; data4.from = educationForm.elements['edu_from'].value; data4.to = educationForm.elements['edu_to'].value; data4.country = educationForm.elements['educationalExperience_country'].value; data4.state = educationForm.elements['educationalExperience_state'].value; data4.city = educationForm.elements['educationalExperience_city'].value; data4.valid_notification = '1'; data4.certificate_url = educationalExperience.edu_scanned_copy; data4._token = educationForm.elements['_token'].value; if (user.eduId) { data4.id = user.eduId; } $.ajax({ type: 'POST', url: getRouteUrl('profile-save-education'), data: data4, dataType: 'json', success: function (data) { //alert('My Document Update Successfully'); overlay.update({ icon: "https://career.icap.org.pk/newportalfinal/assets/iosOverlay/img/check.png", text: "Success!!" }); educationForm.reset(); user.eduId = 0; nextPrev(0); window.setTimeout(function () { overlay.hide(); }, 1000); }, error: function (err) { overlay.update({ icon: "https://career.icap.org.pk/newportalfinal/assets/iosOverlay/img/cross.png", text: "Failure!!" }); window.setTimeout(function () { overlay.hide(); }, 1000); } }); } function professionalCertificateSave() { if (!validateFormNew()) return false; $.ajaxSetup({ headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') } }); var target = document.createElement("div"); document.body.appendChild(target); var spinner = new Spinner(overlayOpt).spin(target); var overlay = iosOverlay({ text: "Saving...", spinner: spinner }); var data5 = {}; var professionalCertificateForm = document.forms['regForm']; data5.certificate_name = professionalCertificateForm.elements['certificate_name'].value; data5.from = professionalCertificateForm.elements['certificate_from'].value; data5.to = professionalCertificateForm.elements['certificate_to'].value; data5.description = professionalCertificateForm.elements['description'].value; data5.certification_year = professionalCertificateForm.elements['certification_year'].value; data5.authorized_institute = professionalCertificateForm.elements['authorized_institute'].value; data5.institute_name = professionalCertificateForm.elements['authorized_institute'].value; data5.valid_notification = '1'; data5.certificate_url = professionalCertificate.certificate_scanned_copy; data5._token = professionalCertificateForm.elements['_token'].value; if (user.certificateId) { data5.id = user.certificateId; } $.ajax({ type: 'POST', url: getRouteUrl('profile-save-certificate'), data: data5, dataType: 'json', success: function (data) { //alert('My Document Update Successfully'); overlay.update({ icon: "https://career.icap.org.pk/newportalfinal/assets/iosOverlay/img/check.png", text: "Success!!" }); professionalCertificateForm.reset(); user.certificateId = 0; nextPrev(0); window.setTimeout(function () { overlay.hide(); }, 1000); }, error: function (err) { overlay.update({ icon: "https://career.icap.org.pk/newportalfinal/assets/iosOverlay/img/cross.png", text: "Failure!!" }); window.setTimeout(function () { overlay.hide(); }, 1000); } }); } function professionalMembershipSave() { if (!validateFormNew()) return false; $.ajaxSetup({ headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') } }); var target = document.createElement("div"); document.body.appendChild(target); var spinner = new Spinner(overlayOpt).spin(target); var overlay = iosOverlay({ text: "Saving...", spinner: spinner }); var data6 = {}; var membershipForm = document.forms['regForm']; data6.memberships = membershipForm.elements['membership_title'].value; data6.awards = null; data6.year = membershipForm.elements['memberships_year'].value; data6.valid_notification = '1'; data6.certificate_url = MembershipsAwards.memberships.certificate_url; data6._token = membershipForm.elements['_token'].value; if (user.membershipAwardId) { data6.id = user.membershipAwardId; } //alert(MembershipsAwards.memberships.certificate_url); $.ajax({ type: 'POST', url: getRouteUrl('profile-save-membership-awards'), data: data6, dataType: 'json', success: function (data) { //alert('My Document Update Successfully'); overlay.update({ icon: "https://career.icap.org.pk/newportalfinal/assets/iosOverlay/img/check.png", text: "Success!!" }); membershipForm.reset(); user.membershipAwardId = 0; nextPrev(0); window.setTimeout(function () { overlay.hide(); }, 1000); }, error: function (err) { overlay.update({ icon: "https://career.icap.org.pk/newportalfinal/assets/iosOverlay/img/cross.png", text: "Failure!!" }); window.setTimeout(function () { overlay.hide(); }, 1000); } }); } /* MembershipsAwards.awards.certificate_url*/ function professionalAwardSave() { if (!validateFormNew()) return false; $.ajaxSetup({ headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') } }); var target = document.createElement("div"); document.body.appendChild(target); var spinner = new Spinner(overlayOpt).spin(target); var overlay = iosOverlay({ text: "Saving...", spinner: spinner }); var data7 = {}; var awardForm = document.forms['regForm']; data7.memberships = null; data7.awards = awardForm.elements['award'].value; data7.year = awardForm.elements['awards_year'].value; data7.valid_notification = '1'; data7.certificate_url = MembershipsAwards.awards.certificate_url; data7._token = awardForm.elements['_token'].value; if (user.membershipAwardId) { data7.id = user.membershipAwardId; } $.ajax({ type: 'POST', url: getRouteUrl('profile-save-membership-awards'), data: data7, dataType: 'json', success: function (data) { //alert('My Document Update Successfully'); overlay.update({ icon: "https://career.icap.org.pk/newportalfinal/assets/iosOverlay/img/check.png", text: "Success!!" }); awardForm.reset(); user.membershipAwardId = 0; nextPrev(0); window.setTimeout(function () { overlay.hide(); }, 1000); }, error: function (err) { overlay.update({ icon: "https://career.icap.org.pk/newportalfinal/assets/iosOverlay/img/cross.png", text: "Failure!!" }); window.setTimeout(function () { overlay.hide(); }, 1000); } }); } /*Professional Reference save */ function professionalReferenceSave() { if (!validateFormNew()) return false; $.ajaxSetup({ headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') } }); var target = document.createElement("div"); document.body.appendChild(target); var spinner = new Spinner(overlayOpt).spin(target); var overlay = iosOverlay({ text: "Saving...", spinner: spinner }); var data8 = {}; var professionalReferenceForm = document.forms['regForm']; //data8.memberships = null; data8.name1 = professionalReferenceForm.elements['name1'].value; data8.desgination1 = professionalReferenceForm.elements['desgination1'].value; data8.email1 = professionalReferenceForm.elements['email1'].value; data8.phone1 = professionalReferenceForm.elements['phone1'].value; data8.relationship = professionalReferenceForm.elements['relationship'].value; data8.valid_notification = '1'; data8._token = professionalReferenceForm.elements['_token'].value; if (user.referenceId) { data8.id = user.referenceId; } $.ajax({ type: 'POST', url: getRouteUrl('profile-save-references'), data: data8, dataType: 'json', success: function (data) { //alert('Professional Reference Update Successfully'); overlay.update({ icon: "https://career.icap.org.pk/newportalfinal/assets/iosOverlay/img/check.png", text: "Success!!" }); professionalReferenceForm.reset(); user.referenceId = 0; nextPrev(0); window.setTimeout(function () { overlay.hide(); }, 1000); }, error: function (err) { overlay.update({ icon: "https://career.icap.org.pk/newportalfinal/assets/iosOverlay/img/cross.png", text: "Failure!!" }); window.setTimeout(function () { overlay.hide(); }, 1000); } }); } function dataPrivacySave() { if (!validateFormNew()) return false; $.ajaxSetup({ headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') } }); //alert(JSON.stringify(dataPrivacy)); var target = document.createElement("div"); document.body.appendChild(target); var spinner = new Spinner(overlayOpt).spin(target); var overlay = iosOverlay({ text: "Saving...", spinner: spinner }); var profileForm = document.forms['regForm']; dataPrivacy.relocate = (profileForm.elements['relocate'].checked == true) ? '1' : '0'; dataPrivacy.can_join = profileForm.elements['can_join'].value; dataPrivacy.contact_this = (profileForm.elements['dataPrivacy_contact_this'].checked == true) ? '1' : '0'; dataPrivacy.current_salary = profileForm.elements['current_salary'].value; dataPrivacy.expected_salary = profileForm.elements['expected_salary'].value; //profileForm.elements['benefitArray'].value= dataPrivacy.benefitArray; if (profileForm.elements['Other'].checked == true) { dataPrivacy.other_benefits = profileForm.elements['other_benefits'].value; } else { dataPrivacy.other_benefits = ''; } dataPrivacy.isAgree = (profileForm.elements['isAgree'].checked == true) ? '1' : '0'; if (dataPrivacy.other_benefits != '') { document.getElementById('otherfileds').style.display = 'block'; } var benefitArray = []; for (var j = 0; j < otherBenefitArr.length; j++) { if (document.getElementById('benefit[' + j + ']').checked == true && otherBenefitArr[j].id == 1) { benefitArray.push('medical_allowance_opd'); } if (document.getElementById('benefit[' + j + ']').checked == true && otherBenefitArr[j].id == 2) { benefitArray.push('incentive_bonus'); } if (document.getElementById('benefit[' + j + ']').checked == true && otherBenefitArr[j].id == 3) { benefitArray.push('gratuity'); } if (document.getElementById('benefit[' + j + ']').checked == true && otherBenefitArr[j].id == 4) { benefitArray.push('provident_fund'); } } dataPrivacy.benefitArray = JSON.stringify(benefitArray); //alert(JSON.stringify(dataPrivacy)); $.ajax({ type: 'POST', url: getRouteUrl('profile-save-other-benefits'), data: dataPrivacy, dataType: 'json', success: function (data) { //alert('Professional Reference Update Successfully'); $.ajax({ type: 'POST', url: getRouteUrl('profile-save-data-privacy'), data: dataPrivacy, dataType: 'json', success: function (data) { //alert('Professional Reference Update Successfully'); overlay.update({ icon: "https://career.icap.org.pk/newportalfinal/assets/iosOverlay/img/check.png", text: "Success!!" }); nextPrev(0); window.setTimeout(function () { overlay.hide(); }, 1000); }, error: function (err) { overlay.update({ icon: "https://career.icap.org.pk/newportalfinal/assets/iosOverlay/img/cross.png", text: "Failure!!" }); window.setTimeout(function () { overlay.hide(); }, 1000); } }); }, error: function (err) { overlay.update({ icon: "https://career.icap.org.pk/newportalfinal/assets/iosOverlay/img/cross.png", text: "Failure!!" }); window.setTimeout(function () { overlay.hide(); }, 1000); } }); } //changes by Aman function editExp(index) { //alert(JSON.stringify(expList[index])); var item = expList[index]; //alert(JSON.stringify(item)); var data2 = {}; var profileForm = document.forms['regForm']; profileForm.elements['job_title'].value = item.job_title; profileForm.elements['company_name'].value = item.employer; profileForm.elements['currently_working'].checked = (item.currently_working == '1') ? true : false; profileForm.elements['company_name'].value = item.company_name; profileForm.elements['employer_type'].value = item.employer_type; profileForm.elements['professionalExperience_country'].value = item.country; profileForm.elements['professionalExperience_state'].value = item.state; profileForm.elements['professionalExperience_city'].value = item.city; profileForm.elements['position'].value = item.position; profileForm.elements['position_type'].value = item.position_type; profileForm.elements['reason_leaving'].value = item.reason_leaving; //profileForm.elements['responsibilities'].value = item.responsibilities.split(','); //data2.user_id = user.user_id; //data2._token = profileForm.elements['_token'].value; currentlyWorking(); var select = profileForm.elements['responsibilities']; var options = select.options; var result = item.responsibilities.split(','); //alert(JSON.stringify(result)); for (var i = 0; i < options.length; i++) { for (var j = 0; j < result.length; j++) { var opt = options[i]; var res = result[j]; //alert(res+' == '+opt.value); if (opt.value == res) { //alert(opt.selected); opt.selected = true; //alert(opt.selected); } } } if (item.currently_working == '1') { profileForm.elements['exp_from'].value = item.exp_from; profileForm.elements['exp_to'].value = ''; } else { profileForm.elements['exp_from'].value = item.exp_from; profileForm.elements['exp_to'].value = item.exp_to; } getState(item.country, item.state, 'professionalExperience_state'); getCity(item.state, item.city, 'professionalExperience_city'); user.expId = item.id; /*data2.job_description = 'NA'; data2.job_description = 'NA'; data2.valid_notification = '1'; data2.post_qualification = 'NA'; data2.contact_this = 'NA'; data2.can_join = 'NA'; data2.relocate = 'NA';*/ } function deleteExp(index) { var item = expList[index]; var deleteUrl = "https://career.icap.org.pk/newportalfinal/profile/DATAID/professionalExperience"; var u = deleteUrl.replace("DATAID", item.id); var r = confirm("Are you sure you want to delete this ?"); if (r == true) { //txt = "You pressed OK!"; $.ajax({ type: 'GET', url: u, data: '', dataType: 'json', success: function (data) { alert('Deleted Successfully'); nextPrev(0); }, error: function (err) { alert('Oops something went wrong.'); } }); } else { //txt = "You pressed Cancel!"; } } function editResume(index) { var item = resumeList[index]; var resumeForm = document.forms['regForm']; resumeForm.elements['resume_name'].value = item.resume_name; resumeForm.elements['cover_letter'].value = item.cover_letter; resume.resume_url = item.resume_url; resume.cover_letter_url = item.cover_letter_url; user.resumeId = item.id; } function deleteResume(index) { var item = resumeList[index]; var deleteUrl = 'https://career.icap.org.pk/newportalfinal/profile/#DATAID#/resume'; var u = deleteUrl.replace("#DATAID#", item.id); var r = confirm("Are you sure you want to delete this ?"); if (r == true) { //txt = "You pressed OK!"; $.ajax({ type: 'GET', url: u, data: '', dataType: 'json', success: function (data) { alert('Deleted Successfully'); nextPrev(0); }, error: function (err) { alert('Oops something went wrong.'); } }); } else { //txt = "You pressed Cancel!"; } } function editEdu(index) { var item = eduList[index]; var educationForm = document.forms['regForm']; getState(item.country, item.state, 'educationalExperience_state'); getCity(item.state, item.city, 'educationalExperience_city'); educationForm.elements['education'].value = item.education; educationForm.elements['school_name'].value = item.school_name; educationForm.elements['grade_cgpa'].value = item.grade_cgpa; educationForm.elements['field_of_study'].value = item.field_of_study; educationForm.elements['edu_from'].value = item.from; educationForm.elements['edu_to'].value = item.to; educationForm.elements['educationalExperience_country'].value = item.country; educationForm.elements['educationalExperience_state'].value = item.state; educationForm.elements['educationalExperience_city'].value = item.city; //data4.valid_notification = '1'; educationalExperience.edu_scanned_copy = item.certificate_url; user.eduId = item.id; } function deleteEdu(index) { var item = eduList[index]; var deleteUrl = 'https://career.icap.org.pk/newportalfinal/profile/#DATAID#/professionalEducation'; var u = deleteUrl.replace("#DATAID#", item.id); var r = confirm("Are you sure you want to delete this ?"); if (r == true) { //txt = "You pressed OK!"; $.ajax({ type: 'GET', url: u, data: '', dataType: 'json', success: function (data) { alert('Deleted Successfully'); nextPrev(0); }, error: function (err) { alert('Oops something went wrong.'); } }); } else { //txt = "You pressed Cancel!"; } } function editCertificate(index) { var item = certificateList[index]; var professionalCertificateForm = document.forms['regForm']; professionalCertificateForm.elements['certificate_name'].value = item.certificate_name; professionalCertificateForm.elements['certificate_from'].value = item.from; professionalCertificateForm.elements['certificate_to'].value = item.to; professionalCertificateForm.elements['description'].value = item.description; professionalCertificateForm.elements['certification_year'].value = item.certification_year; professionalCertificateForm.elements['authorized_institute'].value = item.authorized_institute; professionalCertificateForm.elements['authorized_institute'].value = item.institute_name; professionalCertificate.certificate_scanned_copy = item.certificate_url; user.certificateId = item.id; } function deleteCertificate(index) { var item = certificateList[index]; var deleteUrl = 'https://career.icap.org.pk/newportalfinal/profile/#DATAID#/professionalCertification'; var u = deleteUrl.replace("#DATAID#", item.id); var r = confirm("Are you sure you want to delete this ?"); if (r == true) { //txt = "You pressed OK!"; $.ajax({ type: 'GET', url: u, data: '', dataType: 'json', success: function (data) { alert('Deleted Successfully'); nextPrev(0); }, error: function (err) { alert('Oops something went wrong.'); } }); } else { //txt = "You pressed Cancel!"; } } function editMembershipAward(index) { var item = memberShipAwardsList[index]; if (item.memberships != null && item.memberships != '') { var membershipForm = document.forms['regForm']; membershipForm.elements['membership_title'].value = item.memberships; membershipForm.elements['memberships_year'].value = item.year; MembershipsAwards.memberships.certificate_url = item.document_url; user.membershipAwardId = item.id; } else if (item.awards != null && item.awards != '') { var awardForm = document.forms['regForm']; awardForm.elements['award'].value = item.awards; awardForm.elements['awards_year'].value = item.year; MembershipsAwards.awards.certificate_url = item.document_url; user.membershipAwardId = item.id; } else { user.membershipAwardId = 0; } } function deleteMembershipAward(index) { var item = memberShipAwardsList[index]; var deleteUrl = 'https://career.icap.org.pk/newportalfinal/profile/#DATAID#/MembershipAwards'; var u = deleteUrl.replace("#DATAID#", item.id); var r = confirm("Are you sure you want to delete this ?"); if (r == true) { //txt = "You pressed OK!"; $.ajax({ type: 'GET', url: u, data: '', dataType: 'json', success: function (data) { alert('Deleted Successfully'); nextPrev(0); }, error: function (err) { alert('Oops something went wrong.'); } }); } else { //txt = "You pressed Cancel!"; } } function editReference(index) { var item = referenceList[index]; var professionalReferenceForm = document.forms['regForm']; professionalReferenceForm.elements['name1'].value = item.name1; professionalReferenceForm.elements['desgination1'].value = item.desgination1; professionalReferenceForm.elements['email1'].value = item.email1; professionalReferenceForm.elements['phone1'].value = item.phone1; professionalReferenceForm.elements['relationship'].value = item.relationship; user.referenceId = item.id; } function deleteReference(index) { var item = referenceList[index]; var deleteUrl = 'https://career.icap.org.pk/newportalfinal/profile/#DATAID#/professionalReference'; var u = deleteUrl.replace("#DATAID#", item.id); var r = confirm("Are you sure you want to delete this ?"); if (r == true) { //txt = "You pressed OK!"; $.ajax({ type: 'GET', url: u, data: '', dataType: 'json', success: function (data) { alert('Deleted Successfully'); nextPrev(0); }, error: function (err) { alert('Oops something went wrong.'); } }); } else { //txt = "You pressed Cancel!"; } } function validateFormNew() { //alert(currentTab); var profileForm = document.forms['regForm']; if (currentTab == 2) { var EmailStatus = ValidateEmail('candidateEmail', 'lblError'); if (profileForm.elements['firstName'].value == '') { profileForm.elements['relationship_user'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['location_family'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['full_name'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['postalCode'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['dob'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['city'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['state'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['user_country'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['cnic'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['candidateEmail'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['mobileNumber'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['lastName'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['firstName'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; alert("First Name Required."); profileForm.elements['firstName'].focus(); profileForm.elements['firstName'].style.borderColor = 'red'; return false; } else if (profileForm.elements['lastName'].value == '') { profileForm.elements['relationship_user'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['location_family'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['full_name'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['postalCode'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['dob'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['city'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['state'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['user_country'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['cnic'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['candidateEmail'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['mobileNumber'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['lastName'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['firstName'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; alert("Last Name Required."); profileForm.elements['lastName'].focus(); profileForm.elements['lastName'].style.borderColor = 'red'; return false; } else if (profileForm.elements['mobileNumber'].value == '') { profileForm.elements['relationship_user'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['location_family'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['full_name'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['postalCode'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['dob'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['city'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['state'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['user_country'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['cnic'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['candidateEmail'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['mobileNumber'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['lastName'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['firstName'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; alert("Mobile Number Required."); profileForm.elements['mobileNumber'].focus(); profileForm.elements['mobileNumber'].style.borderColor = 'red'; return false; } else if (profileForm.elements['candidateEmail'].value == '') { profileForm.elements['relationship_user'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['location_family'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['full_name'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['postalCode'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['dob'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['city'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['state'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['user_country'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['cnic'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['candidateEmail'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['mobileNumber'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['lastName'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['firstName'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; alert("Email Required."); profileForm.elements['candidateEmail'].focus(); profileForm.elements['candidateEmail'].style.borderColor = 'red'; return false; } else if (EmailStatus == false) { profileForm.elements['relationship_user'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['location_family'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['full_name'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['postalCode'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['dob'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['city'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['state'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['user_country'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['cnic'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['candidateEmail'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['mobileNumber'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['lastName'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['firstName'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; alert("Email Required."); profileForm.elements['candidateEmail'].focus(); profileForm.elements['candidateEmail'].style.borderColor = 'red'; return false; } else if (profileForm.elements['cnic'].value == '') { profileForm.elements['relationship_user'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['location_family'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['full_name'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['postalCode'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['dob'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['city'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['state'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['user_country'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['cnic'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['candidateEmail'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['mobileNumber'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['lastName'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['firstName'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; alert("CNIC Required."); profileForm.elements['cnic'].focus(); profileForm.elements['cnic'].style.borderColor = 'red'; return false; } else if (profileForm.elements['user_country'].value == '') { profileForm.elements['relationship_user'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['location_family'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['full_name'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['postalCode'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['dob'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['city'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['state'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['user_country'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['cnic'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['candidateEmail'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['mobileNumber'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['lastName'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['firstName'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; alert("Country Required."); profileForm.elements['user_country'].focus(); profileForm.elements['user_country'].style.borderColor = 'red'; return false; } else if (profileForm.elements['state'].value == '') { profileForm.elements['relationship_user'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['location_family'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['full_name'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['postalCode'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['dob'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['city'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['state'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['user_country'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['cnic'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['candidateEmail'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['mobileNumber'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['lastName'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['firstName'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; alert("State Required."); profileForm.elements['state'].focus(); profileForm.elements['state'].style.borderColor = 'red'; return false; } else if (profileForm.elements['city'].value == '') { profileForm.elements['relationship_user'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['location_family'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['full_name'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['postalCode'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['dob'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['city'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['state'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['user_country'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['cnic'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['candidateEmail'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['mobileNumber'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['lastName'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['firstName'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; alert("City Required."); profileForm.elements['city'].focus(); profileForm.elements['city'].style.borderColor = 'red'; return false; } else if (profileForm.elements['dob'].value == '') { profileForm.elements['relationship_user'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['location_family'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['full_name'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['postalCode'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['dob'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['city'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['state'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['user_country'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['cnic'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['candidateEmail'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['mobileNumber'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['lastName'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['firstName'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; alert("DOB Required."); profileForm.elements['dob'].focus(); profileForm.elements['dob'].style.borderColor = 'red'; return false; } else if (profileForm.elements['postalCode'].value == '') { profileForm.elements['relationship_user'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['location_family'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['full_name'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['postalCode'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['dob'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['city'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['state'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['user_country'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['cnic'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['candidateEmail'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['mobileNumber'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['lastName'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['firstName'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; alert("Postal Code Required."); profileForm.elements['postalCode'].focus(); profileForm.elements['postalCode'].style.borderColor = 'red'; return false; } else if (profileForm.elements['familyWorkingAt'].checked) { if (profileForm.elements['full_name'].value == '') { profileForm.elements['relationship_user'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['location_family'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['full_name'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['postalCode'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['dob'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['city'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['state'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['user_country'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['cnic'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['candidateEmail'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['mobileNumber'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['lastName'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['firstName'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; alert("Full Name Required."); profileForm.elements['full_name'].focus(); profileForm.elements['full_name'].style.borderColor = 'red'; return false; } else if (profileForm.elements['location_family'].value == '') { profileForm.elements['relationship_user'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['location_family'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['full_name'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['postalCode'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['dob'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['city'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['state'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['user_country'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['cnic'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['candidateEmail'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['mobileNumber'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['lastName'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['firstName'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; alert("Location Required."); profileForm.elements['location_family'].focus(); profileForm.elements['location_family'].style.borderColor = 'red'; return false; } else if (profileForm.elements['relationship_user'].value == '') { profileForm.elements['relationship_user'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['location_family'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['full_name'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['postalCode'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['dob'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['city'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['state'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['user_country'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['cnic'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['candidateEmail'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['mobileNumber'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['lastName'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['firstName'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; alert("Relationship Required."); profileForm.elements['relationship_user'].focus(); profileForm.elements['relationship_user'].style.borderColor = 'red'; return false; } else return true; } else return true; } //else if(currentTab == 2 && (user.expId && user.expId!=0)) { else if (currentTab == 2) { var valid = false; if (profileForm.elements['job_title'].value == '') { profileForm.elements['responsibilities'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['reason_leaving'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['position_type'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['position'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['professionalExperience_city'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['professionalExperience_state'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['professionalExperience_country'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['employer_type'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['company_name'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['exp_to'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['exp_from'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['exp_from'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['job_title'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; alert("Job Title Required."); profileForm.elements['job_title'].focus(); profileForm.elements['job_title'].style.borderColor = 'red'; valid = false; } else if (profileForm.elements['currently_working'].checked) { if (profileForm.elements['exp_from'].value == '') { profileForm.elements['responsibilities'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['reason_leaving'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['position_type'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['position'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['professionalExperience_city'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['professionalExperience_state'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['professionalExperience_country'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['employer_type'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['company_name'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['exp_to'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['exp_from'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['exp_from'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['job_title'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; alert("From Date Required."); profileForm.elements['exp_from'].focus(); profileForm.elements['exp_from'].style.borderColor = 'red'; valid = false; } else valid = true; } else if (profileForm.elements['exp_from'].value == '') { profileForm.elements['responsibilities'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['reason_leaving'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['position_type'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['position'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['professionalExperience_city'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['professionalExperience_state'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['professionalExperience_country'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['employer_type'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['company_name'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['exp_to'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['exp_from'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['exp_from'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['job_title'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; alert("From Date Required."); profileForm.elements['exp_from'].focus(); profileForm.elements['exp_from'].style.borderColor = 'red'; valid = false; } else if (profileForm.elements['exp_to'].value == '') { profileForm.elements['responsibilities'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['reason_leaving'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['position_type'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['position'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['professionalExperience_city'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['professionalExperience_state'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['professionalExperience_country'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['employer_type'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['company_name'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['exp_to'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['exp_from'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['exp_from'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['job_title'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; alert("To Date Required."); profileForm.elements['exp_to'].focus(); profileForm.elements['exp_to'].style.borderColor = 'red'; valid = false; } else if (profileForm.elements['company_name'].value == '') { profileForm.elements['responsibilities'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['reason_leaving'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['position_type'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['position'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['professionalExperience_city'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['professionalExperience_state'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['professionalExperience_country'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['employer_type'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['company_name'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['exp_to'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['exp_from'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['exp_from'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['job_title'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; alert("Company Name Required."); profileForm.elements['company_name'].focus(); profileForm.elements['company_name'].style.borderColor = 'red'; valid = false; } else if (profileForm.elements['employer_type'].value == '') { profileForm.elements['responsibilities'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['reason_leaving'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['position_type'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['position'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['professionalExperience_city'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['professionalExperience_state'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['professionalExperience_country'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['employer_type'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['company_name'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['exp_to'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['exp_from'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['exp_from'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['job_title'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; alert("Company Sector Required."); profileForm.elements['employer_type'].focus(); profileForm.elements['employer_type'].style.borderColor = 'red'; valid = false; } else if (profileForm.elements['professionalExperience_country'].value == '') { profileForm.elements['responsibilities'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['reason_leaving'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['position_type'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['position'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['professionalExperience_city'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['professionalExperience_state'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['professionalExperience_country'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['employer_type'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['company_name'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['exp_to'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['exp_from'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['exp_from'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['job_title'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; alert("Country Required."); profileForm.elements['professionalExperience_country'].focus(); profileForm.elements['professionalExperience_country'].style.borderColor = 'red'; valid = false; } else if (profileForm.elements['professionalExperience_state'].value == '') { profileForm.elements['responsibilities'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['reason_leaving'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['position_type'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['position'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['professionalExperience_city'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['professionalExperience_state'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['professionalExperience_country'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['employer_type'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['company_name'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['exp_to'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['exp_from'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['exp_from'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['job_title'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; alert("State Required."); profileForm.elements['professionalExperience_state'].focus(); profileForm.elements['professionalExperience_state'].style.borderColor = 'red'; valid = false; } else if (profileForm.elements['professionalExperience_city'].value == '') { profileForm.elements['responsibilities'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['reason_leaving'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['position_type'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['position'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['professionalExperience_city'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['professionalExperience_state'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['professionalExperience_country'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['employer_type'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['company_name'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['exp_to'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['exp_from'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['exp_from'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['job_title'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; alert("City Required."); profileForm.elements['professionalExperience_city'].focus(); profileForm.elements['professionalExperience_city'].style.borderColor = 'red'; valid = false; } else if (profileForm.elements['position'].value == '') { profileForm.elements['responsibilities'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['reason_leaving'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['position_type'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['position'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['professionalExperience_city'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['professionalExperience_state'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['professionalExperience_country'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['employer_type'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['company_name'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['exp_to'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['exp_from'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['exp_from'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['job_title'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; alert("Designation Required."); profileForm.elements['position'].focus(); profileForm.elements['position'].style.borderColor = 'red'; valid = false; } else if (profileForm.elements['position_type'].value == '') { profileForm.elements['responsibilities'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['reason_leaving'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['position_type'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['position'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['professionalExperience_city'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['professionalExperience_state'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['professionalExperience_country'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['employer_type'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['company_name'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['exp_to'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['exp_from'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['exp_from'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['job_title'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; alert("Job Type Required."); profileForm.elements['position_type'].focus(); profileForm.elements['position_type'].style.borderColor = 'red'; valid = false; } else if (profileForm.elements['reason_leaving'].value == '') { profileForm.elements['responsibilities'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['reason_leaving'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['position_type'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['position'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['professionalExperience_city'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['professionalExperience_state'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['professionalExperience_country'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['employer_type'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['company_name'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['exp_to'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['exp_from'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['exp_from'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['job_title'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; alert("Reason Required."); profileForm.elements['reason_leaving'].focus(); profileForm.elements['reason_leaving'].style.borderColor = 'red'; valid = false; } else if (profileForm.elements['responsibilities'].value == '') { profileForm.elements['responsibilities'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['reason_leaving'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['position_type'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['position'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['professionalExperience_city'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['professionalExperience_state'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['professionalExperience_country'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['employer_type'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['company_name'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['exp_to'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['exp_from'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['exp_from'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['job_title'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; alert("Responsibilities Required."); profileForm.elements['responsibilities'].focus(); profileForm.elements['responsibilities'].style.borderColor = 'red'; valid = false; } else valid = true; return valid; } //else if(currentTab == 3 && (user.resumeId && user.resumeId!=0)) { else if (currentTab == 3) { var resumeForm = document.forms['regForm']; if (resumeForm.elements['resume_url'].files.length < 1) { resumeForm.elements['resume_url'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; resumeForm.elements['cover_letter_url'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; resumeForm.elements['cover_letter_url'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; resumeForm.elements['resume_url'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; resumeForm.elements['resume_name'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; resumeForm.elements['cover_letter'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; alert("Resume File Required."); resumeForm.elements['resume_url'].focus(); resumeForm.elements['resume_url'].style.borderColor = 'red'; return false; } else if (resumeForm.elements['cover_letter_url'].files.length < 1) { resumeForm.elements['resume_url'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; resumeForm.elements['cover_letter_url'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; resumeForm.elements['cover_letter_url'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; resumeForm.elements['resume_url'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; resumeForm.elements['resume_name'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; resumeForm.elements['cover_letter'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; alert("Cover Letter File Required."); resumeForm.elements['cover_letter_url'].focus(); resumeForm.elements['cover_letter_url'].style.borderColor = 'red'; return false; } else if (resumeForm.elements['cover_letter_url'].files[0].size > 10485760) { resumeForm.elements['resume_url'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; resumeForm.elements['cover_letter_url'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; resumeForm.elements['cover_letter_url'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; resumeForm.elements['resume_url'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; resumeForm.elements['resume_name'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; resumeForm.elements['cover_letter'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; alert("File Size should be less then 10MB"); resumeForm.elements['cover_letter_url'].focus(); resumeForm.elements['cover_letter_url'].style.borderColor = 'red'; return false; } else if (resumeForm.elements['resume_url'].files[0].size > 10485760) { resumeForm.elements['resume_url'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; resumeForm.elements['cover_letter_url'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; resumeForm.elements['cover_letter_url'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; resumeForm.elements['resume_url'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; resumeForm.elements['resume_name'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; resumeForm.elements['cover_letter'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; alert("File Size should be less then 10MB"); resumeForm.elements['resume_url'].focus(); resumeForm.elements['resume_url'].style.borderColor = 'red'; return false; } else if (resumeForm.elements['resume_name'].value == '') { resumeForm.elements['resume_url'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; resumeForm.elements['cover_letter_url'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; resumeForm.elements['cover_letter_url'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; resumeForm.elements['resume_url'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; resumeForm.elements['resume_name'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; resumeForm.elements['cover_letter'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; alert("Resume Title Required."); resumeForm.elements['resume_name'].focus(); resumeForm.elements['resume_name'].style.borderColor = 'red'; return false; } else if (resumeForm.elements['cover_letter'].value == '') { resumeForm.elements['resume_url'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; resumeForm.elements['cover_letter_url'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; resumeForm.elements['cover_letter_url'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; resumeForm.elements['resume_url'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; resumeForm.elements['resume_name'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; resumeForm.elements['cover_letter'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; alert("Cover Letter Title Required."); resumeForm.elements['cover_letter'].focus(); resumeForm.elements['cover_letter'].style.borderColor = 'red'; return false; } else return true; } //else if(currentTab == 4 && (user.eduId && user.eduId!=0)) { else if (currentTab == 4) { var educationForm = document.forms['regForm']; if (educationForm.elements['education'].value == '') { educationForm.elements['edu_scanned_copy'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; educationForm.elements['educationalExperience_city'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; educationForm.elements['educationalExperience_state'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; educationForm.elements['educationalExperience_country'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; educationForm.elements['edu_to'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; educationForm.elements['edu_from'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; educationForm.elements['field_of_study'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; educationForm.elements['grade_cgpa'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; educationForm.elements['school_name'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; educationForm.elements['education'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; alert("Education/Degree Required."); educationForm.elements['education'].focus(); educationForm.elements['education'].style.borderColor = 'red'; return false; } else if (educationForm.elements['school_name'].value == '') { educationForm.elements['edu_scanned_copy'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; educationForm.elements['educationalExperience_city'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; educationForm.elements['educationalExperience_state'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; educationForm.elements['educationalExperience_country'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; educationForm.elements['edu_to'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; educationForm.elements['edu_from'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; educationForm.elements['field_of_study'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; educationForm.elements['grade_cgpa'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; educationForm.elements['school_name'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; educationForm.elements['education'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; alert("School/Institute Required."); educationForm.elements['school_name'].focus(); educationForm.elements['school_name'].style.borderColor = 'red'; return false; } else if (educationForm.elements['grade_cgpa'].value == '') { educationForm.elements['edu_scanned_copy'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; educationForm.elements['educationalExperience_city'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; educationForm.elements['educationalExperience_state'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; educationForm.elements['educationalExperience_country'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; educationForm.elements['edu_to'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; educationForm.elements['edu_from'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; educationForm.elements['field_of_study'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; educationForm.elements['grade_cgpa'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; educationForm.elements['school_name'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; educationForm.elements['education'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; alert("Grade Required."); educationForm.elements['grade_cgpa'].focus(); educationForm.elements['grade_cgpa'].style.borderColor = 'red'; return false; } else if (educationForm.elements['field_of_study'].value == '') { educationForm.elements['edu_scanned_copy'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; educationForm.elements['educationalExperience_city'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; educationForm.elements['educationalExperience_state'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; educationForm.elements['educationalExperience_country'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; educationForm.elements['edu_to'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; educationForm.elements['edu_from'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; educationForm.elements['field_of_study'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; educationForm.elements['grade_cgpa'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; educationForm.elements['school_name'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; educationForm.elements['education'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; alert("Field of Study Required."); educationForm.elements['field_of_study'].focus(); educationForm.elements['field_of_study'].style.borderColor = 'red'; return false; } else if (educationForm.elements['edu_from'].value == '') { educationForm.elements['edu_scanned_copy'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; educationForm.elements['educationalExperience_city'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; educationForm.elements['educationalExperience_state'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; educationForm.elements['educationalExperience_country'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; educationForm.elements['edu_to'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; educationForm.elements['edu_from'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; educationForm.elements['field_of_study'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; educationForm.elements['grade_cgpa'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; educationForm.elements['school_name'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; educationForm.elements['education'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; alert("From Date Required."); educationForm.elements['edu_from'].focus(); educationForm.elements['edu_from'].style.borderColor = 'red'; return false; } else if (educationForm.elements['edu_to'].value == '') { educationForm.elements['edu_scanned_copy'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; educationForm.elements['educationalExperience_city'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; educationForm.elements['educationalExperience_state'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; educationForm.elements['educationalExperience_country'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; educationForm.elements['edu_to'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; educationForm.elements['edu_from'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; educationForm.elements['field_of_study'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; educationForm.elements['grade_cgpa'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; educationForm.elements['school_name'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; educationForm.elements['education'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; alert("To Date Required."); educationForm.elements['edu_to'].focus(); educationForm.elements['edu_to'].style.borderColor = 'red'; return false; } else if (educationForm.elements['educationalExperience_country'].value == '') { educationForm.elements['edu_scanned_copy'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; educationForm.elements['educationalExperience_city'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; educationForm.elements['educationalExperience_state'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; educationForm.elements['educationalExperience_country'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; educationForm.elements['edu_to'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; educationForm.elements['edu_from'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; educationForm.elements['field_of_study'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; educationForm.elements['grade_cgpa'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; educationForm.elements['school_name'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; educationForm.elements['education'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; alert("Country Required."); educationForm.elements['educationalExperience_country'].focus(); educationForm.elements['educationalExperience_country'].style.borderColor = 'red'; return false; } else if (educationForm.elements['educationalExperience_state'].value == '') { educationForm.elements['edu_scanned_copy'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; educationForm.elements['educationalExperience_city'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; educationForm.elements['educationalExperience_state'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; educationForm.elements['educationalExperience_country'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; educationForm.elements['edu_to'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; educationForm.elements['edu_from'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; educationForm.elements['field_of_study'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; educationForm.elements['grade_cgpa'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; educationForm.elements['school_name'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; educationForm.elements['education'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; alert("State Required."); educationForm.elements['educationalExperience_state'].focus(); educationForm.elements['educationalExperience_state'].style.borderColor = 'red'; return false; } else if (educationForm.elements['educationalExperience_city'].value == '') { educationForm.elements['edu_scanned_copy'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; educationForm.elements['educationalExperience_city'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; educationForm.elements['educationalExperience_state'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; educationForm.elements['educationalExperience_country'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; educationForm.elements['edu_to'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; educationForm.elements['edu_from'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; educationForm.elements['field_of_study'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; educationForm.elements['grade_cgpa'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; educationForm.elements['school_name'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; educationForm.elements['education'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; alert("City Required."); educationForm.elements['educationalExperience_city'].focus(); educationForm.elements['educationalExperience_city'].style.borderColor = 'red'; return false; } else if (educationForm.elements['edu_scanned_copy'].files.length > 0 && educationForm.elements['edu_scanned_copy'].files[0].size > 10485760) { educationForm.elements['edu_scanned_copy'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; educationForm.elements['educationalExperience_city'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; educationForm.elements['educationalExperience_state'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; educationForm.elements['educationalExperience_country'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; educationForm.elements['edu_to'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; educationForm.elements['edu_from'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; educationForm.elements['field_of_study'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; educationForm.elements['grade_cgpa'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; educationForm.elements['school_name'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; educationForm.elements['education'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; alert("File Size should be less then 10MB"); educationForm.elements['edu_scanned_copy'].focus(); educationForm.elements['edu_scanned_copy'].style.borderColor = 'red'; return false; } else return true; } //else if(currentTab == 5 && (user.certificateId && user.certificateId!=0)) { else if (currentTab == 5) { var professionalCertificateForm = document.forms['regForm']; if (professionalCertificateForm.elements['certificate_name'].value == '') { professionalCertificateForm.elements['certificate_scanned_copy'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; professionalCertificateForm.elements['authorized_institute'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; professionalCertificateForm.elements['certification_year'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; professionalCertificateForm.elements['description'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; professionalCertificateForm.elements['certificate_to'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; professionalCertificateForm.elements['certificate_from'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; professionalCertificateForm.elements['certificate_name'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; alert("Certificate Name Required."); professionalCertificateForm.elements['certificate_name'].focus(); professionalCertificateForm.elements['certificate_name'].style.borderColor = 'red'; return false; } else if (professionalCertificateForm.elements['certificate_from'].value == '') { professionalCertificateForm.elements['certificate_scanned_copy'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; professionalCertificateForm.elements['authorized_institute'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; professionalCertificateForm.elements['certification_year'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; professionalCertificateForm.elements['description'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; professionalCertificateForm.elements['certificate_to'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; professionalCertificateForm.elements['certificate_from'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; professionalCertificateForm.elements['certificate_name'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; alert("From Date Required."); professionalCertificateForm.elements['certificate_from'].focus(); professionalCertificateForm.elements['certificate_from'].style.borderColor = 'red'; return false; } else if (professionalCertificateForm.elements['certificate_to'].value == '') { professionalCertificateForm.elements['certificate_scanned_copy'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; professionalCertificateForm.elements['authorized_institute'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; professionalCertificateForm.elements['certification_year'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; professionalCertificateForm.elements['description'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; professionalCertificateForm.elements['certificate_to'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; professionalCertificateForm.elements['certificate_from'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; professionalCertificateForm.elements['certificate_name'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; alert("To Date Required."); professionalCertificateForm.elements['certificate_to'].focus(); professionalCertificateForm.elements['certificate_to'].style.borderColor = 'red'; return false; } else if (professionalCertificateForm.elements['description'].value == '') { professionalCertificateForm.elements['certificate_scanned_copy'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; professionalCertificateForm.elements['authorized_institute'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; professionalCertificateForm.elements['certification_year'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; professionalCertificateForm.elements['description'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; professionalCertificateForm.elements['certificate_to'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; professionalCertificateForm.elements['certificate_from'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; professionalCertificateForm.elements['certificate_name'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; alert("Description Required."); professionalCertificateForm.elements['description'].focus(); professionalCertificateForm.elements['description'].style.borderColor = 'red'; return false; } else if (professionalCertificateForm.elements['certification_year'].value == '') { professionalCertificateForm.elements['certificate_scanned_copy'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; professionalCertificateForm.elements['authorized_institute'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; professionalCertificateForm.elements['certification_year'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; professionalCertificateForm.elements['description'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; professionalCertificateForm.elements['certificate_to'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; professionalCertificateForm.elements['certificate_from'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; professionalCertificateForm.elements['certificate_name'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; alert("Year Required."); professionalCertificateForm.elements['certification_year'].focus(); professionalCertificateForm.elements['certification_year'].style.borderColor = 'red'; return false; } else if (professionalCertificateForm.elements['authorized_institute'].value == '') { professionalCertificateForm.elements['certificate_scanned_copy'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; professionalCertificateForm.elements['authorized_institute'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; professionalCertificateForm.elements['certification_year'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; professionalCertificateForm.elements['description'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; professionalCertificateForm.elements['certificate_to'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; professionalCertificateForm.elements['certificate_from'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; professionalCertificateForm.elements['certificate_name'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; alert("Institute Required."); professionalCertificateForm.elements['authorized_institute'].focus(); professionalCertificateForm.elements['authorized_institute'].style.borderColor = 'red'; return false; } else if (professionalCertificateForm.elements['certificate_scanned_copy'].files.length > 0 && professionalCertificateForm.elements['certificate_scanned_copy'].files[0].size > 10485760) { professionalCertificateForm.elements['certificate_scanned_copy'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; professionalCertificateForm.elements['authorized_institute'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; professionalCertificateForm.elements['certification_year'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; professionalCertificateForm.elements['description'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; professionalCertificateForm.elements['certificate_to'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; professionalCertificateForm.elements['certificate_from'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; professionalCertificateForm.elements['certificate_name'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; alert("File Size should be less then 10MB"); professionalCertificateForm.elements['certificate_scanned_copy'].focus(); professionalCertificateForm.elements['certificate_scanned_copy'].style.borderColor = 'red'; return false; } else return true; } //else if(currentTab == 6 && (user.membershipAwardId && user.membershipAwardId!=0)) { else if (currentTab == 6) { var membershipForm = document.forms['regForm']; if (membershipForm.elements['membership_title'].value == '') { membershipForm.elements['memberships_certificate'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; membershipForm.elements['memberships_year'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; membershipForm.elements['membership_title'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; alert("Memberships Title Required."); membershipForm.elements['membership_title'].focus(); membershipForm.elements['membership_title'].style.borderColor = 'red'; return false; } else if (membershipForm.elements['memberships_year'].value == '') { membershipForm.elements['memberships_certificate'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; membershipForm.elements['memberships_year'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; membershipForm.elements['membership_title'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; alert("Year Required."); membershipForm.elements['memberships_year'].focus(); membershipForm.elements['memberships_year'].style.borderColor = 'red'; return false; } else if (membershipForm.elements['memberships_certificate'].files.length > 0 && membershipForm.elements['memberships_certificate'].files[0].size > 10485760) { membershipForm.elements['memberships_certificate'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; membershipForm.elements['memberships_year'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; membershipForm.elements['membership_title'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; alert("File Size should be less then 10MB"); membershipForm.elements['memberships_certificate'].focus(); membershipForm.elements['memberships_certificate'].style.borderColor = 'red'; return false; } else return true; } //else if(currentTab == 7 && (user.membershipAwardId && user.membershipAwardId!=0)) { else if (currentTab == 7) { var membershipForm = document.forms['regForm']; if (membershipForm.elements['award'].value == '') { membershipForm.elements['award'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; membershipForm.elements['awards_year'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; membershipForm.elements['awards_certificate'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; alert("Awards/Achievements Required."); membershipForm.elements['award'].focus(); membershipForm.elements['award'].style.borderColor = 'red'; return false; } else if (membershipForm.elements['awards_year'].value == '') { membershipForm.elements['award'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; membershipForm.elements['awards_year'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; membershipForm.elements['awards_certificate'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; alert("Year Required."); membershipForm.elements['awards_year'].focus(); membershipForm.elements['awards_year'].style.borderColor = 'red'; return false; } else if (membershipForm.elements['awards_certificate'].files.length > 0 && membershipForm.elements['awards_certificate'].files[0].size > 10485760) { membershipForm.elements['award'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; membershipForm.elements['awards_year'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; membershipForm.elements['awards_certificate'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; alert("File Size should be less then 10MB"); membershipForm.elements['awards_certificate'].focus(); membershipForm.elements['awards_certificate'].style.borderColor = 'red'; return false; } else return true; } //else if(currentTab == 8 && (user.referenceId && user.referenceId!=0)) { else if (currentTab == 8) { var professionalReferenceForm = document.forms['regForm']; var EmailStatus = ValidateEmail('email1', 'lblError1'); if (professionalReferenceForm.elements['name1'].value == '') { professionalReferenceForm.elements['relationship'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; professionalReferenceForm.elements['phone1'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; professionalReferenceForm.elements['email1'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; professionalReferenceForm.elements['desgination1'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; professionalReferenceForm.elements['name1'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; alert("Full Name Required."); professionalReferenceForm.elements['name1'].focus(); professionalReferenceForm.elements['name1'].style.borderColor = 'red'; return false; } else if (professionalReferenceForm.elements['relationship'].value == '') { professionalReferenceForm.elements['relationship'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; professionalReferenceForm.elements['phone1'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; professionalReferenceForm.elements['email1'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; professionalReferenceForm.elements['desgination1'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; professionalReferenceForm.elements['name1'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; alert("Relationship Required."); professionalReferenceForm.elements['relationship'].focus(); professionalReferenceForm.elements['relationship'].style.borderColor = 'red'; return false; } else if (professionalReferenceForm.elements['desgination1'].value == '') { professionalReferenceForm.elements['relationship'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; professionalReferenceForm.elements['phone1'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; professionalReferenceForm.elements['email1'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; professionalReferenceForm.elements['desgination1'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; professionalReferenceForm.elements['name1'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; alert("Designation Required."); professionalReferenceForm.elements['desgination1'].focus(); professionalReferenceForm.elements['desgination1'].style.borderColor = 'red'; return false; } else if (professionalReferenceForm.elements['phone1'].value == '') { professionalReferenceForm.elements['relationship'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; professionalReferenceForm.elements['phone1'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; professionalReferenceForm.elements['email1'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; professionalReferenceForm.elements['desgination1'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; professionalReferenceForm.elements['name1'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; alert("Phone Number Required."); professionalReferenceForm.elements['phone1'].focus(); professionalReferenceForm.elements['phone1'].style.borderColor = 'red'; return false; } else if (professionalReferenceForm.elements['email1'].value == '') { professionalReferenceForm.elements['relationship'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; professionalReferenceForm.elements['phone1'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; professionalReferenceForm.elements['email1'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; professionalReferenceForm.elements['desgination1'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; professionalReferenceForm.elements['name1'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; alert("Email Required."); professionalReferenceForm.elements['email1'].focus(); professionalReferenceForm.elements['email1'].style.borderColor = 'red'; return false; } else if (EmailStatus == false) { professionalReferenceForm.elements['relationship'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; professionalReferenceForm.elements['phone1'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; professionalReferenceForm.elements['email1'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; professionalReferenceForm.elements['desgination1'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; professionalReferenceForm.elements['name1'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; alert("Email Required."); professionalReferenceForm.elements['email1'].focus(); professionalReferenceForm.elements['email1'].style.borderColor = 'red'; return false; } else return true; } else if (currentTab == 9) { var valid = false; //alert(profileForm.elements['isAgree'].checked) if (profileForm.elements['can_join'].value == '') { profileForm.elements['other_benefits'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['expected_salary'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['current_salary'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['can_join'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; alert("Joining Time Required."); profileForm.elements['can_join'].focus(); profileForm.elements['can_join'].style.borderColor = 'red'; valid = false; } else if (profileForm.elements['current_salary'].value == '') { profileForm.elements['other_benefits'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['expected_salary'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['current_salary'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['can_join'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; alert("Current Salary Required."); profileForm.elements['current_salary'].focus(); profileForm.elements['current_salary'].style.borderColor = 'red'; valid = false; } else if (profileForm.elements['expected_salary'].value == '') { profileForm.elements['other_benefits'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['expected_salary'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['current_salary'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['can_join'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; alert("Expected Salary Required."); profileForm.elements['expected_salary'].focus(); profileForm.elements['expected_salary'].style.borderColor = 'red'; valid = false; } else if (profileForm.elements['isAgree'].checked == false) { alert("Please click on I Agree."); //profileForm.elements['isAgree'].focus(); valid = false; } else if (profileForm.elements['Other'].checked) { if (profileForm.elements['other_benefits'].value == '') { profileForm.elements['other_benefits'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['expected_salary'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['current_salary'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; profileForm.elements['can_join'].style.borderColor = 'rgba(0, 0, 0, 0.07)'; alert("Other Benefits Required."); profileForm.elements['other_benefits'].focus(); profileForm.elements['other_benefits'].style.borderColor = 'red'; valid = false; } else valid = true; } else valid = true; //alert(valid); return valid; } else if (currentTab == 10) { //alert(JSON.stringify(obj)); var valid = false; var obj = { checkbox: false, radio: false, textarea: false } var mcqForm = document.forms['regForm']; var total_mcq = document.getElementById('total_mcq').value; //var validArray = []; var validArray = new Array(total_mcq - 1); //alert('validArray'+validArray.length); if (total_mcq == 1) { return true; }//alert(total_mcq); for (var i = 1; i < total_mcq; i++) { //alert(i-1); if (document.getElementsByName('mcq_answer_radio[' + i + ']').length > 0) { //alert(validArray[i-1]); valid = false; //alert(document.getElementsByName('mcq_answer_radio['+i+']').length); for (var j = 1; j <= document.getElementsByName('mcq_answer_radio[' + i + ']').length; j++) { if (document.getElementById('mcq_answer_radio[' + i + '][' + j + ']').checked) { //alert(document.getElementById('mcq_answer_radio['+i+']['+j+']').value); if (validArray.length > 0) { //for(var p=0;p0) { //resposta.push(); //Alarm(validArray[i-1]); vรกlido = falso; //alert(document.getElementsByName('mcq_answer_checkbox['+i+'][]').length); for (var j = 1; j <= document.getElementsByName('mcq_answer_checkbox[' + i + '][]').length; j++) { if (document.getElementById('mcq_answer_checkbox[' + i + '][' + j + ']').checked) { //alert(document.getElementById('mcq_answer_checkbox['+i+']['+j+']').value); if (validArray.length > 0) { //for(var p=0;p0) { //for(var p=0;p

Videos

1. ๐—”๐—น๐—น ๐—ฃ๐—ฎ๐—ธ๐—ถ๐˜€๐˜๐—ฎ๐—ป ๐—–๐—ต๐—ฎ๐—ฟ๐˜๐—ฒ๐—ฟ๐—ฒ๐—ฑ ๐—”๐—ฐ๐—ฐ๐—ผ๐˜‚๐—ป๐˜๐—ฎ๐—ป๐˜๐˜€ ๐—–๐—ผ๐—ป๐—ณ๐—ฒ๐—ฟ๐—ฒ๐—ป๐—ฐ๐—ฒ ๐Ÿฎ๐Ÿฌ๐Ÿฎ๐Ÿฎ
(ICAP)
2. Top 10 Hidden Gems on Hulu
(MsMojo)
3. ๐—”๐—น๐—น ๐—ฃ๐—ฎ๐—ธ๐—ถ๐˜€๐˜๐—ฎ๐—ป ๐—–๐—ต๐—ฎ๐—ฟ๐˜๐—ฒ๐—ฟ๐—ฒ๐—ฑ ๐—”๐—ฐ๐—ฐ๐—ผ๐˜‚๐—ป๐˜๐—ฎ๐—ป๐˜๐˜€ ๐—–๐—ผ๐—ป๐—ณ๐—ฒ๐—ฟ๐—ฒ๐—ป๐—ฐ๐—ฒ ๐Ÿฎ๐Ÿฌ๐Ÿฎ๐Ÿฎ
(ICAP)
4. All Pakistan Chartered Accountants Conference 2022
(ICAP)
5. ๐—”๐—น๐—น ๐—ฃ๐—ฎ๐—ธ๐—ถ๐˜€๐˜๐—ฎ๐—ป ๐—–๐—ต๐—ฎ๐—ฟ๐˜๐—ฒ๐—ฟ๐—ฒ๐—ฑ ๐—”๐—ฐ๐—ฐ๐—ผ๐˜‚๐—ป๐˜๐—ฎ๐—ป๐˜๐˜€ ๐—–๐—ผ๐—ป๐—ณ๐—ฒ๐—ฟ๐—ฒ๐—ป๐—ฐ๐—ฒ ๐Ÿฎ๐Ÿฌ๐Ÿฎ๐Ÿฎ
(ICAP)
6. Direct Jobs in the USA (America)
(Shajji Pakistani bhai)
Top Articles
Latest Posts
Article information

Author: Sen. Ignacio Ratke

Last Updated: 03/19/2023

Views: 6134

Rating: 4.6 / 5 (76 voted)

Reviews: 91% of readers found this page helpful

Author information

Name: Sen. Ignacio Ratke

Birthday: 1999-05-27

Address: Apt. 171 8116 Bailey Via, Roberthaven, GA 58289

Phone: +2585395768220

Job: Lead Liaison

Hobby: Lockpicking, LARPing, Lego building, Lapidary, Macrame, Book restoration, Bodybuilding

Introduction: My name is Sen. Ignacio Ratke, I am a adventurous, zealous, outstanding, agreeable, precious, excited, gifted person who loves writing and wants to share my knowledge and understanding with you.