var purchasePDataPermission; function setProperty(){ if (null!=document.forms[0]){ if (null!=document.forms[0].foreclosure_active&&gforeclosureactive.length>0){document.getElementById(gforeclosureactive).click();} if (null!=document.forms[0].cs_DEEDTYPE&&gcs_DEEDTYPE.length>0){document.getElementById(gcs_DEEDTYPE).click();} if (null!=document.forms[0].cs_FRCLSTAGE&&gcs_FRCLSTAGE.length>0){ var arr_FRCLSTAGE = gcs_FRCLSTAGE.split(","); for ( var j = 0; j < arr_FRCLSTAGE.length; j++ ){ document.getElementById(arr_FRCLSTAGE[j]).click(); } } if (null!=document.forms[0].inp_curr_address&&ginp_curr_address.length>0){document.getElementById("inp_curr_address").click();} if (null!=document.forms[0].inp_includeCoBorrower&&ginp_includeCoBorrower.length>0){document.getElementById("inp_includeCoBorrower").click();} if (null!=document.forms[0].ls_includeCoBorrower&&gls_includeCoBorrower.length>0){document.getElementById("ls_includeCoBorrower").click();} var sFields = ""; // Subject Search: Address, Advanced, Owner, APN, Range sFields += "address|city|state_address|zipcode_address|state_consumer|zipcode_consumer|"; sFields += "houseno|predirection|streetname|postdirection|suffix|unitno|zipcode_advancedaddress|city_advancedaddress|"; sFields += "houseno_from|houseno_to|streetname_range|city_range|state_range|zipcode_range|"; sFields += "lastname|firstname|ownercity|zipcode_ownername|"; sFields += "apn|zipcode_apn|"; // Foreclosure Search sFields += "fc_RWL|fc_AWN|fc_QUICKCITY|fc_QUICKZIP|"; sFields += "di_document_type|di_document_id|"; sFields += "preparedfor|preparedby|purchaseprice|purchasedate|transactiontype|propertytype|"; sFields += "lastsaledate|lastsaleamt|jobid|valuationdate|corevaluationdate|"; sFields += "certifiedestimatedvalue|"; // CASA sFields += "cas_valueationdate|cas_trackingname|cas_priorknownvalue|cas_priorknowndate|cas_priorknownsource|"; // LoanSafe sFields += "ls_address|ls_city|ls_state|ls_zip|"; sFields += "ls_estimatedvalue|ls_loannumber|ls_loanamount|"; sFields += "ls_firstname|ls_lastname|ls_age|ls_dob|ls_currentphoneno|ls_currentaddress|ls_currentcity|ls_currentstate|ls_currentzip|ls_occupationtitle|ls_baseincome|ls_ssn|ls_emptype|ls_employername|ls_empstreetaddress|ls_empcity|ls_empstate|ls_empzip|ls_empphonenumber|"; sFields += "ls_co_firstname|ls_co_lastname|ls_co_age|ls_co_dob|ls_co_currentphoneno|ls_co_currentaddress|ls_co_currentcity|ls_co_ssn|ls_co_currentstate|ls_co_currentzip|ls_co_occupationtitle|ls_co_baseincome|ls_co_emptype|ls_co_employername|ls_co_empstreetaddress|ls_co_empcity|ls_co_empstate|ls_co_empzip|ls_co_empphonenumber|"; sFields += "ls_primaryfico|ls_ltv|ls_cltv|ls_userdti|ls_loanpurpose|ls_propertypurpose|"; sFields += "ls_brokercode|ls_brokername|ls_brokeraddress|ls_brokercity|ls_brokerstate|ls_brokerzip|ls_brokerphone|ls_brokertaxid|"; //Loan Safe Fraud sFields += "LSF_USER_FRONT_END_RATIO|LSF_USER_PROP_TYPE_CODE|LSF_USER_LOAN_NUMBER|LSF_co2_currentstate|LSF_USER_LOAN_TYPE_CODE|LSF_co2_emptype|LSF_USER_FUND_DATE|LSF_USER_LOAN_AMOUNT|LSF_currentstate|"; sFields += "LSF_USER_ARM_MARGIN|LSF_APPRAISER_FIRSTNAME|LSF_USER_BROKER_POINT_AMT|LSF_USER_LOAN_PROD_CODE|LSF_USER_ACCT_MGR_LNAME|LSF_baseincome|LSF_co2_employmentyear|LSF_USER_PITI|LSF_USER_BROKER_FEE_AMT|"; sFields += "LSF_co2_currentphoneno|LSF_secondaryficoscore|LSF_BROKER_CITYSTATEZIP|LSF_BROKER_ADDRESS|LSF_currentcity|LSF_co1_baseincome|LSF_co2_lastname|LSF_co1_empstate|LSF_currentzip|LSF_yearsinprofession|LSF_co1_employmentyear|"; sFields += "LSF_dob|LSF_USER_BUS_UNIT_LEVEL2_MGR|LSF_empstate|LSF_USER_OCC_TYPE_CODE|LSF_empcity|LSF_USER_ARM_LIFETIME_CAP|LSF_lastname|LSF_zip|LSF_USER_FIRST_TIME_HOMEBUYER|LSF_employmentyear|LSF_USER_PURPOSE_CODE|"; sFields += "LSF_USER_LIEN_DESC|LSF_co1_ssn|LSF_USER_LOAN_OFF_LNAME|LSF_USER_ACCT_MGR_CODE|LSF_co1_currentphoneno|LSF_empstreetaddress|LSF_co1_firstname|LSF_USER_REFINANCE_PURPOSE|LSF_BROKER_TAX_ID|LSF_USER_PROP_COUNTY|"; sFields += "LSF_USER_BUS_UNIT_LEVEL1_MGR|LSF_USER_OCC_TYPE_DESC|LSF_USER_SERVICER_DESC|LSF_USER_BRANCH_DESC|LSF_co2_dob|LSF_co2_empstate|LSF_USER_TERM|LSF_USER_PURPOSE_DESC|LSF_USER_DOC_TYPE_DESC|LSF_employername|"; sFields += "LSF_primaryficoscore|LSF_co2_currentcity|LSF_USER_DTI|LSF_USER_CLTV|LSF_USER_LOAN_TYPE_DESC|LSF_USER_PREPAY_PENALTY_YRS|LSF_USER_ORIGINATOR_DESC|LSF_co2_currentzip|LSF_CHANNEL_CODE|LSF_BRANCH_CODE|LSF_USER_LOAN_OFF_FNAME|LSF_ZIP4|LSF_USER_AE_CODE|"; sFields += "LSF_co1_empzip|LSF_USER_LTV|LSF_BROKER_ZIP|LSF_occupationtitle|LSF_BROKER_PHONE|LSF_emptype|LSF_co1_currentstate|LSF_currentaddress|LSF_co1_employername|LSF_isexistingclient|"; sFields += "LSF_USER_SALE_AMOUNT|LSF_city|LSF_co2_occupationtitle|LSF_co1_emptype|LSF_address|LSF_USER_CASH_OUT_AMT|LSF_co2_empstreetaddress|LSF_BROKER_CODE|LSF_BROKER_NMLS_ID|LSF_maritalstatus|"; sFields += "LSF_USER_PROPERTY_SELLER|LSF_CUST_ESTIMATE|LSF_co1_occupationtitle|LSF_firstname|LSF_co1_maritalstatus|LSF_co2_isexistingclient|LSF_co1_empphonenumber|LSF_UNIT|LSF_BROKER_STATE|LSF_USER_PROP_TYPE_DESC|LSF_USER_BUS_UNIT_LEVEL2_ID|"; // adding for Loan actors sFields +="LSF_firstname_la0|LSF_lastname_la0|LSF_role_la0|LSF_firstname_la1|LSF_lastname_la1|LSF_role_la1|LSF_firstname_la2|LSF_lastname_la2|LSF_role_la2|LSF_firstname_la3|LSF_lastname_la3|LSF_role_la3|LSF_firstname_la4|LSF_lastname_la4|LSF_role_la4|"; sFields +="LSF_firstname_la5|LSF_lastname_la5|LSF_role_la5|LSF_firstname_la6|LSF_lastname_la6|LSF_role_la6|LSF_firstname_la7|LSF_lastname_la7|LSF_role_la7|LSF_firstname_la8|LSF_lastname_la8|LSF_role_la8|LSF_firstname_la9|LSF_lastname_la9|LSF_role_la9|"; sFields +="LSF_firstname_la10|LSF_lastname_la10|LSF_role_la10|LSF_firstname_la11|LSF_lastname_la11|LSF_role_la11|LSF_firstname_la12|LSF_lastname_la12|LSF_role_la12|LSF_firstname_la13|LSF_lastname_la13|LSF_role_la13|LSF_firstname_la14|LSF_lastname_la14|LSF_role_la14|"; sFields +="LSF_firstname_la15|LSF_lastname_la15|LSF_role_la15|LSF_firstname_la16|LSF_lastname_la16|LSF_role_la16|LSF_firstname_la17|LSF_lastname_la17|LSF_role_la17|LSF_firstname_la18|LSF_lastname_la18|LSF_role_la18|LSF_firstname_la19|LSF_lastname_la19|LSF_role_la19|"; //removing the LSF_USER_PAID_OFF| from the sFields for paidoff section sFields += "LSF_USER_LOAN_PROD_DESC|LSF_BROKER_CITY|LSF_USER_CLOSE_DATE|LSF_empzip|LSF_USER_SERVICER_CODE|LSF_USER_INT_RATE|LSF_co2_ssn|LSF_USER_ACCT_MGR_FNAME|LSF_co1_empcity|LSF_USER_AE_FNAME|"; sFields += "LSF_USER_BUS_UNIT_LEVEL1_ID|LSF_BROKER_NAME|LSF_APPRAISER_LASTNAME|LSF_USER_LOAN_STATUS|LSF_co2_firstname|LSF_co1_isexistingclient|LSF_co1_dob|LSF_co1_currentcity|LSF_co1_currentzip|"; sFields += "LSF_USER_AE_LNAME|LSF_tertiaryficoscore|LSF_co1_lastname|LSF_co2_empphonenumber|LSF_state|LSF_co1_currentaddress|LSF_co2_employername|LSF_USER_TERM_2|LSF_co1_yearsinprofession|LSF_co2_currentaddress|LSF_co2_baseincome|"; sFields += "LSF_currentphoneno|LSF_APPRAISER_CODE|LSF_USER_1ST_PERIODICAL_CAP|LSF_co1_empstreetaddress|LSF_co2_empzip|LSF_co2_maritalstatus|LSF_co2_yearsinprofession|LSF_USER_ARM_PERIODICAL_CAP|LSF_empphonenumber|"; sFields += "LSF_USER_DOC_TYPE_CODE|LSF_co2_empcity|LSF_ssn|LSF_USER_LIEN_CODE|LSF_APPRAISER_LICENSE|LSF_LOAN_OFFICER_CODE|LSF_BROKER_UNIT|"; //Loan Safe RISK sFields += "LSR_USER_FRONT_END_RATIO|LSR_USER_PROP_TYPE_CODE|LSR_USER_LOAN_NUMBER|LSR_co2_currentstate|LSR_USER_LOAN_TYPE_CODE|LSR_co2_emptype|LSR_USER_FUND_DATE|LSR_USER_LOAN_AMOUNT|LSR_currentstate|"; sFields += "LSR_USER_ARM_MARGIN|LSR_APPRAISER_FIRSTNAME|LSR_USER_BROKER_POINT_AMT|LSR_USER_LOAN_PROD_CODE|LSR_USER_ACCT_MGR_LNAME|LSR_baseincome|LSR_co2_employmentyear|LSR_USER_PITI|LSR_USER_BROKER_FEE_AMT|"; sFields += "LSR_co2_currentphoneno|LSR_secondaryficoscore|LSR_BROKER_CITYSTATEZIP|LSR_BROKER_ADDRESS|LSR_currentcity|LSR_co1_baseincome|LSR_co2_lastname|LSR_co1_empstate|LSR_currentzip|LSR_yearsinprofession|LSR_co1_employmentyear|"; sFields += "LSR_dob|LSR_USER_BUS_UNIT_LEVEL2_MGR|LSR_empstate|LSR_USER_OCC_TYPE_CODE|LSR_empcity|LSR_USER_ARM_LIFETIME_CAP|LSR_lastname|LSR_zip|LSR_USER_FIRST_TIME_HOMEBUYER|LSR_employmentyear|LSR_USER_PURPOSE_CODE|"; sFields += "LSR_USER_LIEN_DESC|LSR_co1_ssn|LSR_USER_LOAN_OFF_LNAME|LSR_USER_ACCT_MGR_CODE|LSR_co1_currentphoneno|LSR_empstreetaddress|LSR_co1_firstname|LSR_USER_REFINANCE_PURPOSE|LSR_BROKER_TAX_ID|LSR_USER_PROP_COUNTY|"; sFields += "LSR_USER_BUS_UNIT_LEVEL1_MGR|LSR_USER_OCC_TYPE_DESC|LSR_USER_SERVICER_DESC|LSR_USER_BRANCH_DESC|LSR_co2_dob|LSR_co2_empstate|LSR_USER_TERM|LSR_USER_PURPOSE_DESC|LSR_USER_DOC_TYPE_DESC|LSR_employername|"; sFields += "LSR_primaryficoscore|LSR_co2_currentcity|LSR_USER_DTI|LSR_USER_CLTV|LSR_USER_LOAN_TYPE_DESC|LSR_USER_PREPAY_PENALTY_YRS|LSR_USER_ORIGINATOR_DESC|LSR_co2_currentzip|LSR_CHANNEL_CODE|LSR_BRANCH_CODE|LSR_USER_LOAN_OFF_FNAME|LSR_ZIP4|LSR_USER_AE_CODE|"; sFields += "LSR_co1_empzip|LSR_USER_LTV|LSR_BROKER_ZIP|LSR_occupationtitle|LSR_BROKER_PHONE|LSR_emptype|LSR_co1_currentstate|LSR_currentaddress|LSR_co1_employername|LSR_isexistingclient|"; sFields += "LSR_USER_SALE_AMOUNT|LSR_city|LSR_co2_occupationtitle|LSR_co1_emptype|LSR_address|LSR_USER_CASH_OUT_AMT|LSR_co2_empstreetaddress|LSR_BROKER_CODE|LSR_BROKER_NMLS_ID|LSR_maritalstatus|"; sFields += "LSR_USER_PROPERTY_SELLER|LSR_CUST_ESTIMATE|LSR_co1_occupationtitle|LSR_firstname|LSR_co1_maritalstatus|LSR_co2_isexistingclient|LSR_co1_empphonenumber|LSR_UNIT|LSR_BROKER_STATE|LSR_USER_PROP_TYPE_DESC|LSR_USER_BUS_UNIT_LEVEL2_ID|"; //removing the LSR_USER_PAID_OFF| from the sFields for paidoff section sFields += "LSR_USER_LOAN_PROD_DESC|LSR_BROKER_CITY|LSR_USER_CLOSE_DATE|LSR_empzip|LSR_USER_SERVICER_CODE|LSR_USER_INT_RATE|LSR_co2_ssn|LSR_USER_ACCT_MGR_FNAME|LSR_co1_empcity|LSR_USER_AE_FNAME|"; sFields += "LSR_USER_BUS_UNIT_LEVEL1_ID|LSR_BROKER_NAME|LSR_APPRAISER_LASTNAME|LSR_USER_LOAN_STATUS|LSR_co2_firstname|LSR_co1_isexistingclient|LSR_co1_dob|LSR_co1_currentcity|LSR_co1_currentzip|"; sFields += "LSR_USER_AE_LNAME|LSR_tertiaryficoscore|LSR_co1_lastname|LSR_co2_empphonenumber|LSR_state|LSR_co1_currentaddress|LSR_co2_employername|LSR_USER_TERM_2|LSR_co1_yearsinprofession|LSR_co2_currentaddress|LSR_co2_baseincome|"; sFields += "LSR_currentphoneno|LSR_APPRAISER_CODE|LSR_USER_1ST_PERIODICAL_CAP|LSR_co1_empstreetaddress|LSR_co2_empzip|LSR_co2_maritalstatus|LSR_co2_yearsinprofession|LSR_USER_ARM_PERIODICAL_CAP|LSR_empphonenumber|"; sFields += "LSR_USER_DOC_TYPE_CODE|LSR_co2_empcity|LSR_ssn|LSR_USER_LIEN_CODE|LSR_APPRAISER_LICENSE|LSR_LOAN_OFFICER_CODE|LSR_BROKER_UNIT|"; //Added for the LoanActors sFields +="LSR_firstname_la0|LSR_lastname_la0|LSR_role_la0|LSR_firstname_la1|LSR_lastname_la1|LSR_role_la1|LSR_firstname_la2|LSR_lastname_la2|LSR_role_la2|LSR_firstname_la3|LSR_lastname_la3|LSR_role_la3|LSR_firstname_la4|LSR_lastname_la4|LSR_role_la4|"; sFields +="LSR_firstname_la5|LSR_lastname_la5|LSR_role_la5|LSR_firstname_la6|LSR_lastname_la6|LSR_role_la6|LSR_firstname_la7|LSR_lastname_la7|LSR_role_la7|LSR_firstname_la8|LSR_lastname_la8|LSR_role_la8|LSR_firstname_la9|LSR_lastname_la9|LSR_role_la9|"; sFields +="LSR_firstname_la10|LSR_lastname_la10|LSR_role_la10|LSR_firstname_la11|LSR_lastname_la11|LSR_role_la11|LSR_firstname_la12|LSR_lastname_la12|LSR_role_la12|LSR_firstname_la13|LSR_lastname_la13|LSR_role_la13|LSR_firstname_la14|LSR_lastname_la14|LSR_role_la14|"; sFields +="LSR_firstname_la15|LSR_lastname_la15|LSR_role_la15|LSR_firstname_la16|LSR_lastname_la16|LSR_role_la16|LSR_firstname_la17|LSR_lastname_la17|LSR_role_la17|LSR_firstname_la18|LSR_lastname_la18|LSR_role_la18|LSR_firstname_la19|LSR_lastname_la19|LSR_role_la19|"; // Loan Safe Collateral sFields += "LSC_address|LSC_city|LSC_state|LSC_zip|"; sFields += "LSC_estimatedvalue|LSC_USER_PURPOSE_DESC|LSC_USER_LOAN_NUMBER|LSC_UNIT|"; //Borrower Activity Report sFields += "BAR_currentaddress|BAR_co_currentcity|BAR_LOAN_OFFICER_CODE|BAR_currentzip|BAR_USER_LOAN_AMOUNT|BAR_co_currentzip|BAR_currentcity|BAR_co_ssn|BAR_USER_FICO_1|BAR_USER_OCC_TYPE_DESC|"; sFields += "BAR_dob|BAR_state|BAR_zip|BAR_USER_LOAN_NUMBER|BAR_USER_LIEN_CODE|BAR_city|BAR_USER_FUND_DATE|BAR_ssn|BAR_USER_LOAN_PROD_DESC|BAR_co_firstname|BAR_co_lastname|BAR_address|BAR_BRANCH_NAME|BAR_CHANNEL_CODE|BAR_lastname|"; sFields += "BAR_co_currentstate|BAR_USER_LTV|BAR_USER_CLTV|BAR_co_dob|BAR_USER_PURPOSE_DESC|BAR_CUST_ESTIMATE|BAR_co_currentphoneno|BAR_BRANCH_CODE|BAR_currentstate|BAR_co_currentaddress|BAR_UNDERWRITER_CODE|BAR_currentphoneno|BAR_USER_DTI|BAR_firstname|BAR_USER_REFINANCE_PURPOSE|"; // OwnerConnect Report sFields += "oc_address|oc_city|oc_state|oc_zip|"; sFields += "oc_bo_firstName|oc_bo_lastName|oc_bo_ssn|oc_bo_address|oc_bo_city|oc_bo_state|oc_bo_zip|"; sFields += "oc_bo1_firstName|oc_bo1_lastName|oc_bo1_ssn|oc_bo1_address|oc_bo1_city|oc_bo1_state|oc_bo1_zip|"; // Total Lien Report /*sFields += "tl_address|tl_city|tl_state|tl_zip|"; sFields += "tl_bo_firstName|tl_bo_middleName|tl_bo_lastName|tl_bo_ssn|"; sFields += "tl_bo1_firstName|tl_bo1_middleName|tl_bo1_lastName|tl_bo1_ssn|";*/ // Address Activity Report sFields += "AAR_address|AAR_city|AAR_state|AAR_zip|AAR_estimatedValue|"; //Lien360 Report sFields += "lien360_address|lien360_city|lien360_state|lien360_zip|"; sFields += "lien360_ow_firstName|lien360_ow_middleName|lien360_ow_lastName|lien360_ow_ssn|"; sFields += "lien360_ow2_firstName|lien360_ow2_middleName|lien360_ow2_lastName|lien360_ow2_ssn|"; //WillCap Report //sFields += "WC_address|WC_city|WC_state|WC_zip|"; // Lamar Report sFields += "lamar_address|lamar_city|lamar_state|lamar_zip|"; sFields += "lamar_comp_distance_from_sub|lamar_comp_monthdaterange|lamar_comp_numbermonth|lamar_comp_daterangefrom|lamar_comp_daterangeto|"; sFields += "lamar_comp_gross_livingarea|lamar_comp_yearbuiltfrom|"; // HistoryPro sFields += "hp_address|hp_city|hp_state|hp_zip|"; sFields += "hp_estimatedvalue|"; // PreQualPro sFields += "pqp_address|pqp_city|pqp_state|pqp_zip|"; sFields += "pqp_estimatedvalue|"; // CoreScore sFields += "cs_address|cs_city|cs_state|cs_zip|"; sFields += "cs_listprice|"; // HistoryPro Review sFields += "hpr_address|hpr_city|hpr_state|hpr_zip|"; sFields += "hpr_customerestimate|hpr_salemonth|hpr_saleyear|hpr_squarefeet|"; sFields += "hpr_address1|hpr_city1|hpr_customerestimate1|hpr_salemonth1|hpr_saleyear1|hpr_squarefeet1|"; sFields += "hpr_address2|hpr_city2|hpr_customerestimate2|hpr_salemonth2|hpr_saleyear2|hpr_squarefeet2|"; sFields += "hpr_address3|hpr_city3|hpr_customerestimate3|hpr_salemonth3|hpr_saleyear3|hpr_squarefeet3|"; sFields += "hpr_address4|hpr_city4|hpr_customerestimate4|hpr_salemonth4|hpr_saleyear4|hpr_squarefeet4|"; sFields += "hpr_address5|hpr_city5|hpr_customerestimate5|hpr_salemonth5|hpr_saleyear5|hpr_squarefeet5|"; sFields += "hpr_address6|hpr_city6|hpr_customerestimate6|hpr_salemonth6|hpr_saleyear6|hpr_squarefeet6|"; // IncomePro sFields += "inp_address|inp_city|inp_state|inp_county|inp_zip|inp_address_curr|inp_city_curr|inp_state_curr|inp_zip_curr|"; sFields += "inp_age|inp_firstname|inp_lastname|inp_emptype|inp_empname|inp_empphone|inp_empzip|inp_empoccupation|inp_empyear|inp_occupationyear|"; sFields += "inp_curr_emp_addr|inp_empaddress|inp_empcity|inp_empstate|inp_co_curr_emp_addr|inp_co_empaddress|inp_co_empcity|inp_co_empstate|"; sFields += "inp_empbasepay|inp_empovertimepay|inp_empbonus|inp_empcommission|inp_empotherpay|inp_emptotalpay|inp_jobid1|"; sFields += "inp_co_borrower|inp_co_age|inp_co_firstname|inp_co_lastname|inp_co_address|inp_co_city|inp_co_state|inp_co_county|inp_co_zip|"; sFields += "inp_co_address_curr|inp_co_city_curr|co_state_curr|inp_co_zip_curr|inp_co_emptype|inp_co_empname|inp_co_empphone|inp_co_empzip|inp_co_empoccupation|"; sFields += "inp_co_empyear|inp_co_occupationyear|inp_co_empbasepay|inp_co_empovertimepay|inp_co_empbonus|inp_co_empcommission|inp_co_empotherpay|inp_co_emptotalpay|"; // LoanIQ -- remove LoanIQ report //sFields += "loaniq_address|loaniq_city|loaniq_state|loaniq_zip|"; //sFields += "loaniq_valuationdate|loaniq_propertyvalue|loaniq_loanpurpose|loaniq_loanamount|loaniq_occupancytype|loaniq_borrowerlastname1|loaniq_borrowerlastname2|loaniq_sellerlastname1|loaniq_sellerlastname2|"; // HVC sFields += "hvc_address|hvc_city|hvc_state|hvc_zip|"; sFields += "hvc_propertytype|hvc_valuationamount|hvc_valuationdate|hvc_loanpurpose|hvc_1stlienamount|hvc_2ndlienamount|hvc_creditscore|hvc_valuationtype|hvc_comment1|hvc_comment2|hvc_comment3|hvc_comment4|"; // AVM Analytics Archive sFields += "avmana_reporttype|avmana_housenumber|avmana_streetname|avmana_address|avmana_city|avmana_state|avmana_zip|avmana_lastname|avmana_firstname|avmana_dateprocessedfrom|avmana_dateprocessedto|avmana_refid|avmana_jobid1|avmana_trackingid|avmana_orderno"; var arrFields = sFields.split("|"); for (var i = 0; i < arrFields.length; i++) { eval("if (null!=document.forms[0]." + arrFields[i] + "&&typeof(g" + arrFields[i] + ")!='undefined'&&g" + arrFields[i] + ".length>0) {document.forms[0]." + arrFields[i] + ".value=g" + arrFields[i] + ";}"); } var readOnlyElements = "ls_address|ls_state|ls_city|ls_zip|"; readOnlyElements += "LSF_address|LSF_state|LSF_city|LSF_zip|LSF_county|"; readOnlyElements += "BAR_address|BAR_state|BAR_city|BAR_zip|"; readOnlyElements += "LSR_address|LSR_state|LSR_city|LSR_zip|LSR_county|"; readOnlyElements += "LSC_address|LSC_state|LSC_city|LSC_zip|LSC_county|"; readOnlyElements += "oc_address|oc_state|oc_city|oc_zip|oc_zip4|"; /*readOnlyElements += "tl_address|tl_state|tl_city|tl_zip|";*/ readOnlyElements += "lien360_address|lien360_city|lien360_state|lien360_zip|"; readOnlyElements += "AAR_address|AAR_state|AAR_city|AAR_zip|"; readOnlyElements += "WC_address|WC_city|WC_state|WC_zip|"; readOnlyElements += "lamar_address|lamar_state|lamar_city|lamar_zip|"; //readOnlyElements += "lsc_address|lsc_city|lsc_state|lsc_zip|"; readOnlyElements += "hp_address|hp_city|hp_state|hp_zip|"; readOnlyElements += "hpr_address|hpr_state|hpr_city|hpr_zip|"; readOnlyElements += "pqp_address|pqp_city|pqp_state|pqp_zip|"; readOnlyElements += "cs_address|cs_city|cs_state|cs_zip|"; readOnlyElements += "inp_address|inp_state|inp_city|inp_zip|"; //readOnlyElements += "loaniq_address|loaniq_state|loaniq_city|loaniq_zip|"; -- remove LoanIQ report readOnlyElements += "hvc_address|hvc_state|hvc_city|hvc_zip"; //var formNames = "loansafe|historypro|historyproreview|prequalpro|incomepro|loaniq|hvc"; -- remove LoanIQ report // removed totallien after ownerconnect below var formNames = "loansafe|loansafeFraud|loansafeCollateral|loansafeRisk|historypro|historyproreview|prequalpro|barreport|aarreport|ownerconnect|lamar|homestanding|incomepro|hvc|willcap|involuntarylien"; var currFormName = eval("document.forms[0].name"); populateCheckBoxElements(); onLoadEmployStateChange(); if (currFormName != '' && formNames.indexOf(currFormName) > -1) { makeReadOnlyFormElements(currFormName, readOnlyElements, true); } if (null!=document.forms[0].inp_empbasepay&&ginp_empbasepay.length>0){doTotal(1);doTotal(2);} } } function populateCheckBoxElements() { try { var checkBoxTypeElements = "LSF_includeCoBorrower_cb|LSF_includeCoBorrower2_cb|LSR_includeCoBorrower_cb|LSR_includeCoBorrower2_cb|BAR_includeCoBorrower_cb|oc_includeCoBorrower_cb|lien360_includeOwner2_cb"; var arrFields = checkBoxTypeElements.split("|"); for (var i = 0; i < arrFields.length; i++) { eval("if (null!=document.forms[0]." + arrFields[i] + "&&typeof(g" + arrFields[i] + ")!='undefined'&&g" + arrFields[i] + ".length>0) {if (g" + arrFields[i] + "=='on'){document.getElementById('" + arrFields[i] + "').checked=true;expandSection();}}"); } } catch(ex) { } } function onLoadEmployStateChange() { try { employStateChange('LSF_co2_', 'LSF_co2_emptype'); employStateChange('LSF_co1_', 'LSF_co1_emptype'); employStateChange('LSF_', 'LSF_emptype'); employStateChange('LSR_co2_', 'LSR_co2_emptype'); employStateChange('LSR_co1_', 'LSR_co1_emptype'); employStateChange('LSR_', 'LSR_emptype'); } catch(ex) { } } /** * Following functions is used to reset the formfields. * It ignores the readonly and ignoreList fields too. * @param form * @param ignoreList * @param removeReadonlyFlag */ function resetFormfields(form,ignoreList,removeReadonlyFlag) { var oElement, oName, oValue; if(typeof form == 'string'){ // Determine if the argument is a form id or a form name. // Note form name usage is deprecated by supported // here for legacy reasons. var oForm = (document.getElementById(form) || document.forms[form]); } else if(typeof form == 'object'){ // Treat argument as an HTML form object. var oForm = form; } for (var i=0;i0 && (sRequestType =="C" || actual_username == adm_username)){ var strProductList = document.getElementById('tbl_activitylist').innerHTML; if (strProductList.length==0){ var strData = ""; var titleRowArr = strTitle.split(","); var titleValue =""; for (var j=0; j"; } strData += ""; for (var i=0; i"+strDataElement+" "; } strData += ""; } strData += ""; showContent(strData,"tbl_activitylist"); }else{showHide("open","tbl_activitylist");} }else if (sRequestType != "C" && actual_username != adm_username){ createTableOpen(); document.write("
You don't have access to this username Activity Report.
"); createTableClose(); }else{ createTableOpen(); document.write("
No usage available for selected user and time frame.
"); createTableClose(); } } function getHomeRefLink(){ var homeRef = document.getElementById("Home"); return homeRef; } function displayPropertyListTitle(){ try{ if ("ss"==gtab){ if (ghomebutton == "Address_Search") document.write("SEARCH CRITERIA: "+gsubject_address_criteria+""); else if (ghomebutton == "Advanced_Address_Search") document.write("SEARCH CRITERIA: "+gsubject_advanced_criteria+""); else if (ghomebutton == "APN_Search") document.write("SEARCH CRITERIA: "+gsubject_apn_criteria+""); else if (ghomebutton == "Owner_Name_Search") document.write("SEARCH CRITERIA: "+gsubject_ownername_criteria+""); else if (ghomebutton == "Range_Search") document.write("SEARCH CRITERIA: "+gsubject_range_criteria+""); } }catch(ex){ document.write("Property List"); } } function switchCompsSearch(tab){ try{ if ("commercial"==tab){ showHide("close","sect_Comparables"); showHide("open","sect_Comparables_commercial"); }else if ("all"==tab){ showHide("open","sect_Comparables"); showHide("close","sect_Comparables_commercial"); } }catch(ex){alert(ex.message);} } function showComparablesTable(){ try { var tbl_Comparables = document.getElementById("tbl_Comparables"); var nRow = tbl_Comparables.rows.length; for (var i = (nRow - 1); i >= 0; i--) { if ("Customer_Preferences" == page) { if (i == 0) { tbl_Comparables.deleteRow(i); } else { tbl_Comparables.rows[i].deleteCell(1); } } else if ("Comparable_Criteria" == page) { try { if (i > 0) { tbl_Comparables.rows[i].cells[3].style.background = "#CCCCCC"; tbl_Comparables.rows[i].cells[2].style.background = "#CCCCCC"; tbl_Comparables.rows[i].cells[1].style.background = "#DDDDDD"; } } catch(ex) { //alert("Comparables section= " + ex); } if ("currentsearch" == type) { tbl_Comparables.rows[i].deleteCell(1); } } } var tbl_Comparables_commercial = document.getElementById("tbl_Comparables_commercial"); var nRowComm = tbl_Comparables_commercial.rows.length; for (var i = (nRowComm - 1); i >= 0; i--) { if ("Customer_Preferences" == page) { if (i == 0) { tbl_Comparables_commercial.deleteRow(i); } else { tbl_Comparables_commercial.rows[i].deleteCell(1); } } else if ("Comparable_Criteria" == page) { try { if (i > 0) { tbl_Comparables_commercial.rows[i].cells[3].style.background = "#CCCCCC"; tbl_Comparables_commercial.rows[i].cells[2].style.background = "#CCCCCC"; tbl_Comparables_commercial.rows[i].cells[1].style.background = "#DDDDDD"; } } catch(ex) { //alert("Comparables Commercial section= " + ex); } if ("currentsearch" == type) { tbl_Comparables_commercial.rows[i].deleteCell(1); } } } if (trim(grecordno) != "" && "refinecomps" == type) { showHide("close", "refinecomps_landuse_tab"); if (greccommercial == "yes") { switchCompsSearch("commercial"); } else { switchCompsSearch("all"); } } else { showHide("open", "refinecomps_landuse_tab"); } } catch(ex) { //alert("showComparablesTable Exception=" + ex); } } function parseTemplate(sTokens,sData){ try{ var arrToken = sTokens.split(","); var arrData = sData.split("|"); for (var i=0; i"; eval("document.getElementById('"+arrToken[i]+"').innerHTML = "+sValue); } } }catch(ex){} } /** * This method is used to add or delete the selected item from the list. A arbiart element selected for addition or deletion and clicked on the button. * the items selected are either added or deleted from the list. * @param from - The table from which the items are selected to add or delete. * @param to - The table from which the items will be added or deleted. * @param bDel - The boolean flag representing to add or delete */ function transferOptions(from,to,bDel) { try{ // Delete selected options from original select box if (bDel){ for (var i=(from.options.length-1); i>=0; i--) { var optionDelete = from.options[i]; if (optionDelete.selected) { to.options[to.options.length] = new Option( optionDelete.text, optionDelete.value, false, false); from.options[i] = null; } } //sort the elements in the natural order of ascending. sortSelect(to); } // Move selected options over else { for (var i=0; i 0) { selElem.options[0] = null; } for (var i=0;i (b.text+"")) { return 1; } return 0; } function sortSelectBox(objSort) { var arrayOptions = new Array(); if (objSort.options==null) { return; } for (var i=0; i=0; i--) { if (objSelect.options[i].selected) { if (i != (objSelect.options.length-1) && ! objSelect.options[i+1].selected) { swapOptions(objSelect,i,i+1); objSelect.focus(); objSelect.options[i+1].selected = true; } } } } // end transfer options function checkFileType(objE){ var sFile = objE.value; if (sFile.length>0){ if (sFile.toLowerCase().indexOf(".gif")!==-1||sFile.toLowerCase().indexOf(".jpg")!==-1||sFile.toLowerCase().indexOf(".dwl")!==-1) return true else{ alert("The selected file is invalid."); return false; } }else{ alert("Please select a file."); return false; } } var loanSafeProdReportIndex = new Array("41", "42", "43", "44"); function clearTableReportPermission(){for (var i=tbl_admin_user_rptpermlist.rows.length-1; i>0; i--){tbl_admin_user_rptpermlist.deleteRow(i);}} function buildAdminRptPermListRow(rptPermData){ var rptPermList = rptPermData.split("!"); for (var j=0;j0;j++){ var sRowsData = rptPermList[j]; var arrUsrListRow = sRowsData.split("|"); var x = tbl_admin_user_rptpermlist.insertRow(-1); var row = tbl_admin_user_rptpermlist.rows.length-1; for (var i=1;i"; }else if (i==4){ var bActive = ""; bInactive = ""; if ("A"==sValue) bActive = "checked"; else { bInactive = "checked"; } sContent = " Active   "; sContent += " Inactive"; } x.insertCell(i-1).innerHTML = sContent; } if (row%2 == 0){tbl_admin_user_rptpermlist.rows[row].className = "line_format";} } //handleLoanSafeOnLoad(); } /*function handleLoanSafe(reportIndexValue, status) { try { for (var i = 0; i < loanSafeProdReportIndex.length; i++) { if (contains(reportIndexValue) && loanSafeProdReportIndex[i] != reportIndexValue) { toggleRadioBoxes(loanSafeProdReportIndex[i], status); } } } catch(e) { } } function contains(reportIndexValue) { //var loanSafeProdReportIndex = new Array("41", "42", "43", "44"); try { for (var i = 0; i < loanSafeProdReportIndex.length; i++) { if (loanSafeProdReportIndex[i] == reportIndexValue) { return true; } } } catch(e) { } } function handleLoanSafeOnLoad() { //var loanSafeProdReportIndex = new Array("41", "42", "43", "44"); try { var count = 0; for (var i = 0; i < loanSafeProdReportIndex.length; i++) { var reportActiveId = "rp_A_" + loanSafeProdReportIndex[i]; var reportInActiveId = "rp_I_" + loanSafeProdReportIndex[i]; if (isObjExist(document.getElementById(reportActiveId)) && isObjExist(document.getElementById(reportInActiveId))) { var status = document.getElementById(reportActiveId).checked; if (!status) { toggleRadioBoxes(loanSafeProdReportIndex[i], 'Y'); count = count + 1; } } } if (count == 4 || count == 1) { for (var i = 0; i < loanSafeProdReportIndex.length; i++) { var reportActiveId = "rp_A_" + loanSafeProdReportIndex[i]; var reportInActiveId = "rp_I_" + loanSafeProdReportIndex[i]; if (isObjExist(document.getElementById(reportActiveId)) && isObjExist(document.getElementById(reportInActiveId))) { var status = document.getElementById(reportActiveId).checked; if (!status) { toggleRadioBoxes(loanSafeProdReportIndex[i], 'N'); } } } } } catch(e) { } } function enableLoanSafeReport() { //var loanSafeProdReportIndex = new Array("41", "42", "43", "44"); try { for (var i = 0; i < loanSafeProdReportIndex.length; i++) { var reportActiveId = "rp_A_" + loanSafeProdReportIndex[i]; var reportInActiveId = "rp_I_" + loanSafeProdReportIndex[i]; if (isObjExist(document.getElementById(reportActiveId)) && isObjExist(document.getElementById(reportInActiveId))) { document.getElementById(reportActiveId).disabled = false; document.getElementById(reportInActiveId).disabled = false; } } } catch(e) { } } function toggleRadioBoxes(loanSafeProdReportIndex, status) { var reportActiveId = "rp_A_" + loanSafeProdReportIndex; var reportInActiveId = "rp_I_" + loanSafeProdReportIndex; if (isObjExist(document.getElementById(reportActiveId)) && isObjExist(document.getElementById(reportInActiveId))) { if (status == "Y") { document.getElementById(reportActiveId).disabled = true; document.getElementById(reportInActiveId).disabled = true; } else if (status == "N") { document.getElementById(reportActiveId).disabled = false; document.getElementById(reportInActiveId).disabled = false; } } }*/ function checkRequiredEmailForm(){ if (typeof(actual_username) == typeof(adm_username)){ //Fix for whitehat issue with Email var map = document.getElementById("GPL_URL"); if (map!=null){document.emailsubmitform.mapgplurl.value=map.src;} if (document.emailsubmitform.to_email.value.length==0 || document.emailsubmitform.reply_email.value.length==0){ alert("Please fill all required fields."); return false; } return true; }else { alert("You don't have access to this username Activity Report."); return false; } } function deleteConfirm(name){ var choice = confirm("Are you sure you want to delete this "+name+" ?"); if (choice){ return true; }else{ return false; } } function validateEmail(ElementObj){ if (ElementObj.value.indexOf('@')==-1&&ElementObj.value.length>0){ alert("Please provide a valid email address."); ElementObj.select();ElementObj.focus(); return false; } return true; } function checkReportAvailable(sForm){ if (sForm=="Email"){ if ((null!=document.emailsubmitform&&null!=document.emailsubmitform.reportoptions && document.emailsubmitform.reportoptions.value==0 )|| (null!=document.emailsubmitform && null!=document.emailsubmitform.reportAvailable && document.emailsubmitform.reportAvailable.value == 'N' )) { alert("Email is not available for the selected report(s)."); return false; } }else if (sForm=="Export"){ if ((null!=document.exportsubmitform&&null!=document.exportsubmitform.reportoptions&&document.exportsubmitform.reportoptions.value==0) || (null!=document.exportsubmitform && null!=document.exportsubmitform.reportAvailable && document.exportsubmitform.reportAvailable.value == 'N' )|| (null!=document.exportsubmitform&&null!=document.exportsubmitform.reportoptions&&document.exportsubmitform.reportoptions.value==REPORT_HVC&&grecordno==-1)) { // if HVC from direct search link alert("The selected reports were either unsuccessful or are not available with the export feature."); return false; } } //Fix for WhiteHat security Tamper Issue if (typeof(actual_username) !== "undefined" && typeof(adm_username) !== "undefined" && actual_username != adm_username) { alert("You don't have access to this username Activity Report."); return false; } //if (document.exportsubmitform.ex_available == undefined){ return false; } return true; } function getFipCodeFile(sFipCode){ var nFipcode = new Number(sFipCode.substring(2,sFipCode.length)); var sState = sFipCode.substring(0,2); if ("CA"==sState) { nFipcode = (nFipcode+1)/2; sFipcode = nFipcode.toString(); if (sFipcode.length==1) sFipcode = "00"+sFipcode; else if (sFipcode.length==2) sFipcode = "0"+sFipcode; sFipCode = sState+sFipcode; } return sFipCode; } function getFileStatus(filename){ if(navigator.appName == "Microsoft Internet Explorer") objHttp = new ActiveXObject("Microsoft.XMLHTTP"); else objHttp = new XMLHttpRequest(); objHttp.open("GET", filename, false); objHttp.send(null); if ("200"==objHttp.status) return true; else return false; } function OnKeyDownEvent(evt){ evt=event; var nChar = evt.keyCode; document.mapviewerctrl.UserKeyDown(nChar,1); return false; } function runCmd(id){ document.mapviewerctrl.MenuCommand(id); } function checkrefidrequired(){ var adminRefIdReqdValue = document.getElementById("adminrefidrequired").value; if (document.forms[0].refid.checked){ document.forms[0].refidrequired.disabled=false; } else{document.forms[0].refidrequired.checked=false;document.forms[0].refidrequired.disabled=true;} } function enableDiasbleRefId(){ var adminRefIdReqdValue = document.getElementById("adminrefidrequired").value; if(null != adminRefIdReqdValue && adminRefIdReqdValue == "yes"){ document.forms[0].refid.disabled=true; document.forms[0].refidrequired.disabled=true; } } function setAdminRefIdValue(){ if(document.getElementById("adminrefidrequired").checked){ adminrefIdValue="yes";}else{adminrefIdValue="no";} var reqValue = "&adminrefidrequired="+adminrefIdValue; DWRController.setAdminRefIdValue(reqValue); } function setArchiveUserFlag(){ if(document.getElementById("archiveuserflag").checked){ archiveUserFlag="yes";}else{archiveUserFlag="no";} var reqFlagValue = "&archiveuserflag="+archiveUserFlag; DWRController.setArchiveUserFlag(reqFlagValue); } function checkmapviewantialias(){ if (document.forms[0].mapviewer.checked){document.forms[0].mapviewerantialias.disabled=false;} else{document.forms[0].mapviewerantialias.checked=false;document.forms[0].mapviewerantialias.disabled=true;} } function displayLayer(name){ if (eval("document.getElementById('"+name+"').style.display")=="none"){ eval("document.getElementById('"+name+"').style.display='inline'"); showHide("close","off_"+name); showHide("open","on_"+name); //This function invokes only onClick of Sort Selection. if ("Custom_Search" == page) { DWRController.setSortSelectionView("open"); } }else{ eval("document.getElementById('"+name+"').style.display='none'"); showHide("close","on_"+name); showHide("open","off_"+name); //This function invokes only onClick of Sort Selection. if ("Custom_Search" == page) { DWRController.setSortSelectionView("close"); } } } function displayDocImageConfirm(){ if (!Validate_DocImageOrders()) return false; showHide("close","Document_Order_Form"); showHide("open","Document_Order_Form_Confirmation"); var form = document.forms[0]; for (var elems=0; elems" ; }catch(ex){} } } } return true; } function checkSelectOption(){ if (document.forms[0].recrange[1].checked){document.forms[0].rangefr.className = "clear"; document.forms[0].rangeto.className = "clear"; document.forms[0].rangefr.disabled = false;document.forms[0].rangeto.disabled = false;} else{document.forms[0].rangefr.className = "grey"; document.forms[0].rangeto.className = "grey"; document.forms[0].rangefr.disabled = true;document.forms[0].rangeto.disabled = true;} } function checkEmpty(name,value){value = trim(value); if (value!=""){eval("document.forms[0]."+name+".disabled=false;");}else{eval("document.forms[0]."+name+".disabled=true;");}} //share with lookup table in custom search function getFipcodeFromZip(obj){ //share with lookup table in custom search if (obj.value.length==5){ var filename = urljspprog+"&action=getvalue&type=getFipcodeFromZip&zipcode="+obj.value; var fipcode = trim(getFileContent(filename)); if (fipcode.length==0){alert("Could not find County/State from the zipcode you entered.");obj.value="";} else{setCountyStateByFip(fipcode,obj.value);} } } function clearHighlight(tbl){ for (var i=0 ; i0){ if (content.indexOf("_Not_Found_")!=-1){ alert("No records found."); return false; }else if (content.indexOf("_ERROR_")!=-1){ document.forms[0].fipcode.value=""; alert("_ERROR"); return false; }else{ clearTableReportPermission(); buildAdminRptPermListRow(content); } }else{alert("No data available.");return false;} return true; } function browseMap(sBlock,sMapApn){ if (document.forms[0].fipcode.value.length==0){alert("Please enter either zipcode OR select state/county."); return false;} else{ var filename = urljspprog+"&action=getvalue&type=browsemap&blockmap="+sBlock+"&apnmap="+sMapApn+"&fipcode="+document.forms[0].fipcode.value+"&istateparcelmapnumber="+document.forms[0].state_parcelmapnumber.selectedIndex+"&icountyparcelmapnumber="+document.forms[0].county_parcelmapnumber.selectedIndex+"&time="+new Date().getTime(); var content = trim(getFileContent(filename)); if (content.length>0){ if (content.indexOf("Map_Not_Found")!=-1){ alert("No records found."); return false; }else if (content.indexOf("Map_ERROR")!=-1){ document.forms[0].fipcode.value=""; document.forms[0].county_parcelmapnumber.selectedIndex=0; document.forms[0].state_parcelmapnumber.selectedIndex=0 document.forms[0].zipcode_parcelmapnumber.value=""; alert(content.substring(content.indexOf("|")+1)); return false; }else{ var sData = ""; sData += ""; var arrContent = content.split(";"); var arrMap = arrContent[0].split("|"); var firstSheetNo = ""; var firstMapAPN = ""; for(i=0; i"; sData += ""; sData += ""; sData += ""; } sData += "
"+initMapapn+""+initSheetno+"
"; var sSpace = "     "; var sNav = "
"+sSpace+sSpace; if (arrContent[1]=="true"){ sNav += "<< Top"+sSpace; sNav += "< Previous 10"+sSpace; }else{ sNav += "<< Top"+sSpace; sNav += "< Previous 10"+sSpace; } if (arrContent[2]=="true"){ sNav += "Next 10 >"+sSpace; sNav += "End >>"; }else{ sNav += "Next 10 >"+sSpace; sNav += "End >>"+sSpace; } sNav += "
(Double-click or select 'Submit Request' to view map)
"; showContent(sData,"div_maplist");showContent(sNav,"div_mapnav"); document.forms[0].sheetno.value = firstSheetNo; document.forms[0].mapapn.value = firstMapAPN; } }else{alert("Online Assessor Maps are not available for "+document.forms[0].county_parcelmapnumber.value+", "+document.forms[0].state_parcelmapnumber.value+".");return false;} } return true; } function saveFormat(){ var formObj = document.forms[0]; if (null!=document.exportsubmitform) formObj = document.exportsubmitform; if (!checkValidSave(formObj.searchname)) {return false;} var nSelectedCriteriaLen = formObj.ex_selected.length; if (formObj.searchname.value.length==0){ alert("Please enter a name."); formObj.searchname.focus(); return false; } var sName = formObj.searchname.value.replace(/\&/gi,'%26'); //escape(sName) var sFormatType = ""; if (null!=formObj.formattype) sFormatType = formObj.formattype.value; var sData = "|"+sName+"|"+sFormatType+";"; if (nSelectedCriteriaLen>0){ for (i=0;i0){ if (document.forms[0].fipcode.value.indexOf("OWN")==-1){ var filename = urljspprog+"&action=getvalue&type=latestdate"+"&fipcode="+document.forms[0].fipcode.value+"&"+new Date().getTime(); var sDate = trim(getFileContent(filename)); if (sDate.length==0) sDate = "not avail."; showContent("Latest Date: "+sDate,"LatestDate"); return true; }else{ showContent("Latest Date: not avail.","LatestDate"); return true; } } }return false; } function displayHint(pg){ if ("Address_Search"==pg){showContent(' HINT: This search page uses "address standardization" logic.
 NEW: Select the Range option to conduct a house number range search.',"search_hint");} else if ("Advanced_Address_Search"==pg){showContent(' HINT: This search page only requires a House Number AND/OR Street Name for selected county.
 NEW: Select the Range option to conduct a house number range search.',"search_hint");} else if ("Range_Search"==pg){showContent(' HINT: This search page requires From, To, Street Name, and City/State or ZIP.',"search_hint");} else if ("Owner_Name_Search"==pg){showContent(' HINT: This search page uses an auto wild-card, matching all names that start with the portion entered.',"search_hint");} else if ("APN_Search"==pg){showContent(' HINT: This search page should include all dashes and zeroes. It will auto wild-card the portion entered.',"search_hint");} } function switchTab(obj){ offPrefTab(); eval("showHide('open','pref_"+obj.value+"');"); } function switchPage(obj,pg){ try{ document.getElementById("addressTab").className = "sub"; document.getElementById("advancedaddressTab").className = "sub"; document.getElementById("rangeTab").className = "sub"; document.getElementById("ownernameTab").className = "sub"; document.getElementById("apnTab").className = "sub"; document.getElementById(obj.value+"Tab").className = "subbold"; displayHint(pg); obj.checked = true; if (null!=document.forms[0]&&null!=document.forms[0].lp) document.forms[0].lp.value=pg; page=pg; offSearch(); showContent("SUBJECT SEARCH - "+(pg.substr(0,(pg.length-7))).replace("_"," ").toUpperCase()+"","SearchMenuSelectionHead"); showHide('open',pg); document.title = "RealQuest.com ® - " + pg.replace(/_/gi," "); setCountyState(); updateReportOptions(pg); if ("Address_Search"==pg&&null!=document.forms[0].address) document.forms[0].address.focus(); else if("Advanced_Address_Search"==pg&&null!=document.forms[0].houseno) document.forms[0].houseno.focus(); else if("Range_Search"==pg&&null!=document.forms[0].houseno_from) document.forms[0].houseno_from.focus(); else if("Owner_Name_Search"==pg&&null!=document.forms[0].lastname) document.forms[0].lastname.focus(); else if("APN_Search"==pg&&null!=document.forms[0].apn) document.forms[0].apn.focus(); }catch(ex){} } function switchDocImagePage(obj,sPageType){ //var sPageType = obj.value; if("offlineorder"==sPageType){ location.href = urljspprog +"&action=switch&page=Document_Number_Search&tab=di&opt=offlineorder&"+new Date().getTime(); }else if("offlineretrieval"==sPageType){ location.href = urljspprog +"&action=switch&page=Document_Number_Search&tab=di&opt=offlineretrieval&"+new Date().getTime(); }else{ location.href = urljspprog +"&action=switch&page=Document_Number_Search&tab=di&opt=onlineorder&"+new Date().getTime(); } } function switchVerifyServicePage(obj,sPageType){ //var sPageType = obj.value; if("ssn_verify"==sPageType){ location.href = urljspprog +"&action=switch&page=Verify_Services&tab=vs&option=ssn_verify&"+new Date().getTime(); }else{ location.href = urljspprog +"&action=switch&page=Verify_Services&tab=vs&option=income_verify&"+new Date().getTime(); } } function switchSubjectSearchPage(obj,sSearchType){ obj.checked = false; location.href = urljspprog+"&page=Map_Subject_Search&tab=ss&action=switch&"+new Date().getTime(); } function setJobId(jobidvalue,form){form.jobid.value=jobidvalue;} function clearCoverPage(form){ form.cpb_name.value="";form.cpb_company.value="";form.cpb_addr_line1.value="";form.cpb_addr_line2.value=""; form.cpb_phone.value="";form.cpb_fax.value=""; form.cpf_name.value="";form.cpf_company.value="";form.cpf_addr_line1.value="";form.cpf_addr_line2.value=""; form.cpf_phone.value="";form.cpf_fax.value="";form.cpf_refno.value="";form.cpf_comments.value=""; } function clearCoverPageFor(form){ form.cpf_name.value="";form.cpf_company.value="";form.cpf_addr_line1.value="";form.cpf_addr_line2.value=""; form.cpf_phone.value="";form.cpf_fax.value="";form.cpf_refno.value="";form.cpf_comments.value=""; } function submitForm(form,e){ var code = "0"; if (window.event) code = new String(window.event.keyCode); else if (e.which) code = new String(e.which); if((page.indexOf("Search")!=-1&&"|Multi_Subjects_Search|Custom_Search|Foreclosure_Search|Parcel_Map_Search|Street_Map_Search|".indexOf(page)==-1)||page=="main"||page=="relogin"||page=="VP4Archive"||page=="HVEArchive"||page=="VectorArchive"||page=="IncomeProArchive"||page=="LoanSafeArchive"||page=="LoanSafeFraudArchive"|| page=="LoanSafeCollateralArchive"||page=="LoanSafeRiskArchive"||page=="BarreportArchive"||page=="HistoryProArchive"||page=="HistoryProReviewArchive"||page=="AVMAnalyticsArchive"||page=="Find_Property"){ if ("Document_Number_Search"==page&&"offlineorder"==getQueryVariable("opt")) {return true;} if(code=="13"){return Validate_Search_Form(form,e);} else{return true;} }else{ if(code=="13"){ if ("Property_List"==page && "consumer"==client){ return Validate_Billing_Info(form); }else return false; } else{return true;} } } function submitInputForm(form,e){ var code = "0"; if (window.event) code = new String(window.event.keyCode); else if (e.which) code = new String(e.which); //Validation check for LoanIQ Retro Value Date: & HVC (Freddie Mac's Home Value Calibrator //if(code=="13" && form.inputform.value=="loaniq" && form.loaniq_valuationdate.value!=0.){if (!checkDateFormat(form.loaniq_valuationdate.value,"MM/DD/YYYY")){form.loaniq_valuationdate.value="";form.loaniq_valuationdate.focus();return false;}} if(code=="13" && form.inputform.value=="hvc" && form.hvc_valuationdate.value!=0){if (!checkDateFormat(form.hvc_valuationdate.value,"MM/DD/YYYY")){form.hvc_valuationdate.value="";form.hvc_valuationdate.focus();return false;}} if(code=="13" && Validate_Search_Form(form,e)){document.forms[0].submit(); return true;} } function submitReport(form){ if (checkBusyandExpire()){return Validate_ReportOption(form);} else{return false;} } function rptDone(rpt){if (eval("document.images."+rpt)!=null){eval("document.images."+rpt+".src='/images/rptdone.gif'");}} function rptFailed(rpt){if (eval("document.images."+rpt)!=null){eval("document.images."+rpt+".src='/images/rptfailed.gif'");}} function updateReportOptions(pg){ if (null==document.forms[0]) return; /* if ("|Document_Number_Search|Parcel_Map_Search|".indexOf(pg)!=-1){ /** turn on jobId for those page now: as of 11.08.2007 if (null!=document.forms[0].jobid){ document.forms[0].jobid.disabled=true; document.forms[0].jobid.className="grey"; }*/ //}else{ if (null!=document.forms[0].avmcascadetype){ //alert("UserStatus="+guserstatus // +",option 1="+document.forms[0].avmcascadetype[0].checked // +",option 2="+document.forms[0].avmcascadetype[1].checked // +",option 3="+document.forms[0].avmcascadetype[2].checked ); if (null!=guserstatus&&"ENDUSER"==guserstatus){ if (document.forms[0].avmcascadetype[0].checked){ if(page=="Street_Map_Search"){ if(document.forms[0].vector.checked) document.forms[0].avmcascadetype[0].disabled=false; else document.forms[0].avmcascadetype[0].disabled=true; }else document.forms[0].avmcascadetype[0].disabled=false; } else document.forms[0].avmcascadetype[0].disabled=true; if (document.forms[0].avmcascadetype[1].checked){ if(page=="Street_Map_Search"){ if(document.forms[0].vector.checked) document.forms[0].avmcascadetype[1].disabled=false; else document.forms[0].avmcascadetype[1].disabled=true; }else document.forms[0].avmcascadetype[1].disabled=false; } else document.forms[0].avmcascadetype[1].disabled=true; if (document.forms[0].avmcascadetype[2].checked){ if(page=="Street_Map_Search"){ if(document.forms[0].vector.checked) document.forms[0].avmcascadetype[2].disabled=false; else document.forms[0].avmcascadetype[2].disabled=true; }else document.forms[0].avmcascadetype[2].disabled=false; } else document.forms[0].avmcascadetype[2].disabled=true; if (document.forms[0].avmcascadetype[3].checked){ if(page=="Street_Map_Search"){ if(document.forms[0].vector.checked) document.forms[0].avmcascadetype[3].disabled=false; else document.forms[0].avmcascadetype[3].disabled=true; }else document.forms[0].avmcascadetype[3].disabled=false; } else document.forms[0].avmcascadetype[3].disabled=true; if (document.forms[0].avmcascadetype[4].checked){ if(page=="Street_Map_Search"){ if(document.forms[0].vector.checked) document.forms[0].avmcascadetype[4].disabled=false; else document.forms[0].avmcascadetype[4].disabled=true; }else document.forms[0].avmcascadetype[4].disabled=false; } else document.forms[0].avmcascadetype[4].disabled=true; } } //else{ // document.forms[0].avmcascadetype[0].disabled=false; // document.forms[0].avmcascadetype[1].disabled=false; // document.forms[0].avmcascadetype[2].disabled=false; //} // } /* if ("no"==gAVMCascadeOption && null!=document.forms[0].vector){ if (document.forms[0].vector.checked) document.forms[0].vector.click(); if (null!=document.getElementById("txt_vector")){ document.getElementById("txt_vector").color = "#CCCCCC"; document.getElementById("txt_vector").title = "This report option has been disabled \nby your RealQuest Administrator."; } document.forms[0].vector.disabled=true; for (var i=0; i0; i--){eval(tbl+".deleteRow("+i+")");}} function offPrefTabbold(){document.getElementById("pref_search_tab").className="sub";document.getElementById("pref_avm_tab").className="sub";document.getElementById("pref_general_tab").className="sub";document.getElementById("pref_comps_tab").className="sub";document.getElementById("pref_reports_tab").className="sub";document.getElementById("pref_all_tab").className="sub";} function offPrefTab(){showHide('close','pref_search');showHide('close','pref_avm');showHide('close','pref_general');showHide('close','pref_comps');showHide('close','pref_reports');} function onPrefTab(){showHide('open','pref_search');showHide('open','pref_avm');showHide('open','pref_general');showHide('open','pref_comps');showHide('open','pref_reports');} function offSearch(){showHide('close','Address_Search');showHide('close','Advanced_Address_Search');showHide('close','Range_Search');showHide('close','Owner_Name_Search');showHide('close','APN_Search');} function setVar(varName,varValue){ if (varName=="gaddress"){gaddress=varValue;} var gLastAdrr="&address="+gaddress+"&houseno="+ghouseno+"&predirection="+gpredirection+"&unitno="+gunitno+"&suffix="+gsuffix+"&state="+gstate+"&zipcode="+gzipcode; for(j=5; j<12 ; j++){document.links[j].href += gLastAdrr;} } function setSubmit(){markBusy(); if (page.indexOf("Search")!=-1){offSearch();} } function p2f(){ if (page.indexOf("Search")!=-1){ if (page=="Address_Search"){return "address";} else if (page=="Multi_Subjects_Search"){return "multisubjects";} else if (page=="Advanced_Address_Search"){return "advancedaddress";} else if (page=="Range_Search"){return "range";} else if (page=="Owner_Name_Search"){return "ownername";} else if (page=="APN_Search"){return "apn";} else if (page=="Document_Number_Search"){return "documentnumber";} else if (page=="Custom_Search"){return "custom";} else if (page=="Street_Map_Search"){return "streetmapsearch";} else if (page=="Parcel_Map_Search"){return "parcelmapnumber";} else if (page=="Foreclosure_Search"){return "foreclosure";} else if (page=="Consumer_Subjects_Search"){return "consumer";} }else if (page=="Admin"){ if ("adm_vector"==type) return "vector"; else return "reportpermission"; }else{ return "";} } function p2t(sPage){ if (sPage.indexOf("Search")!=-1){ if (sPage=="Address_Search"){return "address";} else if (sPage=="Multi_Subjects_Search"){return "multisubjects";} else if (sPage=="Advanced_Address_Search"){return "advancedaddress";} else if (sPage=="Range_Search"){return "range";} else if (sPage=="Owner_Name_Search"){return "ownername";} else if (sPage=="APN_Search"){return "apn";} else if (sPage=="Document_Number_Search"){return "documentnumber";} else if (sPage=="Custom_Search"){return "custom";} else if (sPage=="Street_Map_Search"){return "streetmapsearch";} else if (sPage=="Parcel_Map_Search"){return "parcelmapnumber";} else if (sPage=="Foreclosure_Search"){return "foreclosure";} else if (sPage=="Consumer_Subjects_Search"){return "consumer";} }else if (sPage=="Admin"){ if ("adm_vector"==type) return "vector"; else return "reportpermission"; }else{ return "";} } function t2p(strType){ if (strType=="address"){return "Address_Search";} else if (strType=="advancedaddress"){return "Advanced_Address_Search";} else if (strType=="multisubjects"){return "Multi_Subjects_Search";} else if (strType=="range"){return "Range_Search";} else if (strType=="ownername"){return "Owner_Name_Search";} else if (strType=="apn"){return "APN_Search";} else if (strType=="documentnumber"){return "Document_Number_Search";} else if (strType=="custom"){return "Custom_Search";} else if (strType=="parcelmapnumber"){return "Parcel_Map_Search";} else if (strType=="foreclosure"){return "Foreclosure_Search";} else if (strType=="streetmapgpl"){return "Street_Map_Search";} else if (strType=="consumer"){return "Consumer_Subjects_Search";} } function scrollWindow(){window.scrollBy(0,10)} function resetform(){document.forms[0].reset();} function selfclose(){if (self.opener!=null){self.opener.updateTime();}closeWin();} function updateTime(){ginitTime = new Date().getTime();} function finish(){gclick = "no";} function fwdWin(){window.focus();} function closeWin(){window.close();} function p2d(){if (page.indexOf("Search")!=-1){if (page=="Document_Number_Search"){return "documentnumber";}else{return "";}}} function displayComparable(){if (page.indexOf("Search")!=-1){if (document.forms[0].comparableproperty!=null&&document.forms[0].comparableproperty.checked){showHide("open","Comparable");}}} function displayReportOptions(option){ if ("checked"==option){ if (null!=document.forms[0]){ if (null!=document.forms[0].streetmap && !document.forms[0].streetmap.checked){showHide("close","STREETMAP_options");} if (null!=document.forms[0].liensuite && !document.forms[0].liensuite.checked){showHide("close","LienSuiteOptions");} if (null!=document.forms[0].loansafe && !document.forms[0].loansafe.checked){showHide("close","LoanSafeOptions");} if (null!=document.forms[0].vector && !document.forms[0].vector.checked){showHide("close","AVM_Cascade_options");} if (null!=document.forms[0].valuation && !document.forms[0].valuation.checked){showHide("close","AVM_options");} if (null!=document.forms[0].neighborhoodinformation && !document.forms[0].neighborhoodinformation.checked){showHide("close","ni_options");} if (null!=document.forms[0].documentimage && !document.forms[0].documentimage.checked){showHide("close","DOCIMG_options");} //Removing propertiwse avm from system //if (null!=document.forms[0].avmcascadetype&&null!=document.forms[0].avmcascadetype[0] && document.forms[0].avmcascadetype[0].checked && page.indexOf("Search")!=-1) {showHide("open","AVMCertifiedOptions");} if (null!=document.forms[0].valuationtype&&null!=document.forms[0].valuationtype[0] && (document.forms[0].valuationtype[0].checked||document.forms[0].valuationtype[3].checked||document.forms[0].valuationtype[4].checked||document.forms[0].valuationtype[5].checked) && page.indexOf("Search")!=-1) {showHide("open","ValuePoint4Options");} if (null!=document.forms[0].valuationtype&&null!=document.forms[0].valuationtype[3] && document.forms[0].valuationtype[3].checked && page.indexOf("Search")!=-1) {showHide("open","HVEOptions");} } }else if ("all"==option) {showHide("open","STREETMAP_options");showHide("open","AVM_options"); showHide("open","ni_options"); showHide("open","DOCIMG_options"); showHide("open","AVM_Cascade_options");showHide("open","LoanSafeOptions");showHide("open","LienSuiteOptions"); /*showHide("open","LOANIQ_options");*/} } function displaySearchForm(){ if (page.indexOf("Search")!=-1){ // 11/10/03 : offSearch(); displayHint(page); if (null!=document.forms[0]&&null!=document.forms[0].lp&&document.forms[0].lp.value.length>0){ if(eval("document.getElementById('radio_"+document.forms[0].lp.value+"')")!=null){ eval("document.getElementById('radio_"+document.forms[0].lp.value+"').click();"); } page = document.forms[0].lp.value; }else{ if(eval("document.getElementById('radio_"+page+"')")!=null){ eval("document.getElementById('radio_"+page+"').click();"); } if (null!=document.forms[0]&&null!=document.forms[0].lp) document.forms[0].lp.value = page; } if ("Multi_Subjects_Search|Custom_Search|Foreclosure_Search|Customer_Preferences".indexOf(page)!=-1) showContent(""+page.replace(/_/gi,' ').toUpperCase()+"","SearchMenuSelectionHead"); else if ("Document_Number_Search|Street_Map_Search|Parcel_Map_Search".indexOf(page)!=-1) {}//doing nothing else showContent("SUBJECT SEARCH - "+(page.substr(0,(page.length-7))).replace(/_/gi,' ').toUpperCase()+"","SearchMenuSelectionHead"); updateReportOptions(page); } } function checkNIOption(varName, varStatus){ checkBoxValidation(); if ("gni_demographics:gni_school:gni_localbusiness:gni_crime".indexOf(varName)!=-1){ if ( !document.forms[0].ni_demographics.checked && !document.forms[0].ni_school.checked && !document.forms[0].ni_localbusiness.checked && !document.forms[0].ni_crime.checked && document.forms[0].neighborhoodinformation.checked) { alert("Please select a Neighborhood report option"); return false; }else { return true ; } } else if ("gtransaction:glegalvesting:gvoluntarylien:ginvoluntarylien".indexOf(varName)!=-1){ if ( !document.forms[0].transaction.checked && !document.forms[0].legalvesting.checked && !document.forms[0].voluntarylien.checked && !document.forms[0].involuntarylien.checked&&document.forms[0].liensuite.checked) { alert("Please select a Lien360 Suite report option"); return false; }else { return true ; } }else{ return true; } } function displayUserInputOptions(){ //Removing propertiwse avm from system /*if ("certified" == gavmcascadetype && page.indexOf("Search")!=-1) showHide("open","AVMCertifiedOptions"); else if (page.indexOf("Search")!=-1) showHide("close","AVMCertifiedOptions"); */ if (("vp4" == gvaluationtype||"pass" == gvaluationtype||"powerbase" == gvaluationtype||"hpa" == gvaluationtype || "geoAVMDistressed"== gvaluationtype)&& page.indexOf("Search")!=-1 && gvaluation == "yes") showHide("open","ValuePoint4Options"); else if (page.indexOf("Search")!=-1) showHide("close","ValuePoint4Options"); if (("precision" == gavmcascadetype||"yes" == gavmcascadetype)&& page.indexOf("Search")!=-1 && gvector=="yes") showHide("open","GeoAvmCore"); else if (page.indexOf("Search")!=-1) showHide("close","GeoAvmCore"); if ("hve" == gvaluationtype && page.indexOf("Search")!=-1 && gvaluation == "yes") showHide("open","HVEOptions"); else if (page.indexOf("Search")!=-1) showHide("close","HVEOptions"); if ("casa" == gvaluationtype && page.indexOf("Search")!=-1 && gvaluation == "yes") showHide("open","CASAOptions"); else if (page.indexOf("Search")!=-1) showHide("close","CASAOptions"); } function setReportOptions(varName, varStatus){ if (checkBusyandExpire()){ if (!checkNIOption(varName,varStatus)){ return false; } if (page == "Customer_Preferences") { return true; } else{ var varcurrentTime = new Date().getTime(); if (varStatus == true){ eval(varName+"='yes'"); if (page != "Customer_Preferences" && page != "Street_Map_Search"){ if (varName == "gcomparableproperty" && (page.indexOf("Search")!=-1||page=="Property_List")){showHide("open","Comparable");} if (varName == "gvector" && (page.indexOf("Search")!=-1||page=="Property_List"||page=="error")){if ("ENDUSER"!==guserstatus) showHide("open","Vector_AVM"); showHide("open","AVM_Cascade_options");} if (varName == "gloansafe" && (page.indexOf("Search")!=-1||page=="Property_List"||page=="error")){/*if ("ENDUSER"!==guserstatus)*/ showHide("open","LoanSafeOptions");} else if (varName == "gneighborhoodinformation"){showHide("open","ni_options");} else if (varName == "gvaluation"){showHide("open","AVM_options");} else if (varName == "gdocumentimage"){showHide("open","DOCIMG_options");} else if (varName == "gstreetmap"){showHide("open","STREETMAP_options");} else if (varName == "gliensuite"){showHide("open","LienSuiteOptions");} //else if (varName == "gloaniq"){showHide("open","LOANIQ_options");} -- remove LoanIQ report } }else{ if (varStatus == false) eval(varName+"=''"); else eval(varName+"='"+varStatus+"'"); if (page != "Customer_Preferences" && page != "Street_Map_Search"){ if (varName == "gcomparableproperty" && (page.indexOf("Search")!=-1||page=="Property_List")) {showHide("close","Comparable");} if (varName == "gvector" && (page.indexOf("Search")!=-1||page=="Property_List"||page=="error")) {if ("ENDUSER"!==guserstatus) showHide("close","Vector_AVM"); showHide("close","AVM_Cascade_options");} if (varName == "gloansafe" && (page.indexOf("Search")!=-1||page=="Property_List"||page=="error")) {/*if ("ENDUSER"!==guserstatus)*/ showHide("close","LoanSafeOptions");} else if (varName == "gneighborhoodinformation" && page != "Customer_Preferences"){showHide("close","ni_options");} else if (varName == "gvaluation") {showHide("close","AVM_options");} else if (varName == "gdocumentimage"){showHide("close","DOCIMG_options");} else if (varName == "gstreetmap"){showHide("close","STREETMAP_options");} else if (varName == "gliensuite"){showHide("close","LienSuiteOptions");} //else if (varName == "gloaniq"){showHide("close","LOANIQ_options");} -- remove LoanIQ report } } displayUserInputOptions(); var nVecOptold = nVecOpt; var nLoansafeOptold = nLoansafeOpt; var nValOptold = nValOpt; var nDocOptold = nDocOpt; var nStMapOptold = nStMapOpt; //var nLienSuiteOptold = nLienSuiteOpt; if (gvaluationtype == "vp4") nValOpt = REPORT_VP4 ; else if (gvaluationtype == "geoAVMDistressed") nValOpt = REPORT_GEOAVM_DISTRESSED ; else if (gvaluationtype == "hve") nValOpt = REPORT_HVE ; else if (gvaluationtype == "verovalue") nValOpt = REPORT_VEROVALUE ; else if (gvaluationtype == "pass") nValOpt = REPORT_PASS ; else if (gvaluationtype == "powerbase") nValOpt = REPORT_POWERBASE ; else if (gvaluationtype == "hpa") nValOpt = REPORT_HPA ; else if (gvaluationtype == "casa") nValOpt = REPORT_CASA ; else if (gvaluationtype == "valuewizard") nValOpt = REPORT_VALUEWIZARD ; else if (gvaluationtype == "avmax") nValOpt = REPORT_AVMAX ; else if (gvaluationtype == "ival") nValOpt = REPORT_IVAL ; if (mycontent[11]!=null){ mycontent[11] = mycontent[11].replace("reportoptions="+nValOptold,"reportoptions="+nValOpt) ; mycontent[11] = mycontent[11].replace("checkReportPermission(\""+nValOptold,"checkReportPermission(\""+nValOpt) ; } if (gavmcascadetype == "yes") nVecOpt = REPORT_VECTOR_CORE; else if (gavmcascadetype == "precision") nVecOpt = REPORT_VECTOR_PRECISION; else if (gavmcascadetype == "coreplus") nVecOpt = REPORT_VECTOR_COREPLUS; else if (gavmcascadetype == "precisionplus") nVecOpt = REPORT_VECTOR_PRECISIONPLUS; else if (gavmcascadetype == "custom" || gavmcascadetype == "no") // "no" is old value for Custom cascade that some users may have stored in their prefs nVecOpt = REPORT_VECTOR_CUSTOM; if (mycontent[10]!=null){ mycontent[10] = mycontent[10].replace("reportoptions="+nVecOptold,"reportoptions="+nVecOpt) ; mycontent[10] = mycontent[10].replace("checkReportPermission(\""+nVecOptold,"checkReportPermission(\""+nVecOpt) ; } if (gloansafetype == "loansafe") nLoansafeOpt = REPORT_LOANSAFE; else if (gloansafetype == "loansafeFraud") nLoansafeOpt = REPORT_FRAUD_LOANSAFE; else if (gloansafetype == "loansafeCollateral") nLoansafeOpt = REPORT_COLLATERAL_LOANSAFE; else if (gloansafetype == "loansafeRisk") nLoansafeOpt = REPORT_RISK_LOANSAFE; if (mycontent[12]!=null){ mycontent[12] = mycontent[12].replace("reportoptions="+nLoansafeOptold,"reportoptions="+nLoansafeOpt) ; mycontent[12] = mycontent[12].replace("checkReportPermission(\""+nLoansafeOptold,"checkReportPermission(\""+nLoansafeOpt) ; } // update document image type if (gdocimgtype == "transfer") nDocOpt = REPORT_DOCUMENTIMAGE ; else if (gdocimgtype == "mortgage") nDocOpt = REPORT_DOCIMAGE_MTG ; if (mycontent[6]!=null) mycontent[6] = mycontent[6].replace("reportoptions="+nDocOptold,"reportoptions="+nDocOpt) ; // update streetmap type if (gstreetmaptype == "street") nStMapOpt = REPORT_STREETMAP ; else if (gstreetmaptype == "aerial") nStMapOpt = REPORT_AERIALMAP ; if (mycontent[2]!=null) mycontent[2] = mycontent[2].replace("reportoptions="+nStMapOptold,"reportoptions="+nStMapOpt) ; //reset LienSuite child options when LienSuite uncheked if(varName == "gliensuite" && varStatus == false) { gtransaction = ""; glegalvesting = ""; gvoluntarylien = ""; ginvoluntarylien=""; } // For Lein Suite /* if (gliensuitetype == "voluntarylien") nLienSuiteOpt = REPORT_VOLUNTARYLIEN ; else if (gliensuitetype == "legalvesting") nLienSuiteOpt = REPORT_LEGALVESTING ; else if (gliensuitetype == "transaction") nLienSuiteOpt = REPORT_TRANSACTION ; else if (gliensuitetype == "lienplus") nLienSuiteOpt = REPORT_LIENPLUS ; else if (gliensuitetype == "lien360") nLienSuiteOpt=REPORT_INVOLUNTARYLIEN ; if (mycontent[3]!=null) { mycontent[3] = mycontent[3].replace("reportoptions="+nLienSuiteOptold,"reportoptions="+nLienSuiteOpt) ; mycontent[3] = mycontent[3].replace("checkReportPermission(\""+nLienSuiteOptold,"checkReportPermission(\""+nLienSuiteOpt) ; } */ // if (gliensuite == "yes"){ // // nLienSuiteOpt = REPORT_LIENSUITE; // mycontent[3] = mycontent[3].replace("reportoptions="+nLienSuiteOptold,"reportoptions="+nLienSuiteOpt) ; // // } // if (mycontent[3]!=null) // { // mycontent[3] = mycontent[3].replace("reportoptions="+nLienSuiteOptold,"reportoptions="+nLienSuiteOpt) ; // // mycontent[3] = mycontent[3].replace("checkReportPermission(\""+nLienSuiteOptold,"checkReportPermission(\""+nLienSuiteOpt) ; // } var sUrl = urljspprog+"&action=setvalue&type=reportoptions"+"&detailproperty="+gdetailproperty+"&comparableproperty="+gcomparableproperty+"&streetmap="+gstreetmap+"&streetmaptype="+gstreetmaptype+"&floodmap="+gfloodmap+"&assessormap="+gassessormap+"&valuation="+gvaluation+"&valuationtype="+gvaluationtype+"&vector="+gvector+"&avmcascadetype="+gavmcascadetype+"&loansafetype="+gloansafetype+"&documentimage="+gdocumentimage+"&liensuitetype="+gliensuitetype+"&liensuite="+gliensuite+"&transaction="+gtransaction+"&legalvesting="+glegalvesting+"&voluntarylien="+gvoluntarylien+"&involuntarylien="+ginvoluntarylien+"&neighborhoodinformation="+gneighborhoodinformation+"&ni_demographics="+gni_demographics+"&ni_school="+gni_school+"&ni_localbusiness="+gni_localbusiness+"&ni_crime="+gni_crime+"&lamar="+glamar+"&foreclosureactivity="+gforeclosureactivity+"&docimgtype="+gdocimgtype+/*"&loaniq="+gloaniq+*/"&loansafe="+gloansafe+"&historypro="+ghistorypro+"&prequalpro="+gprequalpro+"&willcap="+gwillcap+"&homestanding="+ghomestanding+"&barreport="+gbarreport+"&aarreport="+gaarreport+"&ownerconnect="+gownerconnect+/*"&totallien="+gtotallien+*/"&incomepro="+gincomepro+"&historyproreview="+ghistoryproreview+"&trueltv="+gtrueltv+"&homevaluecalibrator="+ghomevaluecalibrator+/*"&safecheck="+gsafecheck+*/"&"+varcurrentTime; var sRet = trim(getFileContent(sUrl)); if (page=="Property_List"&&rs=='y') setContent(document.forms[0]); //if (sRet.length>0||"yes"==gRunReport) {if (page !== "Map_Subject_Search"&&page !== "Street_Map_Search") {javascript:history.go(0);}}//history.go(0);}}//Commented to fix for firefox if (sRet.length>0 || "yes"==gRunReport) {if (page !== "Map_Subject_Search"&&page !== "Street_Map_Search") {location.reload();}} updateReportOptions(page); if(page == "Street_Map_Search"){ var reportsEnabled = arrReport(varName); if(reportsEnabled && reportsEnabled == "basicRptUnChk"){ changeTabImage("basic_reports","on",""); } else if(reportsEnabled && reportsEnabled == "basicRpt"){ changeTabImage("basic_reports","on","_checked"); } if(reportsEnabled && (reportsEnabled == "avms")){ changeTabImage("avms","on","_checked"); } else if(reportsEnabled && (reportsEnabled == "avmsUnChk")) { changeTabImage("avms","on",""); } if(reportsEnabled && (reportsEnabled == "analytics")) { changeTabImage("mortgageanalytics","on","_checked"); } else if( reportsEnabled && (reportsEnabled == "analyticsUnChk")) { changeTabImage("mortgageanalytics","on",""); } } return true; } } return false; } function arrReport(varName){ var form = document.forms[0]; if((varName == "gdetailproperty") || (varName == "gcomparableproperty") ||(varName == "gstreetmap") ||(varName == "gtransaction") ||(varName == "gvoluntarylien")|| (varName == "ginvoluntarylien") || (varName == "gassessormap") || (varName == "gfloodmap") ||(varName == "gdocumentimage") ||(varName == "glegalvesting") ||(varName == "gneighborhoodinformation") ||(varName == "glamar") ||(varName == "gforeclosureactivity")) { if((null!=form.detailproperty && !form.detailproperty.checked) && (null!=form.comparableproperty && !form.comparableproperty.checked) && (null!=form.streetmap && !form.streetmap.checked) && (null!=form.liensuite && !form.liensuite.checked) && /*(null!=form.transaction && !form.transaction.checked) && (null!=form.voluntarylien && !form.voluntarylien.checked) &&*/ (null!=form.assessormap && !form.assessormap.checked) && (null!=form.floodmap && !form.floodmap.checked) && (null!=form.documentimage && !form.documentimage.checked) && /*(null!=form.legalvesting && !form.legalvesting.checked) &&*/ (null!=form.neighborhoodinformation && !form.neighborhoodinformation.checked) && (null!=form.lamar && !form.lamar.checked) && (null!=form.foreclosureactivity && !form.foreclosureactivity.checked)){ return "basicRptUnChk"; } return "basicRpt"; } else if((varName == "gvector") || (varName == "gvaluation")) { if((null!=form.vector && !form.vector.checked) && (null!=form.valuation && !form.valuation.checked)){ return "avmsUnChk"; } return "avms"; } else if((varName == "gloansafe") || (varName == "gloansafeFraud") || (varName == "gloansafeCollateral") || (varName == "gloansafeRisk") || (varName == "gtrueltv") || (varName == "ghistorypro") || (varName == "ghistoryproreview") || (varName == "ghomestanding") || (varName == "gbarreport") || (varName == "gaarreport") || (varName == "gownerconnect") || /*(varName == "gtotallien") ||*/ (varName == "gprequalpro") || (varName == "gincomepro") || (varName == "ghomevaluecalibrator")|| (varName == "gwillcap")) { if((null!=form.loansafe && !form.loansafe.checked) && (null!=form.trueltv && !form.trueltv.checked) && (null!=form.historypro && !form.historypro.checked) && (null!=form.prequalpro && !form.prequalpro.checked) && (null!=form.willcap && !form.willcap.checked) && (null!=form.homestanding && !form.homestanding.checked) && (null!=form.barreport && !form.barreport.checked) && (null!=form.aarreport && !form.aarreport.checked) && (null!=form.ownerconnect && !form.ownerconnect.checked) && /*(null!=form.totallien && !form.totallien.checked) &&*/ (null!=form.historyproreview && !form.historyproreview.checked) && (null!=form.incomepro && !form.incomepro.checked) && (null!=form.homevaluecalibrator && !form.homevaluecalibrator.checked)) { return "analyticsUnChk"; } return "analytics"; } return ""; } function setPreviewPage(varStatus){ var sRet = getFileContent(urljspprog+"&action=setvalue&type=previewpage&status="+varStatus+"&"+new Date().getTime()); } function cancelSearch(){ var sRet = getFileContent(urljspprog+"&action=setvalue&type=cancelsearch&"+new Date().getTime()); } //function trim(str){str = clean(str); var nIndex = 0;for (var i=0; i=0; i--){if (str.charCodeAt(i)!=32){nIndex=i;break;} if (i==0){nIndex=0;}}str = str.substring(0,nIndex+1); if (str==" ") return ""; else return str;} function trim(str) { if (null==str || typeof(str)=="undefined") return ""; else return str.replace(/^\s*/,"").replace(/\s*$/,""); } function stripCharacters(str) { //Method to remove unwanted characters from the fields. //Also performs a trim of the string using above trim function. if (null==str || typeof(str)=="undefined") return ""; else { str = str.replace(/\\|--|\"/g, ""); return trim(str); } } function clean(str){ if (null==str) return ""; strNew = "";for (var i=0; i=0 ? true : false); // if ( isPDFDoc && !canDisplayPDF() ) if ( isPDFDoc && !AdobeReader) { if ( confirm("Adobe Reader is required to view this PDF file.\nWould you like to download the latest version from Adobe now?") ) { continueProcessing = false; window.open("http://www.adobe.com/","Adobe","target=_blank,menubar,toolbar,scrollbars,location,status,resizable"); } closeWindow = true; } if ( continueProcessing ) { url += "&"+new Date().getTime(); var w = 721;var h = (screen.height)*0.75;LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=10; settings='width='+w+',height='+h+',screenX='+LeftPosition+',screenY='+TopPosition+',top='+TopPosition+',left='+LeftPosition+',scrollbars=yes,location=yes,directories=no,status=yes,menubar=yes,toolbar=yes,resizable=yes'; if (gclick == "yes"){ if (reportWIN.closed) { reportWIN = open(url,"Report",settings); gclick = "yes"; } else {/*alert("Processing request please wait ...");*/} } else { reportWIN = open(url,"Report",settings); gclick = "yes"; } } if ( closeWindow ) { //Don't close the window if it is the parent window if (window.opener != undefined) { window.close(); } } } } function getPurchasePDataStatus(){ DWREngine.setAsync(false); DWRController.getPurchasePDataValue(callBackSortVal); function callBackSortVal(result){ if (result){ return purchasePDataPermission = result; } } } function popUpConsumerStmt(url){ if (checkBusyandExpire()){ url += "&"+new Date().getTime(); var w = 720;var h = 400; LeftPosition=(screen.width)?(screen.width-w)/2:100; TopPosition=(screen.height)?(screen.height-h)/2:100; settings='width='+w+',height='+h+',screenX='+LeftPosition+',screenY='+TopPosition+',top='+TopPosition+',left='+LeftPosition+',scrollbars=no,location=no,directories=no,status=yes,menubar=no,toolbar=no,resizable=no'; if (gclick == "yes"){ if (reportWIN.closed){reportWIN = open(url,"Report",settings);gclick = "yes";} else {/*alert("Processing request please wait ...");*/} } else {reportWIN = open(url,"Report",settings);gclick = "yes";} } } function popUpActivity(){ var w = 720; var h = (screen.height)*0.75;LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=10; settings='width='+w+',height='+h+',screenX='+LeftPosition+',screenY='+TopPosition+',top='+TopPosition+',left='+LeftPosition+',scrollbars=yes,location=no,directories=no,status=yes,menubar=yes,toolbar=yes,resizable=yes'; reportWIN = open("","Report",settings); } function popUpDocImageActivity(){ var w = 720; var h = (screen.height)*0.75;LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=10; settings='width='+w+',height='+h+',screenX='+LeftPosition+',screenY='+TopPosition+',top='+TopPosition+',left='+LeftPosition+',scrollbars=yes,location=no,directories=no,status=yes,menubar=yes,toolbar=yes,resizable=yes'; reportWIN = open("","ReportDocImage",settings); } function popUpMapViewer(url){ var w = 800; var h = 600; LeftPosition=(screen.width)?(screen.width-w)/2:100; TopPosition=(screen.height)?(screen.height-h)/2:100; settings='width='+w+',height='+h+',screenX='+LeftPosition+',screenY='+TopPosition+',top='+TopPosition+',left='+LeftPosition+',scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes'; mapViewerWIN = open(url,"MapViewer",settings); } function popUpCustomerCenter(url){ var w = 860; var h = 650; LeftPosition=(screen.width)?(screen.width-w)/2:100; TopPosition=(screen.height)?(screen.height-h)/2:100; settings='width='+w+',height='+h+',screenX='+LeftPosition+',screenY='+TopPosition+',top='+TopPosition+',left='+LeftPosition+',scrollbars=yes,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes'; customerCenterWIN = open(url,"customerCenterWIN",settings); } function popUpContactUs(url){ var w = 640; var h = 500; LeftPosition=(screen.width)?(screen.width-w)/2:100; TopPosition=(screen.height)?(screen.height-h)/2:100; settings='width='+w+',height='+h+',screenX='+LeftPosition+',screenY='+TopPosition+',top='+TopPosition+',left='+LeftPosition+',scrollbars=yes,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes'; contacusWIN = open(url,"ContactUs",settings); } function popUpMyProfile(url){ var w = 640; var h = 500; LeftPosition=(screen.width)?(screen.width-w)/2:100; TopPosition=(screen.height)?(screen.height-h)/2:100; settings='width='+w+',height='+h+',screenX='+LeftPosition+',screenY='+TopPosition+',top='+TopPosition+',left='+LeftPosition+',scrollbars=yes,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes'; myprofileWIN = open(url,"MyProfile",settings); } function popUpRelogin(url){ var w = 320; var h = 120; LeftPosition=(screen.width)?(screen.width-w)/2:100; TopPosition=(screen.height)?(screen.height-h)/2:100; settings='width='+w+',height='+h+',screenX='+LeftPosition+',screenY='+TopPosition+',top='+TopPosition+',left='+LeftPosition+',scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no'; reloginWIN = open(url,"ReLogin",settings); } function popUpRadiusSearch(url){ var w = 400; var h = 250; LeftPosition=(screen.width)?(screen.width-w)/2:100; TopPosition=(screen.height)?(screen.height-h)/2:100; settings='width='+w+',height='+h+',screenX='+LeftPosition+',screenY='+TopPosition+',top='+TopPosition+',left='+LeftPosition+',scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes'; radiussearchWIN = open(url,"RadiusSearch",settings); } function popUpChangePassword(url){ var w = 350; var h = 230; LeftPosition=(screen.width)?(screen.width-w)/2:100; TopPosition=(screen.height)?(screen.height-h)/2:100; settings='width='+w+',height='+h+',screenX='+LeftPosition+',screenY='+TopPosition+',top='+TopPosition+',left='+LeftPosition+',scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no'; changepasswordWIN = open(url,"ChangePassword",settings); } function popUpMLSRegistry(url) { var w = 860; var h = 630; var leftPosition = (screen.width) ? (screen.width - w) / 2 : 100; var topPosition = (screen.height) ? (screen.height - h) / 2 : 100; settings = 'width=' + w + ',height=' + h + ',screenX=' + leftPosition + ',screenY=' + topPosition + ',top=' + topPosition + ',left=' + leftPosition + ',scrollbars=yes,location=no,directories=no,status=no,menubar=yes,toolbar=no,resizable=no'; var mlsRegistryWindow = open(url, "MLSRegistry", settings); } function popDocNo(urlpop){ var continueProcessing = true; var downloadFile = false; var closeWindow = false; var isPDFDoc = true; var confirmFlag = false; if ( DocumentNoWIN != null && !DocumentNoWIN.closed ) { DocumentNoWIN.close(); DocumentNoWIN = null; } if ( urlpop.indexOf("pdf") == -1 ){ isPDFDoc = false; } var status = PluginDetect.isMinVersion('AdobeReader', '0'); var AdobeReader = (status >=0 ? true : false); if ( isPDFDoc && !AdobeReader) /**if ( isPDFDoc )**/ { confirmFlag = confirm("Adobe Reader is required to view this PDF file.\nWould you like to download the latest version from Adobe now?"); if ( confirmFlag ) { continueProcessing = false; window.open("http://www.adobe.com/","Adobe","target=_blank,menubar,toolbar,scrollbars,location,status,resizable"); } closeWindow = true; /*if(Get_Cookie_full( 'pdfdocimgpopup' )){ Delete_Cookie_full('pdfdocimgpopup', '/', ''); }else{ alert("Acrobat Reader is required to read document."); Set_Cookie_full( 'pdfdocimgpopup', '1', '', '/', '', '' ); }*/ } if ( continueProcessing ) { var popcurrentTime = new Date().getTime(); urlpop += "&pop="+popcurrentTime; var w = 720;var h = (screen.height)*0.75;LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=30; settings='width='+w+',height='+h+',screenX='+LeftPosition+',screenY='+TopPosition+',top='+TopPosition+',left='+LeftPosition+',scrollbars=yes,location=no,directories=no,status=yes,menubar=no,toolbar=no,resizable=yes'; DocumentNoWIN = open(urlpop,"DocumentImage",settings); } if ( closeWindow ) { if ( DocumentNoWIN != null && !DocumentNoWIN.closed ) { DocumentNoWIN.close(); DocumentNoWIN = null; } else if (window.name != 'Report') //Don't close the window if it is the parent Report window { window.close(); } } } function photoViewerPopup(urlpop) { try { var popcurrentTime = new Date().getTime(); urlpop += "&pop=" + popcurrentTime; settings = "width=850,height=695,scrollbars=no,location=no,directories=no,status=yes,menubar=no,toolbar=no,resizable=no"; var photoViewerWindow = open(urlpop, "PropertyPhoto", settings); } catch(ex) { alert(ex); } } function popSingleComps(urlpop){ //showModalDialog or showModelessDialog with: settings = 'help:0;resizable:0;dialogWidth:'+w+'px;dialogHeight:'+h+'px'; var popcurrentTime = new Date().getTime(); urlpop += "&="+popcurrentTime; var w = 640;var h = 298;LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100; //settings='width='+w+',height='+h+',screenX='+LeftPosition+',screenY='+TopPosition+',top='+TopPosition+',left='+LeftPosition+',scrollbars=yes,location=no,directories=no,status=yes,menubar=no,toolbar=no,resizable=no'; //CompsSingleWIN = open(urlpop,"SingleComparable",settings); settings = 'help:0;resizable:0;dialogWidth:'+w+'px;dialogHeight:'+h+'px'; //CompsSingleWIN = showModelessDialog(urlpop,"SingleComparable",settings); CompsSingleWIN = showModalDialog(urlpop,"SingleComparable",settings); } function popAPNHelp(urlpop){ var popcurrentTime = new Date().getTime(); urlpop += "?"+popcurrentTime; var w = 400;var h = 500;LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100; //settings='width='+w+',height='+h+',screenX='+LeftPosition+',screenY='+TopPosition+',top='+TopPosition+',left='+LeftPosition+',scrollbars=yes,location=no,directories=no,status=yes,menubar=no,toolbar=no,resizable=no'; //APNHelpWIN = open(urlpop,"APNHelp",settings); settings = 'help:0;resizable:0;dialogWidth:'+w+'px;dialogHeight:'+h+'px'; APNHelpWIN = showModalDialog(urlpop,"APN_Help",settings); } function checkBoxValidation() { try { if (isObjExist(document.forms[0].neighborhoodinformation) && !document.forms[0].neighborhoodinformation.checked) { toggleCheckBoxes(true, "neighborhoodinformation"); } else { toggleCheckBoxes(false, "neighborhoodinformation"); } if (isObjExist(document.forms[0].streetmap) && !document.forms[0].streetmap.checked) { toggleCheckBoxes(true, "streetmaptype"); } else { toggleCheckBoxes(false, "streetmaptype"); } if (isObjExist(document.forms[0].liensuite) && !document.forms[0].liensuite.checked) { toggleCheckBoxes(true, "liensuite"); } else { toggleCheckBoxes(false, "liensuite"); } if (isObjExist(document.forms[0].documentimage) && !document.forms[0].documentimage.checked) { toggleCheckBoxes(true, "docimgtype"); } else { toggleCheckBoxes(false, "docimgtype"); } if (isObjExist(document.forms[0].valuation) && !document.forms[0].valuation.checked) { toggleCheckBoxes(true, "valuationtype"); } else { toggleCheckBoxes(false, "valuationtype"); } if (isObjExist(document.forms[0].loansafe) && !document.forms[0].loansafe.checked) { toggleCheckBoxes(true, "loansafetype"); if (page == "Customer_Preferences" || page == "Address_Search" || page == "Advanced_Address_Search" || page == "Range_Search" || page == "Owner_Name_Search" || page == "APN_Search" ) { showHide('close', 'reportoptions_ls_link'); showHide('open', 'reportoptions_ls_nolink'); showHide('close', 'reportoptions_lsf_link'); showHide('open', 'reportoptions_lsf_nolink'); showHide('close', 'reportoptions_lsc_link'); showHide('open', 'reportoptions_lsc_nolink'); showHide('close', 'reportoptions_lsr_link'); showHide('open', 'reportoptions_lsr_nolink'); } } else { toggleCheckBoxes(false, "loansafetype"); if (page == "Customer_Preferences" || page == "Address_Search" || page == "Advanced_Address_Search" || page == "Range_Search" || page == "Owner_Name_Search" || page == "APN_Search" ) { showHide('open', 'reportoptions_ls_link'); showHide('close', 'reportoptions_ls_nolink'); showHide('open', 'reportoptions_lsf_link'); showHide('close', 'reportoptions_lsf_nolink'); showHide('open', 'reportoptions_lsc_link'); showHide('close', 'reportoptions_lsc_nolink'); showHide('open', 'reportoptions_lsr_link'); showHide('close', 'reportoptions_lsr_nolink'); } } if( null != guserstatus && "ENDUSER"!=guserstatus ){ if (isObjExist(document.forms[0].vector) && !document.forms[0].vector.checked) { toggleCheckBoxes(true, "avmcascadetype"); } else { toggleCheckBoxes(false, "avmcascadetype"); } } } catch (err) { } } function isObjExist(elementID){ return elementID != undefined && elementID != null; } function toggleCheckBoxes(isEnabled, reportOptionName) { if (reportOptionName == "neighborhoodinformation" && isObjExist(document.forms[0].ni_demographics) && isObjExist(document.forms[0].ni_school) && isObjExist(document.forms[0].ni_localbusiness) && isObjExist(document.forms[0].ni_crime)) { document.forms[0].ni_demographics.disabled = isEnabled; document.forms[0].ni_school.disabled = isEnabled; document.forms[0].ni_localbusiness.disabled = isEnabled; document.forms[0].ni_crime.disabled = isEnabled; if (isEnabled) { document.forms[0].ni_demographics.checked = !isEnabled; document.forms[0].ni_school.checked = !isEnabled; document.forms[0].ni_localbusiness.checked = !isEnabled; document.forms[0].ni_crime.checked = !isEnabled; } } if (reportOptionName == "liensuite" && isObjExist(document.forms[0].transaction) && isObjExist(document.forms[0].legalvesting) && isObjExist(document.forms[0].voluntarylien)&& isObjExist(document.forms[0].involuntarylien)) { document.forms[0].transaction.disabled = isEnabled; document.forms[0].legalvesting.disabled = isEnabled; document.forms[0].voluntarylien.disabled = isEnabled; document.forms[0].involuntarylien.disabled = isEnabled; if (isEnabled) { document.forms[0].transaction.checked = !isEnabled; document.forms[0].legalvesting.checked = !isEnabled; document.forms[0].voluntarylien.checked = !isEnabled; document.forms[0].involuntarylien.checked = !isEnabled; } } if ((reportOptionName == "streetmaptype" || reportOptionName == "docimgtype" || reportOptionName == "valuationtype" || reportOptionName == "avmcascadetype" || reportOptionName == "loansafetype" /*||reportOptionName == "liensuitetype"*/) && isObjExist(document.getElementsByName(reportOptionName))) { var compId = document.getElementsByName(reportOptionName); for (i = 0; i < compId.length; i++) { compId[i].disabled = isEnabled; /*if (isEnabled) { compId[i].checked = !isEnabled; }*/ } } }/* * The following function is to incorporate logic NoSolicitation law agreement for the given state. * */ var NoSolicitationDialog = 'NONE'; function popUpNoSolicitationPage(state) { var returnFlag = false; try { var pageUrl = "/html/"+state+"_SolicitationPage.html"; var pageName=state+"_NoSolicitationPage"; var popcurrentTime = new Date().getTime(); var urlpop = pageUrl+"?"+popcurrentTime; var w=0; var h=0; //var w = 500;var h = 350; //LeftPosition=(screen.width)?(screen.width-w)/2:100; //TopPosition=(screen.height)?(screen.height-h)/2:100; if(state=='KS'){ w= 500;h = 380; }else if(state=='ID'){ w= 500;h = 500; } var settings = 'help:0;resizable:0;dialogWidth:'+w+'px;dialogHeight:'+h+'px'+';scroll=no;status=no;unadorned=yes'; if(window.showModalDialog) { //Get the session value for the given state to verify the accept status getSessionSolicitationValue(state); if(sessionSolicitationValue != "YES") { //check the state accept status value to popup again NoSolicitationDialog = showModalDialog(urlpop,pageName,settings); if(NoSolicitationDialog != 'submitDialog') { returnFlag = false; }else{ //Set the session value for the given state to capture the accept status setSessionSolicitationValue(state); returnFlag = true; } }else{ returnFlag = true; } } // else{ // alert("Non-IE Browser"); // alert("Url popup="+urlpop); // window.open(urlpop, pageName, "toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,height=750,width=800,copyhistory=no"); // } }catch(exp){ /*alert("Exception in the NoSolicitation page ="+exp);*/ } return returnFlag; } function confirmSubmitRequest(){ window.returnValue ="submitDialog"; window.close(); } function backToSearchPage() { window.returnValue ="closeDialog"; window.close(); } /* * The following function is to get solicitation session value for the given state. */ var sessionSolicitationValue = "NO"; function getSessionSolicitationValue(state){ DWREngine.setAsync(false); DWRController.getSolicitationFlag(state,callBackSesVal); function callBackSesVal(result){ if (result){ return sessionSolicitationValue = result; } } } /* * The following function is to set solicitation session value for the given state. */ function setSessionSolicitationValue(state){ DWREngine.setAsync(false); DWRController.setSolicitationFlag(state); } function popRetrieveSavedFormat(urlpop){ var popcurrentTime = new Date().getTime(); urlpop += "&pop="+popcurrentTime; var w = 500;var h = 550;LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100; settings='width='+w+',height='+h+',screenX='+LeftPosition+',screenY='+TopPosition+',top='+TopPosition+',left='+LeftPosition+',scrollbars=yes,location=no,directories=no,status=yes,menubar=no,toolbar=no,resizable=no'; RetrieveSavedFormatWIN = open(urlpop,"RetrieveSavedFormat",settings); } function popUpFinishDL(urldl){ var popcurrentTime = new Date().getTime(); urldl += "&pop="+popcurrentTime; var w = 425; var h = 165; LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100; settings='width='+w+',height='+h+',screenX='+LeftPosition+',screenY='+TopPosition+',top='+TopPosition+',left='+LeftPosition+',scrollbars=yes,location=no,directories=no,status=yes,menubar=no,toolbar=no,resizable=no'; FinishDLWIN = open(urldl,"FinishDownload",settings); } function popEkWindow(link) { if(link != null && link != '') { ekwin = window.open(link,'EkWindow','location=1,menubar=1,resizable=1,scrollbars=1,status=1,titlebar=1,toolbar=1'); ekwin.focus(); } } function popUpDisclaimerRQMap(){ try{ var w = 640; var h = 440; var settings = 'help:0;resizable:0;dialogWidth:'+w+'px;dialogHeight:'+h+'px'; var lat = window.frames["stf_mapclient"].vFrame.dashBoard.mapControl.GetCenter().Latitude; var lon = window.frames["stf_mapclient"].vFrame.dashBoard.mapControl.GetCenter().Longitude; //var lat = window.frames.vFrame.dashBoard.mapControl.GetCenter().Latitude; //var lon = window.frames.vFrame.dashBoard.mapControl.GetCenter().Longitude; if (null == lat || null == lon) { alert("Parcel Boundary Disclaimer is not available"); } else{ var urlpop = "/jsp/mapdisclaimer.jsp?lat="+lat+"&lon="+lon; disclaimerWin = showModalDialog(urlpop,"Disclaimer",settings); } }catch(ex){} } function viewSearchQuickHelp(pg){ var popcurrentTime = new Date().getTime(); var urlpop = "/lbi/product_help.lbi?"+popcurrentTime+"#"+pg.replace(/_/gi,' '); var w = 650; var h = 700;LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100; settings='width='+w+',height='+h+',screenX='+LeftPosition+',screenY='+TopPosition+',top='+TopPosition+',left='+LeftPosition+',scrollbars=yes,location=no,directories=no,status=yes,menubar=no,toolbar=no,resizable=no'; SEARCHHELP = open(urlpop,"Search_Help",settings); return true; } function viewExportLaypOut(urlpop){ //showModalDialog or showModelessDialog with: settings = 'help:0;resizable:0;dialogWidth:'+w+'px;dialogHeight:'+h+'px'; var w = 640;var h = 600;LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100; settings = 'help:0;resizable:0;dialogWidth:'+w+'px;dialogHeight:'+h+'px'; ExportLayoutWIN = showModalDialog(urlpop,"ExportLayout",settings); } function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i'; if (refid=="y"){ if("|AVMAnalyticsArchive|VP4Archive|vp4defaultarchive|HVEArchive|VectorArchive|IncomeProArchive|LoanSafeArchive|LoanSafeFraudArchive|LoanSafeCollateralArchive|LoanSafeRiskArchive|BarreportArchive|HistoryProArchive|HistoryProReviewArchive|".indexOf(page)==-1){ if (null!=document.getElementById("mult_refid")){ showContent(refID,"mult_refid"); } else{ showContent(refID,"p_refid"); if(grecordno == "0" && document.getElementById("refjobID") != null){ if (refid != null && refid == "y" && document.getElementById("refjobID").value == "" && gjobid == "") { document.getElementById("refjobID").enabled = true; } else{ document.getElementById("refjobID").disabled = true; } } } setRefIdRequired(); } // check for the reference id entered by the user and display it back after the DU upload. Applicable only for Loansafe and BAR report. if( document.getElementById('refjobID') != null && ref_jobId !== ''){ document.getElementById('refjobID').value=ref_jobId; } } } function setRefIdRequired() { if (gJobIDrequired != null && gJobIDrequired == "yes" || gAdminJobIDrequired != null && gAdminJobIDrequired == "yes") { if (isObjExist(document.getElementById("req_refid"))) { document.getElementById("req_refid").style.display = "inline"; } } else { if (isObjExist(document.getElementById("req_refid"))){ document.getElementById("req_refid").style.display = "none"; } } } function onChanged(value) { try{ var myindex=value.selectedIndex; var selvalue=value.options[myindex].value; if(selvalue!=""){ document.getElementById("WC_Prodtype").style.display=""; } else{ document.getElementById("WC_Prodtype").style.display="none"; } DWRController.setValuationMethodValue(selvalue,populateWillCapFields); if(selvalue=="Appraisal") { document.getElementById("WC_SCENARIO_ME").checked=true; document.getElementById("WC_SCENARIO_MB").checked=false; document.getElementById("WC_SCENARIO_OT").checked=false; } else{ document.getElementById("WC_SCENARIO_ME").checked=true; document.getElementById("WC_SCENARIO_MB").checked=true; document.getElementById("WC_SCENARIO_OT").checked=true; } } catch(e){ } } function populateWillCapFields(map) { for (var key in map) { try { if (isObjExist(key)) { document.getElementById(key).value = map[key]; } } catch(e) { } } } function employStateChange(prefix, fieldID) { try { if (isObjExist(document.getElementById(fieldID))) { if (document.getElementById(fieldID).value != 'UNEMP') { document.getElementById(prefix + "empNameRequireIdentity").style.display = "block"; document.getElementById(prefix + "empIncomeRequireIdentity").style.display = "block"; document.getElementById(prefix + "empOccupationRequireIdentity").style.display = "block"; document.getElementById(prefix + "empPhoneRequireIdentity").style.display = "block"; if (prefix == 'LSF_' || prefix == 'LSR_') { document.getElementById(prefix + "empYearsRequireIdentity").style.display = "block"; document.getElementById(prefix + "empOccupationYearsRequireIdentity").style.display = "block"; } } else { document.getElementById(prefix + "empNameRequireIdentity").style.display = "none"; document.getElementById(prefix + "empIncomeRequireIdentity").style.display = "none"; document.getElementById(prefix + "empOccupationRequireIdentity").style.display = "none"; document.getElementById(prefix + "empPhoneRequireIdentity").style.display = "none"; if (prefix == 'LSF_' || prefix == 'LSR_') { document.getElementById(prefix + "empYearsRequireIdentity").style.display = "none"; document.getElementById(prefix + "empOccupationYearsRequireIdentity").style.display = "none"; } } } } catch(ex) { } } /* PluginDetect v0.7.5 by Eric Gerds www.pinlady.net/PluginDetect [ onWindowLoaded isMinVersion getVersion AdobeReader ] */ var PluginDetect={version:"0.7.5",name:"PluginDetect",handler:function(c,b,a){return function(){c(b,a)}},isDefined:function(b){return typeof b!="undefined"},isArray:function(b){return(/array/i).test(Object.prototype.toString.call(b))},isFunc:function(b){return typeof b=="function"},isString:function(b){return typeof b=="string"},isNum:function(b){return typeof b=="number"},isStrNum:function(b){return(typeof b=="string"&&(/\d/).test(b))},getNumRegx:/[\d][\d\.\_,-]*/,splitNumRegx:/[\.\_,-]/g,getNum:function(b,c){var d=this,a=d.isStrNum(b)?(d.isDefined(c)?new RegExp(c):d.getNumRegx).exec(b):null;return a?a[0]:null},compareNums:function(h,f,d){var e=this,c,b,a,g=parseInt;if(e.isStrNum(h)&&e.isStrNum(f)){if(e.isDefined(d)&&d.compareNums){return d.compareNums(h,f)}c=h.split(e.splitNumRegx);b=f.split(e.splitNumRegx);for(a=0;ag(b[a],10)){return 1}if(g(c[a],10)c||!(/\d/).test(e[a])){e[a]="0"}}return e.slice(0,4).join(",")},$$hasMimeType:function(a){return function(d){if(!a.isIE&&d){var c,b,e,f=a.isString(d)?[d]:d;if(!f||!f.length){return null}for(e=0;e2||!f||!f.version||!(e=h.getNum(f.version))){return b}if(!b){return e}e=h.formatNum(e);b=h.formatNum(b);d=b.split(h.splitNumRegx);g=e.split(h.splitNumRegx);for(a=0;a-1&&a>c&&d[a]!="0"){return b}if(g[a]!=d[a]){if(c==-1){c=a}if(d[a]!="0"){return b}}}return e},AXO:window.ActiveXObject,getAXO:function(b){var f=null,d,c=this,a;try{f=new c.AXO(b)}catch(d){}return f},convertFuncs:function(g){var a,h,f,b=/^[\$][\$]/,d={},c=this;for(a in g){if(b.test(a)){d[a]=1}}for(a in d){try{h=a.slice(2);if(h.length>0&&!g[h]){g[h]=g[a](g);delete g[a]}}catch(f){}}},initScript:function(){var c=this,a=navigator,e="/",i=a.userAgent||"",g=a.vendor||"",b=a.platform||"",h=a.product||"";c.OS=100;if(b){var f,d=["Win",1,"Mac",2,"Linux",3,"FreeBSD",4,"iPhone",21.1,"iPod",21.2,"iPad",21.3,"Win.*CE",22.1,"Win.*Mobile",22.2,"Pocket\\s*PC",22.3,"",100];for(f=d.length-2;f>=0;f=f-2){if(d[f]&&new RegExp(d[f],"i").test(b)){c.OS=d[f+1];break}}}c.convertFuncs(c);c.isIE=new Function("return "+e+"*@cc_on!@*"+e+"false")();c.verIE=c.isIE&&(/MSIE\s*(\d+\.?\d*)/i).test(i)?parseFloat(RegExp.$1,10):null;c.ActiveXEnabled=false;if(c.isIE){var f,j=["Msxml2.XMLHTTP","Msxml2.DOMDocument","Microsoft.XMLDOM","ShockwaveFlash.ShockwaveFlash","TDCCtl.TDCCtl","Shell.UIHelper","Scripting.Dictionary","wmplayer.ocx"];for(f=0;f0&&c.isFunc(b[0])))){a.push(b)}},callArray:function(b){var c=this,a;if(c.isArray(b)){for(a=0;a0&&b.isFunc(c[0])){c[0](b,a>1?c[1]:0,a>2?c[2]:0,a>3?c[3]:0)}else{if(b.isFunc(c)){c(b)}}},$$isMinVersion:function(a){return function(h,g,d,c){var e=a.init(h),f,b=-1,j;if(e<0){return e}f=a.plugin;g=a.formatNum(a.isNum(g)?g.toString():(a.isStrNum(g)?a.getNum(g):"0"));if(f.getVersionDone!=1){f.getVersion(g,d,c);if(f.getVersionDone===null){f.getVersionDone=1}}a.cleanup();if(f.installed!==null){b=f.installed<=0.5?f.installed:(f.installed==0.7?1:(f.version===null?0:(a.compareNums(f.version,g,f)>=0?1:-1)))};return b}},getVersionDelimiter:",",$$getVersion:function(a){return function(g,d,c){var e=a.init(g),f,b,h;if(e<0){return null};f=a.plugin;if(f.getVersionDone!=1){f.getVersion(null,d,c);if(f.getVersionDone===null){f.getVersionDone=1}}a.cleanup();b=(f.version||f.version0);b=b?b.replace(a.splitNumRegx,a.getVersionDelimiter):b;return b}},cleanup:function(){},addWinEvent:function(d,c){var e=this,a=window,b;if(e.isFunc(c)){if(a.addEventListener){a.addEventListener(d,c,false)}else{if(a.attachEvent){a.attachEvent("on"+d,c)}else{b=a["on"+d];a["on"+d]=e.winHandler(c,b)}}}},winHandler:function(d,c){return function(){d();if(typeof c=="function"){c()}}},WLfuncs0:[],WLfuncs:[],runWLfuncs:function(a){a.winLoaded=true;a.callArray(a.WLfuncs0);a.callArray(a.WLfuncs);if(a.onDoneEmptyDiv){a.onDoneEmptyDiv()}},winLoaded:false,$$onWindowLoaded:function(a){return function(b){if(a.winLoaded){a.call(b)}else{a.fPush(b,a.WLfuncs)}}},div:null,divWidth:50,pluginSize:1,emptyDiv:function(){var c=this,a,e,b,d=0;if(c.div&&c.div.childNodes){for(a=c.div.childNodes.length-1;a>=0;a--){b=c.div.childNodes[a];if(b&&b.childNodes){if(d==0){for(e=b.childNodes.length-1;e>=0;e--){b.removeChild(b.childNodes[e])}c.div.removeChild(b)}else{}}}}},DONEfuncs:[],onDoneEmptyDiv:function(){var c=this,a,b;if(!c.winLoaded){return}if(c.WLfuncs&&c.WLfuncs.length&&c.WLfuncs[c.WLfuncs.length-1]!==null){return}for(a in c){b=c[a];if(b&&b.funcs){if(b.OTF==3){return}if(b.funcs.length&&b.funcs[b.funcs.length-1]!==null){return}}}for(a=0;a=i){return -1}try{if(l==c.pluginSize&&(!c.isIE||c.getDOMobj(m).readyState==4)){if(!m.winLoaded&&c.winLoaded){return 1}if(m.winLoaded&&c.isNum(b)){if(!c.isNum(m.count)){m.count=b}if(b-m.count>=10){return 1}}}}catch(f){}return 0},getDOMobj:function(g,a){var f,d=this,c=g?g.span:0,b=c&&c.firstChild?1:0;try{if(b&&a){c.firstChild.focus()}}catch(f){}return b?c.firstChild:null},setStyle:function(b,g){var f=b.style,a,d,c=this;if(f&&g){for(a=0;ao'+b+"/div>");c=f.getElementById(h)}catch(g){}}a=(f.getElementsByTagName("body")[0]||f.body);if(a){if(a.firstChild&&d.isDefined(a.insertBefore)){a.insertBefore(i,a.firstChild)}else{a.appendChild(i)}if(c){a.removeChild(c)}}else{}},insertHTML:function(g,b,h,a,k){var l,m=document,j=this,q,o=m.createElement("span"),n,i,f="<";var c=["outlineStyle","none","borderStyle","none","padding","0px","margin","0px","visibility","visible"];if(!j.isDefined(a)){a=""}if(j.isString(g)&&(/[^\s]/).test(g)){q=f+g+' width="'+j.pluginSize+'" height="'+j.pluginSize+'" ';for(n=0;n'}}q+=a+f+"/"+g+">"}else{q=a}if(!j.div){j.div=m.createElement("div");i=m.getElementById("plugindetect");if(i){j.div=i}else{j.div.id="plugindetect";j.insertDivInBody(j.div)}j.setStyle(j.div,c.concat(["width",j.divWidth+"px","height",(j.pluginSize+3)+"px","fontSize",(j.pluginSize+3)+"px","lineHeight",(j.pluginSize+3)+"px","verticalAlign","baseline","display","block"]));if(!i){j.setStyle(j.div,["position","absolute","right","0px","top","0px"])}}if(j.div&&j.div.parentNode){j.div.appendChild(o);j.setStyle(o,c.concat(["fontSize",(j.pluginSize+3)+"px","lineHeight",(j.pluginSize+3)+"px","verticalAlign","baseline","display","inline"]));try{if(o&&o.parentNode){o.focus()}}catch(l){}try{o.innerHTML=q}catch(l){}if(o.childNodes.length==1&&!(j.isGecko&&j.compareNums(j.verGecko,"1,5,0,0")<0)){j.setStyle(o.firstChild,c.concat(["display","inline"]))}return{span:o,winLoaded:j.winLoaded,tagName:(j.isString(g)?g:"")}}return{span:null,winLoaded:j.winLoaded,tagName:""}},adobereader:{mimeType:"application/pdf",navPluginObj:null,progID:["AcroPDF.PDF","PDF.PdfCtrl"],classID:"clsid:CA8A9780-280D-11CF-A24D-444553540000",INSTALLED:{},pluginHasMimeType:function(d,c,f){var b=this,e=b.$,a;for(a in d){if(d[a]&&d[a].type&&d[a].type==c){return 1}}if(e.getMimeEnabledPlugin(c,f)){return 1}return 0},getVersion:function(i,j){var f=this,c=f.$,h,d,k,m=p=null,g=null,l=null,a,b;j=(c.isString(j)&&j.length)?j.replace(/\s/,"").toLowerCase():f.mimeType;if(c.isDefined(f.INSTALLED[j])){f.installed=f.INSTALLED[j];return}if(!c.isIE){a="Adobe.*PDF.*Plug-?in|Adobe.*Acrobat.*Plug-?in|Adobe.*Reader.*Plug-?in";if(f.getVersionDone!==0){f.getVersionDone=0;p=c.getMimeEnabledPlugin(f.mimeType,a);if(!p&&c.hasMimeType(f.mimeType)){p=c.findNavPlugin(a,0)}if(p){f.navPluginObj=p;g=c.getNum(p.description)||c.getNum(p.name);g=c.getPluginFileVersion(p,g);if(!g&&c.OS==1){if(f.pluginHasMimeType(p,"application/vnd.adobe.pdfxml",a)){g="9"}else{if(f.pluginHasMimeType(p,"application/vnd.adobe.x-mars",a)){g="8"}}}}}else{g=f.version}m=c.getMimeEnabledPlugin(j,a);f.installed=m&&g?1:(m?0:(f.navPluginObj?-0.2:-1))}else{p=c.getAXO(f.progID[0])||c.getAXO(f.progID[1]);b=/=\s*([\d\.]+)/g;try{d=(p||c.getDOMobj(c.insertHTML("object",["classid",f.classID],["src",""],"",f))).GetVersions();for(k=0;k<5;k++){if(b.test(d)&&(!g||RegExp.$1>g)){g=RegExp.$1}}}catch(h){}f.installed=g?1:(p?0:-1)}if(!f.version){f.version=c.formatNum(g)}f.INSTALLED[j]=f.installed}},zz:0}; PluginDetect.initScript();