var loginMsg = "Please click forget password to retrieve your password via your E-mail. It should arrive in about 1 minute or less. Check your Spam or Junk folder if you do not see the email in your inbox.

Send Password"; function checkClientEmailExist() { var email = "", referralCode = 1; email = document.borrowerInfoForm.clientEmail.value; try { email = trim(email); } catch(e) {} referralCode = document.borrowerInfoForm.referralSiteCode.value; try { referralCode = trim(referralCode); } catch(e) {} var url = "checkClientEmailExist.php"; var qstr = "email="+email+"&rc="+referralCode; var xmlDoc = "", status = "", encClientId = 0, allowToResetPwd = 0; if(email !="") { try { xmlDoc = getXMLDoc(url,qstr); } catch (e) {} } try { status = xmlDoc.getElementsByTagName("status")[0].firstChild.nodeValue; } catch (e) {} try { encClientId = xmlDoc.getElementsByTagName("encClientId")[0].firstChild.nodeValue; } catch (e) {} try { allowToResetPwd = xmlDoc.getElementsByTagName("allowToResetPwd")[0].firstChild.nodeValue; } catch (e) {} if(status == "Exist") { if(allowToResetPwd == 1) { var clientFName = "", clientLName = "", clientPhone1 = "", clientPhone2 = ""; var clientPhone3 = "", clientExt = "", clientCell1 = "", clientCell2 = ""; var clientCell3 = "", serviceProvider = "", clientAddress = "", clientCity = ""; var clientState = "", clientZip = "", timeZone = "", hearAboutUs = ""; try { clientFName = xmlDoc.getElementsByTagName("clientFName")[0].firstChild.nodeValue; } catch (e) {} try { clientLName = xmlDoc.getElementsByTagName("clientLName")[0].firstChild.nodeValue; } catch (e) {} try { clientPhone1 = xmlDoc.getElementsByTagName("clientPhone1")[0].firstChild.nodeValue; } catch (e) {} try { clientPhone2 = xmlDoc.getElementsByTagName("clientPhone2")[0].firstChild.nodeValue; } catch (e) {} try { clientPhone3 = xmlDoc.getElementsByTagName("clientPhone3")[0].firstChild.nodeValue; } catch (e) {} try { clientExt = xmlDoc.getElementsByTagName("clientExt")[0].firstChild.nodeValue; } catch (e) {} try { clientCell1 = xmlDoc.getElementsByTagName("clientCell1")[0].firstChild.nodeValue; } catch (e) {} try { clientCell2 = xmlDoc.getElementsByTagName("clientCell2")[0].firstChild.nodeValue; } catch (e) {} try { clientCell3 = xmlDoc.getElementsByTagName("clientCell3")[0].firstChild.nodeValue; } catch (e) {} try { serviceProvider = xmlDoc.getElementsByTagName("serviceProvider")[0].firstChild.nodeValue; } catch (e) {} try { clientAddress = xmlDoc.getElementsByTagName("clientAddress")[0].firstChild.nodeValue; } catch (e) {} try { clientCity = xmlDoc.getElementsByTagName("clientCity")[0].firstChild.nodeValue; } catch (e) {} try { clientState = xmlDoc.getElementsByTagName("clientState")[0].firstChild.nodeValue; } catch (e) {} try { clientZip = xmlDoc.getElementsByTagName("clientZip")[0].firstChild.nodeValue; } catch (e) {} try { timeZone = xmlDoc.getElementsByTagName("timeZone")[0].firstChild.nodeValue; } catch (e) {} try { hearAboutUs = xmlDoc.getElementsByTagName("hearAboutUs")[0].firstChild.nodeValue; } catch (e) {} document.borrowerInfoForm.clientFName.value = clientFName; document.borrowerInfoForm.clientLName.value = clientLName; document.borrowerInfoForm.clientPhone1.value = clientPhone1; document.borrowerInfoForm.clientPhone2.value = clientPhone2; document.borrowerInfoForm.clientPhone3.value = clientPhone3; document.borrowerInfoForm.clientExt.value = clientExt; document.borrowerInfoForm.clientCell1.value = clientCell1; document.borrowerInfoForm.clientCell2.value = clientCell2; document.borrowerInfoForm.clientCell3.value = clientCell3; document.borrowerInfoForm.serviceProvider.value = serviceProvider; document.borrowerInfoForm.clientAddress.value = clientAddress; document.borrowerInfoForm.clientCity.value = clientCity; document.borrowerInfoForm.clientState.value = clientState; document.borrowerInfoForm.clientZip.value = clientZip; document.borrowerInfoForm.timeZone.value = timeZone; try { document.borrowerInfoForm.hearAboutUs.value = hearAboutUs; } catch (e) {} document.borrowerInfoForm.allowToResetPwd.value = 1; document.borrowerInfoForm.confirmClientEmail.value = email; document.borrowerInfoForm.clientEmail.disabled = true; document.borrowerInfoForm.confirmClientEmail.disabled = true; document.borrowerInfoForm.encClientId.value = encClientId; document.getElementById("butSubmit").disabled = false; var display = "
Please complete your contact info
"; try { document.getElementById('sessMsgDiv').innerHTML = display; } catch (e) {} try { document.getElementById('referrerAffCodeDiv').style.display = 'none'; } catch (e) {} document.borrowerInfoForm.action = DIYSslUrl+"sendClientInfo"+DIYPgOpt+".php"; // alert("Client Already Exists."); } else { document.borrowerInfoForm.allowToResetPwd.value = 0; document.getElementById("butSubmit").disabled = true; document.borrowerInfoForm.clientEmail.value = ''; document.borrowerInfoForm.action = "javascript:void(0);"; alert("Client Already Exists."); setTimeout("showPopupClientToLogin('"+email+"')","100"); try { document.getElementById('referrerAffCodeDiv').style.display = 'block'; } catch (e) {} } } else { document.borrowerInfoForm.allowToResetPwd.value = 0; document.getElementById("butSubmit").disabled = false; try { document.getElementById('referrerAffCodeDiv').style.display = 'block'; } catch (e) {} document.borrowerInfoForm.action = DIYSslUrl+"sendClientInfo"+DIYPgOpt+".php"; } } function showPopupClientToLogin(email) { showClientLoginWithAlert(); document.clientLoginForm.userId.value = email; document.clientLoginForm.pwd.focus(); } function showClientLoginWithAlert() { openMyPopup('divLoginPop','300','200','Login Form'); document.clientLoginForm.userId.focus(); document.getElementById("sessMsg").innerHTML = loginMsg; } function showClientLogin() { openMyPopup('divLoginPop','300','200','Login Form'); document.clientLoginForm.userId.focus(); document.getElementById("sessMsg").innerHTML = "Please Login"; } function closeMyPopup() { document.getElementById("divLoginPopContainer").style.display="none"; } function validateClientLoginForm() { if(isEmailOk('clientLoginForm','userId')&& chkIsBlank('clientLoginForm','pwd','Please enter the Password') ) { return true; } else { return false; } } function submitClientLoginFormNew() { var formVal = false; formVal = validateClientLoginForm(); if(formVal) { document.getElementById("sessMsg").innerHTML = ""; setTimeout("submitClientFormNew()","100"); } return false; } function submitClientFormNew() { var xmlDoc = ""; var clientEmail = ""; var pwd = ""; var status = 0; var msg = ""; var referralSiteCode = 1,paymentStatus = "",PLOPaymentGateway = ""; var encryptClientId =0, encLMRId = 0, clientAllowFreeLMR = 0; try { clientEmail = document.clientLoginForm.userId.value; } catch(e) {} try { pwd = document.clientLoginForm.pwd.value; } catch(e) {} try { referralSiteCode = document.clientLoginForm.referralSiteCode.value; } catch(e) {} var url = "checkClientEmail.php"; var qstr = "ce="+clientEmail+"&pwd="+pwd+"&rc="+referralSiteCode; try { xmlDoc = getXMLDoc(url,qstr); } catch(e) {} try { status = xmlDoc.getElementsByTagName("activeStatus")[0].firstChild.nodeValue; } catch (e) {} try { msg = xmlDoc.getElementsByTagName("msg")[0].firstChild.nodeValue; } catch (e) {} try { encryptClientId = xmlDoc.getElementsByTagName("encryptClientId")[0].firstChild.nodeValue; } catch (e) {} try { emailAuthOpt = xmlDoc.getElementsByTagName("emailAuthOpt")[0].firstChild.nodeValue; } catch (e) {} try { encLMRId = xmlDoc.getElementsByTagName("encLMRId")[0].firstChild.nodeValue; } catch (e) {} try { paymentStatus = xmlDoc.getElementsByTagName("paymentStatus")[0].firstChild.nodeValue; } catch (e) {} try { PLOPaymentGateway = document.clientInfoForm.PLOPaymentGateway.value; } catch (e) {} try { clientAllowFreeLMR = xmlDoc.getElementsByTagName("clientAllowFreeLMR")[0].firstChild.nodeValue; } catch (e) {} if(status == 1) { try { document.clientLoginForm.cId.value = encryptClientId; } catch (e) {} updateClientLastLoginDate(encryptClientId); setClientId(encryptClientId); updateClientLogin(encryptClientId,clientEmail); document.clientLoginForm.action = DIYSslUrl+"clientPipelineNew.php?cId="+encryptClientId+"&rs="+referralSiteCode; document.clientLoginForm.submit(); /* if((paymentStatus == "Paid") || (PLOPaymentGateway == "Free") || (clientAllowFreeLMR == "1")) { document.clientLoginForm.action = DIYSslUrl+"loanModificationFileNew.php?cId="+encryptClientId+"&rs="+referralSiteCode+"&lId="+encLMRId; } else { document.clientLoginForm.action = DIYUrl+"clientProfileNew.php?cId="+encryptClientId+"&rs="+referralSiteCode+"&lId="+encLMRId; } */ } else { updateClientLogin(encryptClientId,clientEmail); try { document.getElementById("sessMsg").innerHTML = msg; } catch(e) {} } } function submitClientLoginForm() { var formVal = false; formVal = validateClientLoginForm(); if(formVal) { document.getElementById("sessMsg").innerHTML = ""; setTimeout("submitClientForm()","100"); } return false; } function submitClientForm() { var xmlDoc = ""; var clientEmail = ""; var pwd = ""; var status = 0; var msg = ""; var referralSiteCode = 1,paymentStatus = "",PLOPaymentGateway = ""; var encryptClientId =0, encLMRId = 0, clientAllowFreeLMR = 0; try { clientEmail = document.clientLoginForm.userId.value; } catch(e) {} try { pwd = document.clientLoginForm.pwd.value; } catch(e) {} try { referralSiteCode = document.clientLoginForm.referralSiteCode.value; } catch(e) {} var url = "checkClientEmail.php"; var qstr = "ce="+clientEmail+"&pwd="+pwd+"&rc="+referralSiteCode; try { xmlDoc = getXMLDoc(url,qstr); } catch(e) {} try { status = xmlDoc.getElementsByTagName("activeStatus")[0].firstChild.nodeValue; } catch (e) {} try { msg = xmlDoc.getElementsByTagName("msg")[0].firstChild.nodeValue; } catch (e) {} try { encryptClientId = xmlDoc.getElementsByTagName("encryptClientId")[0].firstChild.nodeValue; } catch (e) {} try { emailAuthOpt = xmlDoc.getElementsByTagName("emailAuthOpt")[0].firstChild.nodeValue; } catch (e) {} try { encLMRId = xmlDoc.getElementsByTagName("encLMRId")[0].firstChild.nodeValue; } catch (e) {} try { paymentStatus = xmlDoc.getElementsByTagName("paymentStatus")[0].firstChild.nodeValue; } catch (e) {} try { PLOPaymentGateway = document.clientInfoForm.PLOPaymentGateway.value; } catch (e) {} try { clientAllowFreeLMR = xmlDoc.getElementsByTagName("clientAllowFreeLMR")[0].firstChild.nodeValue; } catch (e) {} if(status == 1) { try { document.clientLoginForm.cId.value = encryptClientId; } catch (e) {} updateClientLastLoginDate(encryptClientId); setClientId(encryptClientId); updateClientLogin(encryptClientId,clientEmail); if((paymentStatus == "Paid") || (PLOPaymentGateway == "Free") || (clientAllowFreeLMR == "1")) { // document.clientLoginForm.action = DIYSslUrl+"loanModificationFile.php?cId="+encryptClientId+"&rs="+referralSiteCode; document.clientLoginForm.action = DIYSslUrl+"clientPipeline.php?cId="+encryptClientId+"&rs="+referralSiteCode; } else { document.clientLoginForm.action = DIYSslUrl+"clientProfile.php?cId="+encryptClientId+"&rs="+referralSiteCode; } document.clientLoginForm.submit(); } else { updateClientLogin(encryptClientId,clientEmail); try { document.getElementById("sessMsg").innerHTML = msg; } catch(e) {} } } function setClientId(encryptClientId) { var url = "setClientId.php"; var qstr = "cId="+encryptClientId; try { xmlDoc = getXMLDoc(url,qstr); } catch(e) {} try { status = xmlDoc.getElementsByTagName("activeStatus")[0].firstChild.nodeValue; } catch (e) {} } function showAuthPopup(encryptClientId,referralSiteCode) { document.getElementById("sessMsg").innerHTML = ""; setTimeout("resendClientEmail('"+encryptClientId+"','"+referralSiteCode+"')","100"); } function resendClientEmail(encryptClientId,referralSiteCode) { var url = "reSendClientInfo.php"; var qstr = "cId="+encryptClientId+"&rc="+referralSiteCode; try { xmlDoc = getXMLDoc(url,qstr); } catch(e) {} try { document.getElementById("sessMsg").innerHTML = "Thank You, Your request was successful!
One more confirmation email has been sent to your mail address as per your request
Please check your mail box."; } catch(e) {} } function updateClientLastLoginDate(encryptClientId) { var activeStatus = 0; var url = "updateLastLoginDate.php"; var qstr = "cId="+encryptClientId; try { xmlDoc = getXMLDoc(url,qstr); } catch(e) {} try { activeStatus = xmlDoc.getElementsByTagName("activeStatus")[0].firstChild.nodeValue; } catch (e) {} } function updateClientLogin(encryptClientId,clientEmail) { var activeStatus = 0; var url = "updateClientLogin.php"; var qstr = "cId="+encryptClientId+"&cEm="+clientEmail; try { xmlDoc = getXMLDoc(url,qstr); } catch(e) {} try { activeStatus = xmlDoc.getElementsByTagName("activeStatus")[0].firstChild.nodeValue; } catch (e) {} } function clientForgotPwd() { if(isEmailOk('clientLoginForm','userId')) { try { document.getElementById("sessMsg").innerHTML = ""; } catch(e) {} setTimeout("sendClientPwd()","100"); } } function sendClientPwd() { var xmlDoc = ""; var email = ""; var referralSiteCode = 1; var msg = ""; try { email = document.clientLoginForm.userId.value; } catch(e) {} try { referralSiteCode = document.clientLoginForm.referralSiteCode.value; } catch(e) {} var url = "forgotClientPwd.php"; var qstr = "ce="+email+"&rc="+referralSiteCode; try { xmlDoc = getXMLDoc(url,qstr); } catch(e) {} try { msg = xmlDoc.getElementsByTagName("msg")[0].firstChild.nodeValue; } catch (e) {} try { document.getElementById("sessMsg").innerHTML = msg; } catch(e) {} } function showTabUrl(tabNumb) { var boNumb = 0, referralSiteCode = 1, LMRId = 0,LMRResponseId = 0, url = "#"; boNumb = document.clientInfoForm.encClientId.value; referralSiteCode = document.clientInfoForm.referralSiteCode.value; LMRId = document.clientInfoForm.encLMRId.value; LMRResponseId = document.clientInfoForm.encLRId.value; try { document.getElementById("divLoader").style.display = "block"; } catch(e) {} if(tabNumb == 2) { url = DIYSslUrl+"clientProfile.php?tabNumb="+tabNumb+"&cId="+boNumb+"&rs="+referralSiteCode+"&lId="+LMRId+"&rId="+LMRResponseId; } else { url = DIYSslUrl+"clientProfile.php?tabNumb="+tabNumb+"&cId="+boNumb+"&rs="+referralSiteCode+"&lId="+LMRId+"&rId="+LMRResponseId; } window.location.href = url; } function showPaymentDiv(opt,divId1,divId2,paymentType,planName,payAmount) { if(opt == 'show') { if(payAmount == "Contact Us") { try { document.getElementById(divId1).style.display ="none"; } catch(e) {} try { document.getElementById(divId2).style.display ="none"; } catch(e) {} try { document.getElementById("paymentDiv3").style.display ="none"; } catch(e) {} } else { try { document.getElementById(divId1).style.display ="block"; } catch(e) {} try { document.getElementById(divId2).style.display ="block"; } catch(e) {} } try { document.getElementById('acctDiv').innerHTML = planName; } catch(e) {} try { document.getElementById('amtDiv').innerHTML = payAmount; } catch(e) {} try { document.paymentInfoForm.membership.value = paymentType; } catch(e) {} if(payAmount == "Contact Us") { try { document.paymentInfoForm.dollarAmount.value = 0; } catch(e) {} } else { try { document.paymentInfoForm.dollarAmount.value = payAmount; } catch(e) {} } if(payAmount == "Contact Us") { } else if((payAmount == "0") || (payAmount == "0.00")) { try { document.getElementById(divId1).style.display ="none"; } catch(e) {} try { document.getElementById("paymentDiv3").style.display ="block"; } catch(e) {} } else { try { document.getElementById(divId1).style.display ="block"; } catch(e) {} try { document.getElementById("paymentDiv3").style.display ="none"; } catch(e) {} } } else { try { document.getElementById(divId1).style.display ="none"; } catch(e) {} try { document.getElementById(divId2).style.display ="none"; } catch(e) {} } } function submitCreditInfoForm() { var formVal1 = false; formVal1 = validateCreditInfoForm(); if(formVal1) { document.paymentInfoForm.submit(); } } function checkPaypalInfoForm() { var amount =0; amount = document.paymentInfoForm.amount.value; if((amount == 0) || (amount == "") || (amount == "$") || (amount == "$0")) { alert('Please Click on the buttons of your choice'); } else { submitPaypalInfoForm(); } } function showPaypalPaymentDiv(opt,divId1,paymentType,planName,payAmount) { if(opt == 'show') { if(payAmount == "Contact Us") { try { document.getElementById(divId1).style.display ="none"; } catch(e) {} } else { try { document.getElementById(divId1).style.display ="block"; } catch(e) {} } try { document.getElementById('acctDiv').innerHTML = planName; } catch(e) {} try { document.getElementById('amtDiv').innerHTML = payAmount; } catch(e) {} try { document.paymentInfoForm.amount.value = payAmount; } catch(e) {} try { document.paymentInfoForm.trackingId.value = paymentType; } catch(e) {} try { document.paymentInfoForm.membership.value = paymentType; } catch(e) {} if(payAmount == "Contact Us") { try { document.getElementById("paymentDiv1").style.display ="none"; } catch(e) {} try { document.getElementById("paymentDiv3").style.display ="none"; } catch(e) {} } else if((payAmount == "0") || (payAmount == "0.00")) { try { document.getElementById('freePyDiv').innerHTML = ""; } catch(e) {} try { document.getElementById("paymentDiv1").style.display ="none"; } catch(e) {} try { document.getElementById("paymentDiv3").style.display ="block"; } catch(e) {} } else { try { document.getElementById('freePyDiv').innerHTML = ''; } catch(e) {} try { document.getElementById("paymentDiv1").style.display ="block"; } catch(e) {} try { document.getElementById("paymentDiv3").style.display ="none"; } catch(e) {} submitPaypalInfoForm(); } } else { try { document.getElementById(divId1).style.display ="none"; } catch(e) {} } } function submitPaypalInfoForm() { window.self.close(); document.paymentInfoForm.submit(); } function submitFreeForm() { document.paymentInfoForm.action = DIYSslUrl+"submitMultiFreeMembership.php"; document.paymentInfoForm.submit(); } /* * Validate Credit Card Form. */ function validateCreditInfoForm() { if(chkIsBlank('paymentInfoForm','creditCardNumb','Please Enter the Credit Card Number') && chkIsBlank('paymentInfoForm','ccSecCode','Please Enter the Security Code') && chkIsBlank('paymentInfoForm','creditCardFName','Please Enter the Credit Card First Name') && chkIsBlank('paymentInfoForm','creditCardLName','Please Enter the Credit Card Last Name') && chkIsBlank('paymentInfoForm','billAddress','Please Enter the Billing Address') && chkIsBlank('paymentInfoForm','billCity','Please Enter the Billing City') && chkIsBlank('paymentInfoForm','billState','Please Enter the Billing State') && chkIsBlank('paymentInfoForm','billZip','Please Enter the Billing Zip Code') ) { if(validateCCForm()) { return true; } else { return false; } } else { return false; } } /* * Validate Credit Card Form Expiry Date. */ function validateCCForm() { if(isValidExpDate('paymentInfoForm','ccExpDate')) { return true; } return false; } function showClientPlanAlert(selOpt) { if(selOpt == 'Pro') { alert('You do not have access to Proposal module for your plan. Please upgrade or contact the Administrator.'); } else if(selOpt == 'ebook') { alert('You do not have access to E-book for your plan. Please upgrade or contact the Administrator.'); } }