function responseForRecruitingFirm(){alert("Functionality Coming soon...")}function validateAndCheck(g_loginType){if(g_loginType=="candidates"){submitForm="candidateForm"}varUserName=eval("document."+submitForm+".userName.value");varPassword=eval("document."+submitForm+".password.value");if(!validateFormFields(submitForm)){return false}if(g_loginType=="candidates"){$.post("validateCandidateLogin.asp",{userName:varUserName,password:varPassword,loginType:g_loginType},function(data){showLoginRespose_candidate(data)})}return false}function validateFormFields(submitForm){varUserName=eval("document."+submitForm+".userName.value");varPassword=eval("document."+submitForm+".password.value");if(varUserName==""){alert("You must provide an Email.");setFocusToUserName(submitForm);return false}if(varPassword==""){alert("You must provide a Password.");eval("document."+submitForm+".password.focus()");return false}else{return true}}function setFocusToUserName(submitForm){try{eval("document."+submitForm+".userName.focus()")}catch(e){}}function showLoginRespose_candidate(a){if(a.indexOf("Redirect")>=0){var b=a.split("<BR>");window.location="/Candidates/"+b[1]}else{if(a.indexOf("authFailed")>=0){alert("Invalid Email and Password combination. Please try again.");setFocusToUserName("candidateForm")}else{if(a.indexOf("NotInvitedUser")>=0){alert("Security violation detected.\nThe invitation link has been sent to a different user than the one you are trying. Please close the browser and try again!");setFocusToUserName("candidateForm")}}}}function sendPassword(g_loginType){if(g_loginType=="candidates"){submitForm="candidateForm"}varUserName=eval("document."+submitForm+".userName.value");if(varUserName==""){alert("Please provide your Email to get your Password");setFocusToUserName(submitForm);return false}if(g_loginType=="candidates"){submitPage="/candidates/getPassword.asp"}if(g_loginType=="candidates"){$.post(submitPage,{userName:varUserName},function(data){showPasswordResponse(data,submitForm)})}}function showPasswordResponse(b,a){alert(b);if(b.indexOf("Please provide a valid Email.")>=0){setFocusToUserName(a)}}function popup(c,b){if(!window.focus){return true}var a;if(typeof(c)=="string"){a=c}else{a=c.href}window.open(a,b,"width=1024,height=710,dependent=yes,left=0,top=0,resizable=no,toolbar=no,scrollbars=yes");return false}function changeMousePointer(a){if($.browser.msie){a.className="cursorHand"}else{a.className="cursorHand"}}function defaultMouse(a){if($.browser.msie){a.className="cursorDefault"}else{a.className="cursorDefault"}};
