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|"; 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_incomeperiod|ls_emptype|ls_empployername|ls_empstreetaddress|ls_empcity|ls_empstate|ls_empzip|"; sFields += "ls_co_firstname|ls_co_lastname|ls_co_age|ls_co_dob|ls_co_currentphoneno|ls_co_currentaddress|ls_co_currentcity|ls_co_currentstate|ls_co_currentzip|ls_co_occupationtitle|ls_co_incomeperiod|ls_co_emptype|ls_co_empployername|ls_co_empstreetaddress|ls_co_empcity|ls_co_empstate|ls_co_empzip|"; 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|"; // 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; i0) {document.forms[0]."+arrFields[i]+".value=g"+arrFields[i]+";}"); } var readOnlyElements = "ls_address|ls_state|ls_city|ls_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 var formNames = "loansafe|historypro|historyproreview|prequalpro|corescore|incomepro|hvc"; var currFormName = eval("document.forms[0].name"); 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);} } } /** * 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){ 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{ 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){} } 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) { from.options[i] = null; } } } // Move selected options over else { 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.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; } } 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";} } } function checkRequiredEmailForm(){ 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; } 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){ 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.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; } } //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(){ 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 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&&page!="Multi_Subjects_Search"){ if (null!=document.forms[0].jobid && trim(document.forms[0].jobid.value).length==0){ alert("Please enter Reference ID.");document.forms[0].jobid.focus();return false; } } sJobId = document.forms[0].jobid.value; if (!checkCharacter(document.forms[0].jobid)){bSumnit = false;} } if (bSumnit){ var nSheetNo = obj.lastChild.innerText; var nMapApn = obj.firstChild.innerText; if(navigator.appName != "Microsoft Internet Explorer"){ var nSheetNo = obj.lastChild.textContent; var nMapApn = obj.firstChild.textContent; } var url = urlrptprog+"&action=confirm&type=getreportpm&sheetno="+nSheetNo+"&mapapn="+nMapApn+"&county="+document.forms[0].county_parcelmapnumber.value+", "+document.forms[0].state_parcelmapnumber.value+ "&jobid="+sJobId; popUpMapViewer(url); } } function gotoParcelmap(){ if(navigator.appName == "Microsoft Internet Explorer"){ var url = urljspprog+"&action=mapviewer&type=mapviewerlaunch"; popUpMapViewer(url); }else{ alert("This feature is not available in Firefox."); } } function sendMapselect(){ var bSumnit = true; var sJobId = ""; if (null!=document.forms[0].jobid){ sJobId = document.forms[0].jobid.value; if (!checkCharacter(document.forms[0].jobid)){bSumnit = false;} } if (bSumnit){ var url = urlrptprog+"&action=confirm&type=getreportpm&sheetno="+document.forms[0].sheetno.value+"&mapapn="+document.forms[0].mapapn.value+"&county="+document.forms[0].county_parcelmapnumber.value+", "+document.forms[0].state_parcelmapnumber.value+ "&jobid="+sJobId; popUpMapViewer(url); } } function setMapselect(obj){ if(navigator.appName == "Microsoft Internet Explorer"){ document.forms[0].sheetno.value = obj.lastChild.innerText; document.forms[0].mapapn.value = obj.firstChild.innerText; }else{ document.forms[0].sheetno.value = obj.lastChild.textContent; document.forms[0].mapapn.value = obj.firstChild.textContent; } } function getPrincipalData(nRec){ try{ var filename = urljspprog+"&action=getvalue&type=principaldata&rec="+nRec+"&"+new Date().getTime(); var content = trim(getFileContent(filename)); if (content == "Selected Product not available in this county."){ alert(content); }else { DWRController.setPurchasePDataValue("show"); showContent(content,"prin_data_"+nRec); } }catch(ex){} } function getPrincipalPhone(nRec){ try{ var filename = urljspprog+"&action=getvalue&type=principalphone&rec="+nRec+"&"+new Date().getTime(); var content = trim(getFileContent(filename)); if (content == "Selected Product not available in this county.") alert(content); else DWRController.setPurchasePDataValue("show"); showContent(content,"prin_phone_"+nRec); }catch(ex){} } function browseReportPermission(){ var filename = urljspprog+"&action=getvalue&type=browsereportpermission&fipcode="+document.forms[0].fipcode.value+"&Username="+document.forms[0].Username.value+"&"+new Date().getTime(); var content = trim(getFileContent(filename)); if (content.length>0){ 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 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=="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) document.forms[0].avmcascadetype[0].disabled=false; else document.forms[0].avmcascadetype[0].disabled=true; if (document.forms[0].avmcascadetype[1].checked) document.forms[0].avmcascadetype[1].disabled=false; else document.forms[0].avmcascadetype[1].disabled=true; if (document.forms[0].avmcascadetype[2].checked) document.forms[0].avmcascadetype[2].disabled=false; else document.forms[0].avmcascadetype[2].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].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","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{ 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)&& page.indexOf("Search")!=-1 && gvaluation == "yes") showHide("open","ValuePoint4Options"); else if (page.indexOf("Search")!=-1) showHide("close","ValuePoint4Options"); 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");} 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 == "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");} 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 == "gloaniq"){showHide("close","LOANIQ_options");} -- remove LoanIQ report } } displayUserInputOptions(); var nVecOptold = nVecOpt; var nValOptold = nValOpt; var nDocOptold = nDocOpt; var nStMapOptold = nStMapOpt; if (gvaluationtype == "vp4") nValOpt = REPORT_VP4 ; else if (gvaluationtype == "vp4default") nValOpt = REPORT_VP4_DEFAULT ; 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(varName == 'gvaluation') { gvaluationtype = ''; }*/ if (mycontent[12]!=null){ mycontent[12] = mycontent[12].replace("reportoptions="+nValOptold,"reportoptions="+nValOpt) ; mycontent[12] = mycontent[12].replace("checkReportPermission(\""+nValOptold,"checkReportPermission(\""+nValOpt) ; } if (gavmcascadetype == "yes") nVecOpt = REPORT_VECTOR_CORE; else if (gavmcascadetype == "precision") nVecOpt = REPORT_VECTOR_PRECISION; 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(varName == 'gvector') { gavmcascadetype = ''; }*/ if (mycontent[11]!=null){ mycontent[11] = mycontent[11].replace("reportoptions="+nVecOptold,"reportoptions="+nVecOpt) ; mycontent[11] = mycontent[11].replace("checkReportPermission(\""+nVecOptold,"checkReportPermission(\""+nVecOpt) ; } // update document image type if (gdocimgtype == "transfer") nDocOpt = REPORT_DOCUMENTIMAGE ; else if (gdocimgtype == "mortgage") nDocOpt = REPORT_DOCIMAGE_MTG ; /*if(varName == 'gdocumentimage') { gdocimgtype = ''; }*/ if (mycontent[7]!=null) mycontent[7] = mycontent[7].replace("reportoptions="+nDocOptold,"reportoptions="+nDocOpt) ; // update streetmap type if (gstreetmaptype == "street") nStMapOpt = REPORT_STREETMAP ; else if (gstreetmaptype == "aerial") nStMapOpt = REPORT_AERIALMAP ; /*if(varName == 'gstreetmap') { gstreetmaptype = ''; }*/ if (mycontent[2]!=null) mycontent[2] = mycontent[2].replace("reportoptions="+nStMapOptold,"reportoptions="+nStMapOpt) ; 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+"&legalvesting="+glegalvesting+"&documentimage="+gdocumentimage+"&transaction="+gtransaction+"&neighborhoodinformation="+gneighborhoodinformation+"&ni_demographics="+gni_demographics+"&ni_school="+gni_school+"&ni_localbusiness="+gni_localbusiness+"&ni_crime="+gni_crime+"&voluntarylien="+gvoluntarylien+"&foreclosureactivity="+gforeclosureactivity+"&docimgtype="+gdocimgtype+/*"&loaniq="+gloaniq+*/"&loansafe="+gloansafe+"&historypro="+ghistorypro+"&prequalpro="+gprequalpro+"&corescore="+gcorescore+"&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 == "gassessormap") || (varName == "gfloodmap") ||(varName == "gdocumentimage") ||(varName == "glegalvesting") ||(varName == "gneighborhoodinformation") ||(varName == "gforeclosureactivity")) { if((null!=form.detailproperty && !form.detailproperty.checked) && (null!=form.comparableproperty && !form.comparableproperty.checked) && (null!=form.streetmap && !form.streetmap.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.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 == "gtrueltv") || (varName == "ghistorypro") || (varName == "ghistoryproreview") || (varName == "gcorescore") || (varName == "gprequalpro") || (varName == "gincomepro") || (varName == "ghomevaluecalibrator")) { 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.corescore && !form.corescore.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