
    var otherEquipmentArray = new Array();
    otherEquipmentArray[40] = "Alarm";
    otherEquipmentArray[48] = "Attic Fan";
    otherEquipmentArray[78] = "Central Vacuum";
    otherEquipmentArray[95] = "Compactor";
    otherEquipmentArray[118] = "Dehumidifier";
    otherEquipmentArray[125] = "Dishwasher";
    otherEquipmentArray[126] = "Disposal";
    otherEquipmentArray[134] = "Dryer";
    otherEquipmentArray[179] = "Gas Grill";
    otherEquipmentArray[197] = "House Fan";
    otherEquipmentArray[198] = "Humidifier";
    otherEquipmentArray[205] = "Intercom";    
    otherEquipmentArray[232] = "LP Leased";    
    otherEquipmentArray[233] = "LP Owned";    
    otherEquipmentArray[234] = "LP Supp";    
    otherEquipmentArray[248] = "Microwave";    
    otherEquipmentArray[260] = "None";    
    otherEquipmentArray[267] = "Opener";    
    otherEquipmentArray[268] = "Other";    
    otherEquipmentArray[303] = "Range Oven";    
    otherEquipmentArray[444] = "RangeConE";    
    otherEquipmentArray[445] = "RangeConG";    
    otherEquipmentArray[311] = "Refrigerator";    
    otherEquipmentArray[348] = "Smoke Alarm";    
    otherEquipmentArray[351] = "Softlse";    
    otherEquipmentArray[352] = "Softown";    
    otherEquipmentArray[358] = "Sprinkler";    
    otherEquipmentArray[405] = "Washer";    
    otherEquipmentArray[415] = "Whirpool/Hot Tub";    
    
    var heatingArray = new Array();
    heatingArray[170] = "Forced Air";
    heatingArray[182] = "Geothermal";
    heatingArray[188] = "Gravity";
    heatingArray[191] = "Heat Pump";
    heatingArray[268] = "Other";
    heatingArray[297] = "Radiant";
    heatingArray[298] = "Radiator";

    var houseStylesArray = new Array();
    houseStylesArray[66] = "Bungalow";
    houseStylesArray[70] = "Cape Cod";
    houseStylesArray[86] = "Colonial";
    houseStylesArray[99] = "Contemporary";
    houseStylesArray[105] = "Country French";
    houseStylesArray[136] = "Dutch Colonial";
    houseStylesArray[137] = "Early American";
    houseStylesArray[177] = "Garrison Colonial";
    houseStylesArray[229] = "Log";
    houseStylesArray[268] = "Other";
    houseStylesArray[382] = "Traditional";
    houseStylesArray[385] = "Tudor";
    houseStylesArray[398] = "Victorian";
    houseStylesArray[418] = "Williamsburg";

    var houseTypeArray = new Array();
    houseTypeArray[357] = "Split";
    houseTypeArray[383] = "Tri-Levl";
    houseTypeArray[15] = "1-STY";
    houseTypeArray[17] = "2.5-STY";
    houseTypeArray[20] = "2-STY";
    houseTypeArray[27] = "3-STY";
    houseTypeArray[59] = "Bi-Level";
    houseTypeArray[4] = "1.5-STY";
    houseTypeArray[268] = "Other";
    houseTypeArray[296] = "QuadLevl";

    var waterArray = new Array();
    waterArray[412] = "Well";
    waterArray[194] = "Holding";
    waterArray[268] = "Other";
    waterArray[285] = "Pond";
    waterArray[290] = "Private";
    waterArray[294] = "Public";

    var sewerArray = new Array();
    sewerArray[268] = "Other";
    sewerArray[323] = "Sanitary";
    sewerArray[332] = "Septic";

    var coolingArray = new Array();
    coolingArray[77] = "Central Air";
    coolingArray[260] = "None";
    coolingArray[268] = "Other";
    coolingArray[403] = "Wall";
    coolingArray[419] = "Window";

    var heatFuelArray = new Array();
    heatFuelArray[142] = "Electric";
    heatFuelArray[256] = "Natural Gas";
    heatFuelArray[266] = "Oil";
    heatFuelArray[268] = "Other";
    heatFuelArray[292] = "Propane";
    heatFuelArray[354] = "Solar";
    heatFuelArray[424] = "Wood/Coal";

    var waterHeaterArray = new Array();
    waterHeaterArray[142] = "Electric";
    waterHeaterArray[178] = "Gas";
    waterHeaterArray[266] = "Oil";
    waterHeaterArray[268] = "Other";
    waterHeaterArray[292] = "Propane";
    waterHeaterArray[354] = "Solar";

    var miscellaneousArray = new Array();
    miscellaneousArray[6] = "100+ Amp";
    miscellaneousArray[14] = "Laundry";
    miscellaneousArray[19] = "2nd Laundry";
    miscellaneousArray[33] = "Above Pool";
    miscellaneousArray[50] = "Attic Storage";
    miscellaneousArray[53] = "Barn";
    miscellaneousArray[67] = "Cable TV";
    miscellaneousArray[75] = "Cbreaker";
    miscellaneousArray[79] = "Chattel";
    miscellaneousArray[114] = "Deck";
    miscellaneousArray[132] = "DryConE";
    miscellaneousArray[133] = "DryConG";
    miscellaneousArray[159] = "Fence";
    miscellaneousArray[195] = "Home Warranty";
    miscellaneousArray[199] = "In Pool";
    miscellaneousArray[202] = "Inglass";
    miscellaneousArray[268] = "Other";
    miscellaneousArray[278] = "Patio";
    miscellaneousArray[325] = "Satellite";
    miscellaneousArray[337] = "Shed";
    miscellaneousArray[386] = "TV Antenna";
    miscellaneousArray[402] = "Walk-In";

    var foundationArray = new Array();
    foundationArray[346] = "Slab";
    foundationArray[54] = "Basement";
    foundationArray[107] = "Crawl";

    var exteriorArray = new Array();
    exteriorArray[42] = "Aluminum, Vinyl, Steel";
    exteriorArray[64] = "Brick, Stone";
    exteriorArray[268] = "Other";
    exteriorArray[340] = "Shingle";
    exteriorArray[365] = "Stucco";
    exteriorArray[421] = "Wood Comp";

    var roofArray = new Array();
    roofArray[43] = "Asphalt";
    roofArray[96] = "Composite";
    roofArray[167] = "Flat";
    roofArray[246] = "Metal";
    roofArray[268] = "Other";
    roofArray[340] = "Shingle";
    roofArray[347] = "Slate";
    roofArray[374] = "Tile";
    roofArray[420] = "Wood";

    var firePlaceArray = new Array();
    firePlaceArray[55] = "Basement-Rec";
    firePlaceArray[80] = "Circblow";
    firePlaceArray[156] = "Family";
    firePlaceArray[172] = "Free";
    firePlaceArray[178] = "Gas";
    firePlaceArray[183] = "Glass";
    firePlaceArray[186] = "Grate";
    firePlaceArray[203] = "Insert";
    firePlaceArray[224] = "Living";
    firePlaceArray[230] = "Loglitr";
    firePlaceArray[245] = "Master";
    firePlaceArray[260] = "None";
    firePlaceArray[268] = "Other";
    firePlaceArray[377] = "Tools";
    firePlaceArray[423] = "Wood Stove";
    firePlaceArray[425] = "Woodburn";


   function displayVideo(videoURL) {
        var el = "";
        var pos = -1;
        var pos1 = -1;
        var strOut = "";
        videoURL = videoStrProcess(videoURL);

        try {
            pos = videoURL.indexOf("<embed");
            if(pos > -1) {
                strOut = videoURL.substring(pos);
            }
            pos1 = strOut.indexOf("</embed");
            if(pos1 > -1) {
                videoURL = strOut.substring(0, pos1+8);
            }
        } catch( e) { 
            videoURL = "";
        }
        try {
           el = document.getElementById('divImage');
          //el.innerHTML = "<embed src=\""+videoURL+"\" autostart=\"true\" width=\"450\"height=\"300\" />";
            el.innerHTML = videoURL;
        } catch (e) {
        }
    }
    function videoStrProcess(videoURL) {
        try {
            videoURL = videoURL.replace(/&#60;/g,'<');
            videoURL = videoURL.replace(/&#62;/g,'>');
            videoURL = videoURL.replace(/&#34;/g,'\"');
        } catch(e) {}
        return videoURL;
    }
    function popUp(URL, width, height) {
        day = new Date();
        id = day.getTime();
        eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width='+width+',height='+height+',left=100,top=100');");
    }
    
    function popUpVideo(URL) {
        day = new Date();
        id = day.getTime();
        eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,left=0,top=0');");
        // window.moveTo(0,0);
        window.resizeTo(screen.width,screen.height);
    }
    
    function closePopup() {
        window.close();
    }
    
    function saveVideoUrl(){
	var mkt = "";
	var pt = "";
	var video = "";
	var mlsNumber = "";
        var qstr = "";
        var xmlDoc = "";
        try {
            mkt = document.videoForm.mkt.value;
        } catch (e) {}
        try {
            pt = document.videoForm.pt.value;
        } catch (e) {}
        try {
            video = document.videoForm.video.value;
        } catch (e) {}
        try {
            mlsNumber = document.videoForm.mlsn.value;
        } catch (e) {}

        var url ="videoSave.php";
        qstr = "mkt="+mkt+"&pt="+pt+"&video="+video+"&mlsNumber="+mlsNumber;
        try {
            xmlDoc = getXMLDoc(url,qstr,"POST");
        } catch (e) {alert(e.message);}

        try {
            message = xmlDoc.getElementsByTagName("message")[0].firstChild.nodeValue;
        } catch(e) {}
        alert(message);
        var msg = "<FONT color=\"red\"><b>";
        if(message == "") {
            msg += "test";
        } else  {
            msg += "Updated";
        }
        msg += "</b></FONT>";
        document.getElementById("mess").innerHTML = msg;
    }
    function validateRequestForm(){
        if(isBlank('contactForm','yourName')&&
	       isEmailOk('contactForm','email')&&
	       isBlank('contactForm','phone1')&&
	       isBlank('contactForm','phone2')&&
	       isBlank('contactForm','phone3')){
	       return true;
	   } else {
	       return false;
	   }
    }
    function validateSendToFriendForm(){
        if(isBlank('contactForm','yourName')&&
	       isEmailOk('contactForm','email')&&
	       isBlank('contactForm','phone1')&&
	       isBlank('contactForm','phone2')&&
	       isBlank('contactForm','phone3')&&
	       isBlank('contactForm','friendName')&&
	       isEmailOk('contactForm','friendEmail')){
		return true;
	   } else {
	       return false;
	   }
    }
    function autoTab(formName, srcFiled,trgtField) {
        var ph = "";
        eval("ph = document."+formName+"."+srcFiled+".value");
        var phLen = ph.length;
        if(phLen == 3) {
            eval("document."+formName+"."+trgtField+".focus()");
        }
    }
    function showDivResult(headerID, layerID) {
        hideDiv('divPropDetailsHeader','divPropDetails');
        hideDiv('divPropSearchHeader','divPropSearch');
        showDiv(headerID, layerID);
    }
    function showDiv(headerID, layerID) {
        document.getElementById(layerID).style.display = "block";
        if(layerID == "divPropDetails") {
            if(mySiteSearch == "ohfinder") {
                document.getElementById("divPropDtl").style.height = "450px";
            } else {
                document.getElementById("divPropDtl").style.height = "404px";
            }
            document.getElementById("divPropDtl").style.backgroundColor = "#ffffff";
        } else {
            var obj = document.getElementById("featureTab").style.display;
            if(obj == "none") {
                document.getElementById("divPropDtl").style.height = "400px";
                document.getElementById("divPropDtl").style.border = "1px solid #8db2e3";
            } else {
                document.getElementById("divPropDtl").style.height = "950px";
                document.getElementById("divPropDtl").style.border = "1px solid #8db2e3";
            }
            document.getElementById("divPropDtl").style.backgroundColor = "#e9f2fd";
        }
    }
    function hideDiv(headerID, layerID) {
        document.getElementById(layerID).style.display = "none";
    }
/*
    function showFeatures(tab,myHostName) {
        var obj = document.getElementById(tab);
        var objImg = document.getElementById(tab+"Img");
        if(obj.style.display == "block") {
            obj.style.display = "none";
            document.getElementById("divPropDtl").style.height = "400px";
            document.getElementById("divPropDtl").style.border = "1px solid #8db2e3";
//            if(myHostName == "alltoledo"){
                objImg.innerHTML="<u>SHOW MORE SEARCH OPTIONS</u>&nbsp;&nbsp;<img src=\"images/down_icon.gif\" alt=\"Show more search options\">";
//            } else {
//                objImg.src="images/down.gif";
//            }
        } else {
            document.getElementById("divPropDtl").style.height = "950px";
            document.getElementById("divPropDtl").style.border = "1px solid #8db2e3";
            obj.style.display = "block";
//            if(myHostName == "alltoledo"){
                objImg.innerHTML="<u>HIDE SEARCH OPTIONS</u>&nbsp;&nbsp;<img src=\"images/up_icon.gif\" alt=\"Hide search options\">";
//            } else {
//                objImg.src="images/up.gif";
//            }
        }
    }    

*/
    function showFeatures(tab,myHostName) {
        var obj = document.getElementById(tab);
        var objImg = document.getElementById(tab+"Img");
        if(obj.style.display == "block") {
            obj.style.display = "none";
            objImg.innerHTML="<u>SHOW MORE SEARCH OPTIONS</u>&nbsp;&nbsp;<img src=\"images/down_icon.gif\" alt=\"Show more search options\">";
        } else {
            obj.style.display = "block";
            objImg.innerHTML="<u>HIDE SEARCH OPTIONS</u>&nbsp;&nbsp;<img src=\"images/up_icon.gif\" alt=\"Hide search options\">";
        }
    }    

    function deleteSavedSearch(searchId) {
           var confirmMsg = confirm("Are you sure want to delete this?");
           if(confirmMsg) {
	           var url = "deleteSavedListings.php";
	           var qstr = "searchId="+searchId;
	           var xmlDoc = "";
	           var status = "";
	           try {
	               xmlDoc = getXMLDoc(url,qstr,"POST");
	           } catch(e){}
	           try {
	              status = xmlDoc.getElementsByTagName("status")[0].firstChild.nodeValue;
	           } catch(e) {}
	           document.getElementById("divSavedSearchMsg").innerHTML = status;
	           showSavedSearchesList();
	       }
    }
    